/* Accepted Cards */
#braintree-accepted-cards img {
  display: inline-block;
  margin-right: 4px;
}
/* Hosted Fields Loading State */
#credit-card-form.loading {
  position: relative;
}
#credit-card-form .braintree-hostedfield {
  opacity: 1;
}
#credit-card-form .credit-card-loading {
  display: none;
}
#credit-card-form .braintree-card-unsupported {
  color: darkred;
  font-weight: bold;
  padding: 6px 0 4px 0;
}
#credit-card-form.loading .credit-card-loading {
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  width: 100%;
  height: 70%;
  text-align: center;
  display: block;
}
#credit-card-form.loading .credit-card-loading img {
  margin: 16px  auto;
}
#credit-card-form.loading .braintree-hostedfield {
  opacity: 0;
}
#credit-card-form label {
  float: none;
}
/* Hosted Fields */
#braintree-hosted-submit {
  display: none;
}
.braintree-input-field {
  height: 42px;
  max-width: 340px;
  padding: 0 10px;
  border: 1px solid lightgrey;
  background: white;
}
.braintree-input-field.braintree-postal-code {
  width: 140px;
}
.braintree-card-input-field {
  height: 50px;
  width: 100%;
  max-width: 372px;
  border: 1px solid lightgrey;
  position: relative;
  background: white;
}
.braintree-card-input-field .card-type {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 10px 0 8px;
}
.braintree-card-input-field .card-type img {
  height: 48px;
}
.braintree-card-input-field #card-number {
  float: left;
  height: 48px;
  width: 100%;
  padding-left: 66px;
  box-sizing: border-box;
}
#braintree-expiration-container {
  display: block;
  width: 100%;
  vertical-align: middle;
  font-size: 0;
}
.braintree-expiration {
  width: 70px;
  display: inline-block;
  *zoom: 1;
  *display: inline;
}
.braintree-expiration-seperator {
  vertical-align: top;
  line-height: 42px;
  display: inline-block;
  *zoom: 1;
  *display: inline;
  font-size: 30px;
  padding: 0 8px;
}
.braintree-cvv {
  width: 80px;
}
.braintree-hostedfield .cvv-what-is-this {
  margin-left: 0;
}
#three-d-modal {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  width: 100vw;
  z-index: 100000;
  visibility: visible;
  transition: 0.4s;
  opacity: 1;
}
#three-d-modal.hidden {
  visibility: hidden;
  transition: 0.4s;
  opacity: 0;
}
#three-d-modal.hidden .bt-modal-frame {
  transition: 0.4s;
  transform: translateY(80px);
}
#three-d-modal .bt-modal-frame {
  height: 450px;
  width: 440px;
  margin: auto;
  background-color: #ffffff;
  z-index: 2;
  border-radius: 6px;
  transition: 0.4s;
  transform: translateY(0);
}
#three-d-modal .bt-modal-body {
  height: 380px;
  margin: 0 20px;
  background-color: white;
  border: 1px solid lightgray;
}
#three-d-modal .bt-modal-header {
  height: 40px;
  text-align: center;
  line-height: 40px;
}
#three-d-modal .bt-mask {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: black;
  opacity: 0.75;
}
@media (max-width: 650px) {
  #three-d-modal .bt-modal-frame {
    width: 100%;
  }
}
#paypal-container iframe {
  display: none;
}
/* PayPal headless button */
button.braintree-paypal-button {
  background: #019cde;
  color: white;
  height: 46px;
  line-height: 46px;
  padding: 0 20px 0 18px;
  border: none;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  font-size: 14px;
  float: left;
  cursor: pointer;
}
button.braintree-paypal-button.braintree-paypal-loading {
  background: #014c6b url('https://skin.weareknitters.fr/skin/frontend/base/default/images/gene/braintree/paypal-loading.gif') center center no-repeat;
  background-size: 32px;
}
button.braintree-paypal-button.braintree-paypal-loading > span {
  opacity: 0;
}
button.braintree-paypal-button.braintree-paypal-loading:hover {
  background: #014c6b url('https://skin.weareknitters.fr/skin/frontend/base/default/images/gene/braintree/paypal-loading.gif') center center no-repeat;
  background-size: 32px;
}
button.braintree-paypal-button:hover {
  background: #0175a6;
}
button.braintree-paypal-button > span {
  display: block;
  height: 46px;
  line-height: 46px;
  background: url('https://skin.weareknitters.fr/skin/frontend/base/default/images/gene/braintree/paypal.png') right center no-repeat;
  background-size: 80px;
  padding-right: 94px;
}
/* Saved Accounts */
#creditcard-saved-accounts,
#paypal-saved-accounts {
  font-size: 0;
  width: 100%;
}
#creditcard-saved-accounts tr,
#paypal-saved-accounts tr {
  border-bottom: 1px dotted lightgrey;
}
#creditcard-saved-accounts tr td,
#paypal-saved-accounts tr td {
  vertical-align: middle;
}
#payment_form_gene_braintree_creditcard #creditcard-saved-accounts label,
#payment_form_gene_braintree_paypal #paypal-saved-accounts label,
#payment_form_gene_braintree_creditcard #creditcard-saved-accounts .label,
#payment_form_gene_braintree_paypal #paypal-saved-accounts .label {
  width: 100%;
  padding: 0;
  text-align: left;
  float: none;
}
#payment_form_gene_braintree_creditcard p,
#payment_form_gene_braintree_paypal p {
  padding: 0;
}
#creditcard-saved-accounts tr.other-row,
#paypal-saved-accounts tr.other-row {
  border-bottom: 0;
}
#creditcard-saved-accounts label {
  float: left;
  padding: 10px 0;
  line-height: 40px;
  width: 100%;
}
#creditcard-saved-accounts tr.other-row label,
#paypal-saved-accounts tr.other-row label {
  padding: 8px 0;
}
#paypal-saved-accounts label {
  padding: 6px 0;
  line-height: 40px;
}
#creditcard-saved-accounts label img,
#paypal-saved-accounts label img {
  margin-left: 6px;
  height: 40px;
  float: left;
}
#creditcard-saved-accounts label .saved-card-info,
#paypal-saved-accounts label .saved-paypal-email {
  margin-left: 14px;
  float: left;
}
#creditcard-saved-accounts label .saved-card-info span {
  line-height: 40px;
}
#creditcard-saved-accounts label .saved-card-info span.saved-expiry-date {
  font-size: 12px;
  font-weight: normal;
  margin-left: 14px;
}
#gene_braintree_creditcard_store_in_vault_div label,
label[for="gene_braintree_paypal_store_in_vault"] {
  width: auto!important;
}
/* Multi shipping */
body.checkout-multishipping-billing #payment-continue.loading {
  padding-left: 12px;
}
body.checkout-multishipping-billing #payment-continue.loading > span {
  background: url('https://skin.weareknitters.fr/skin/frontend/base/default/images/gene/loader-white.gif') center left no-repeat;
  background-size: 15px 15px;
  padding-left: 22px;
}
body.checkout-multishipping-billing .buttons-set #paypal-complete {
  float: right;
  width: 400px;
  text-align: right;
}
body.checkout-multishipping-billing .buttons-set #paypal-complete > label {
  float: right;
  margin-right: 16px;
}
body.checkout-multishipping-billing .buttons-set #paypal-complete #paypal-container {
  float: right;
}

