/*--------------------
Shared Variables
--------------------*/
/*--------------------
General
--------------------*/
.bcc-disabled {
    pointer-events: none;
    opacity: 0.4;
}

#bcc-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background-color: #f1e063;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 100%;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  border: 1em solid #f1e063;
  padding-top:20px;
  box-sizing: border-box;
  position: relative;
}
@media (max-width: 476px) {
  #bcc-container {
    border: none;
  }
}

#bcc-button-info {
	  padding-bottom:30px;
}

.bcc-exp-date-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
}

.card-shape, #bcc-body.visa, #bcc-body.master-card, #bcc-body.maestro, #bcc-body.american-express, #bcc-body.discover, #bcc-body.unionpay, #bcc-body.jcb, #bcc-body.diners-club {
  border-radius: 6px;
  padding: 2em 2em 1em;
}
@media (max-width: 476px) {
  .card-shape, #bcc-body.visa, #bcc-body.master-card, #bcc-body.maestro, #bcc-body.american-express, #bcc-body.discover, #bcc-body.unionpay, #bcc-body.jcb, #bcc-body.diners-club {
    padding: 2em 1.5em 1em;
  }
}

#bcc-body {
  background-color:#f1e063;
/*  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12); */
  border: 2px solid #fff;
  border-radius: 10px;
  padding: 2em 2em 1em;
  width: 25em;
  margin-bottom: 2em;
  -webkit-transition: all 600ms cubic-bezier(0.2, 1.3, 0.7, 1);
  transition: all 600ms cubic-bezier(0.2, 1.3, 0.7, 1);
  -webkit-animation: cardIntro 500ms cubic-bezier(0.2, 1.3, 0.7, 1);
          animation: cardIntro 500ms cubic-bezier(0.2, 1.3, 0.7, 1);
  z-index: 1;
}
#bcc-body:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}
@media (max-width: 476px) {
  #bcc-body {
    box-sizing: border-box;
    width: 100%;
	padding: 2em 2em 1em;

  }
}
#bcc-body.visa {
  color: #fff;
  background-color: #0D4AA2;
}
#bcc-body.master-card {
  color: #fff;
  background-color: #363636;
  background: -webkit-linear-gradient(335deg, #d82332, #d82332 50%, #f1ad3d 50%, #f1ad3d);
  background: linear-gradient(115deg, #d82332, #d82332 50%, #f1ad3d 50%, #f1ad3d);
}
#bcc-body.maestro {
  color: #fff;
  background-color: #363636;
  background: -webkit-linear-gradient(335deg, #009ddd, #009ddd 50%, #ed1c2e 50%, #ed1c2e);
  background: linear-gradient(115deg, #009ddd, #009ddd 50%, #ed1c2e 50%, #ed1c2e);
}
#bcc-body.american-express {
  color: #fff;
  background-color: #007CC3;
}
#bcc-body.discover {
  color: #fff;
  background-color: #ff6000;
  background: -webkit-linear-gradient(#d14310, #f7961e);
  background: linear-gradient(#d14310, #f7961e);
}
#bcc-body.unionpay, #bcc-body.jcb, #bcc-body.diners-club {
  color: #fff;
  background-color: #363636;
}

.bcc-label {
  display: block;
  font-size: 11px;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

.bcc-exp-date {
  margin-right: 1em;
  width: 100%;
}

.bcc-cvv,
.bcc-postal-code {
  width: 100%;
}

#button-pay {
  cursor: pointer;
  width: 16em;
  font-size: 15px;
  border: 0;
  padding: 1.2em 1em;
  color: #fff;
  background: #282c37;
  border-radius: 5px;
  z-index: 0;
  -webkit-transform: translateY(-100px);
          transform: translateY(-100px);
  -webkit-transition: all 500ms cubic-bezier(0.2, 1.3, 0.7, 1);
  transition: all 500ms cubic-bezier(0.2, 1.3, 0.7, 1);
  opacity: 0;
  -webkit-appearance: none;
}
#button-pay:hover {
  background: #535b72;
}
#button-pay:active {
  -webkit-animation: cardIntro 200ms cubic-bezier(0.2, 1.3, 0.7, 1);
          animation: cardIntro 200ms cubic-bezier(0.2, 1.3, 0.7, 1);
}
#button-pay.show-button {
  -webkit-transform: translateY(0);
          transform: translateY(0);
  opacity: 1;
}

.bcc-card-number {
  position: relative;
}

#card-image {
  position: absolute;
  top: 2em;
  right: 1em;
  width: 44px;
  height: 28px;
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/346994/card_sprite.png);
  background-size: 86px 458px;
  border-radius: 4px;
  background-position: -100px 0;
  background-repeat: no-repeat;
  margin-bottom: 1em;
}
#card-image.visa {
  background-position: 0 -398px;
}
#card-image.master-card {
  background-position: 0 -281px;
}
#card-image.american-express {
  background-position: 0 -370px;
}
#card-image.discover {
  background-position: 0 -163px;
}
#card-image.maestro {
  background-position: 0 -251px;
}
#card-image.jcb {
  background-position: 0 -221px;
}
#card-image.diners-club {
  background-position: 0 -133px;
}

/*--------------------
Inputs 
--------------------*/
.bcc-input-wrapper {
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.86);
  height: 2.75em;
  border: 1px solid #eee;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 5px 10px;
  margin-bottom: 1em;
}

.bcc-card-number,
.bcc-exp-date,
.bcc-cvv,
.bcc-postal-code {
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
}

.braintree-hosted-fields-focused {
  border-color: #5db6e8;
}

.braintree-hosted-fields-invalid {
  border-color: #E53A40;
  -webkit-animation: shake 500ms cubic-bezier(0.2, 1.3, 0.7, 1) both;
          animation: shake 500ms cubic-bezier(0.2, 1.3, 0.7, 1) both;
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-perspective: 1000px;
          perspective: 1000px;
}

/*--------------------
Animations
--------------------*/
@-webkit-keyframes cardIntro {
  0% {
    -webkit-transform: scale(0.8) translate(0, 0);
            transform: scale(0.8) translate(0, 0);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(1) translate(0, 0);
            transform: scale(1) translate(0, 0);
    opacity: 1;
  }
}
@keyframes cardIntro {
  0% {
    -webkit-transform: scale(0.8) translate(0, 0);
            transform: scale(0.8) translate(0, 0);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(1) translate(0, 0);
            transform: scale(1) translate(0, 0);
    opacity: 1;
  }
}
@-webkit-keyframes shake {
  10%,
  90% {
    -webkit-transform: translate3d(-1px, 0, 0);
            transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    -webkit-transform: translate3d(1px, 0, 0);
            transform: translate3d(1px, 0, 0);
  }
  30%,
  50%,
  70% {
    -webkit-transform: translate3d(-3px, 0, 0);
            transform: translate3d(-3px, 0, 0);
  }
  40%,
  60% {
    -webkit-transform: translate3d(3px, 0, 0);
            transform: translate3d(3px, 0, 0);
  }
}
@keyframes shake {
  10%,
  90% {
    -webkit-transform: translate3d(-1px, 0, 0);
            transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    -webkit-transform: translate3d(1px, 0, 0);
            transform: translate3d(1px, 0, 0);
  }
  30%,
  50%,
  70% {
    -webkit-transform: translate3d(-3px, 0, 0);
            transform: translate3d(-3px, 0, 0);
  }
  40%,
  60% {
    -webkit-transform: translate3d(3px, 0, 0);
            transform: translate3d(3px, 0, 0);
  }
}
