// Braintree Form styles
label.wrapping {
  
  @include transition( background-color 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95), color 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95) );
  // border-top: solid 1px #DEE2E5;
  border-bottom: solid 1px #DEE2E5;
  color: #6E787F;
  cursor: pointer;
  display: block;
  font-size: 16px;
  font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  
  // padding: 12px 14px;
  padding: 8px 12px;
  
  position: relative;
  // margin-top: -11px;
  margin: 0;
  width: 100%;
  text-align: left;
  z-index: 1;
  .input-label {
    @include transition( opacity 0.2s cubic-bezier(0.445, 0.05, 0.55, 0.95) );
    color: #999;
    display: block;
    // font-size: 12px;
    // margin-bottom: 4px;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 300;
    line-height: 1;
    
    opacity: 0;
  }
  .Card-Type {
    color: #6E787F;
    display: block;
    position: absolute;
    font-weight: bold;
    top: 12px;
    right: 14px;
    font-size: 12px;
    line-height: 1;
  }
  &.has-focus {
    background-color: #fff;
    cursor: text;
    z-index: 2;
    .input-wrapper:after { color: #393536; }
    .input-label { color: #000; }
  }
  &.has-value {
    .input-label { opacity: 1; }
  }
  
  
  .label {
    display: block;
    font-size: 16px;
    color: #6E787F;
    padding: 8px 12px;
    text-align: left;
  }
  
  input, select {
    background-color: transparent !important;
    display: block;
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 16px;
    outline: none;
    line-height: 1;
    font-weight: 300;
    width: 100%;
    height: 20px;
    
    @include placeholder {
      color: #aaa;
      line-height: 1;
    }
  
    &:focus {
      @include placeholder { color: #999; }
    }
    
    &:-webkit-autofill { background: transparent !important; }
    
  }
  
  .input-wrapper {
    position: relative; 
  }

  .input-wrapper iframe {
    height: 18px !important;
  }
  
  .amount-wrapper, .number-wrapper, .password-wrapper, .email-wrapper, .cvv-wrapper, .date-wrapper {
    input, iframe, select {
      @include transition( transform 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.2s ease );
      @include transform( translateX(-23px) );
      padding: 0 23px;
    }
    &:after {
      @include transition( opacity 0.2s ease );
      @include transform( translateY(-50%) );
      color: #393536;
      display: inline-block;
      line-height: 1;
      left: 0px;
      opacity: 0;
      position: absolute;
      // top: 50%;
      top: 11px;
      font-size: 120%;
      
      font-family: orderlifticonsregular;
      font-style: normal;

      // make icons thinner in webkit (white icons on dark background)
      text-shadow: 0 0 0 rgba(0,0,0,.01);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizelegibility;
    }
  }
  .amount-wrapper:after {   content: "\20AC"; }
  .number-wrapper:after {   content: "\f09e"; }
  .password-wrapper:after { content: "\f027"; }
  .cvv-wrapper:after {      content: "\f027"; }
  .email-wrapper:after {    content: "\f009"; }
  .date-wrapper:after {     content: "\f10b"; }
  
  
  // active state
  &.has-focus, &.has-value {
    .amount-wrapper, .number-wrapper, .password-wrapper, .email-wrapper, .cvv-wrapper, .date-wrapper {
      input, iframe, select {
        @include transform( translateX(0) );
      }
      &:after { opacity: 1; }
    }
  }
  
  
  
}

label.wrapping + label.wrapping { border-top: none; }