#pp-express-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.701961);
}
#pp-express-modal {
  box-sizing: border-box;
  display: none;
  position: fixed;
  top: 20%;
  left: 40%;
  left: calc(50% - 175px);
  z-index: 101;
  width: 350px;
  height: 390px;
  padding: 15px;
  background: #fff;
  border: 3px solid #ccc;
  border-radius: 4px;
  overflow: auto;
}
#pp-express-modal .button {
  display: block;
  width: 100%;
  margin-top: 30px;
}
#pp-express-modal .button.coupon-submit {
  margin: 0;
  float: right;
  width: 50%;
  box-sizing: border-box;
}
#pp-express-modal .button.loading {
  background-image: url('https://skin.weareknitters.fr/skin/frontend/base/default/images/gene/loader-transparent.gif');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 60%;
  text-indent: -9999px;
}
#pp-express-modal #paypal-express-coupon {
  float: left;
  width: 50%;
  box-sizing: border-box;
  height: 33px;
  line-height: 33px;
}
#pp-express-modal #paypal-express-coupon-error {
  margin-bottom: 6px;
}
#pp-express-modal .button2 {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-size: 0.9rem;
}
#pp-express-modal .product-row {
  min-height: 60px;
  margin: 0;
}
#pp-express-modal .item-row {
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 10px;
  display: block;
}
#pp-express-modal .item-row.coupon-row {
  float: left;
  width: 100%;
}
#pp-express-modal .item-subrow {
  margin-top: 5px;
  margin-bottom: 5px;
  display: block;
}
#pp-express-modal .product-image {
  float: left;
  width: 50px;
  height: 50px;
  margin: 0;
  overflow: hidden;
}
#pp-express-modal .product-image img {
  max-width: 100%;
}
#pp-express-modal .product-info {
  margin-left: 60px;
  padding-top: 5px;
}
#pp-express-modal .product-qty {
  font-size: 0.8rem;
}
#pp-express-modal #shopping-cart-totals-table {
  width: 100%;
}
#pp-express-modal #shopping-cart-totals-table td {
  padding-left: 10px;
}
#pp-express-modal.loading:before {
  content: " ";
  background: url('https://skin.weareknitters.fr/skin/frontend/base/default/images/gene/loader.gif') no-repeat;
  height: 48px;
  width: 48px;
  position: absolute;
  top: 30%;
  left: 44%;
  left: calc(50% - 24px);
}
@media (max-width: 770px) {
  #pp-express-modal {
    width: 70%;
    height: 80%;
    top: 10%;
    left: 15%;
  }
}
@media (max-width: 500px) {
  #pp-express-modal {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
    border-radius: 0;
    padding: 25px;
  }
}
/* If the element contains a PayPal express button don't force the buttons to width 100% */
.product-view .add-to-cart-buttons.braintree-paypal-express-container .button {
  width: auto;
}
@media (max-width: 450px) {
  .product-view .add-to-cart-buttons.braintree-paypal-express-container {
    width: 100%;
  }
  .product-view .add-to-cart-buttons.braintree-paypal-express-container .button {
    width: 100%;
  }
}

