/* Payment Element */
.stripe-payments-elements.no-wrap {
    white-space: nowrap;
    margin-bottom: 10px;
}
.stripe-permanent-error {
    text-align: center;
    padding: 0 2em 2em 2em;
    font-size: large;
}

/* My Subscriptions customer account section */
a.subscription-name {
    display: block;
}
.stripe-subscription-edit {
    max-height: 30em;
    overflow: hidden;
    transition: max-height;
    transition-duration: 0.8s;
    vertical-align: top;
    display: inline-block;
    padding-right: 20px;
}
.stripe-subscription-edit.show {
    max-height: 30em;
}
.stripe-subscription-edit .section {
    margin: 5px 0;
}
.stripe-subscription-edit .mutable {
    display: none;
}
.stripe-subscription-edit.edit .mutable {
    display: block;
}
.stripe-subscription-edit.edit .static {
    display: none;
}
.stripe-subscription-edit .actions {
    margin-top: 10px;
}
.stripe-subscription-edit input {
    margin: 2px 0;
}
.subscription-card input {
    margin-right: 5px;
}
.subscription-card {
    padding: 5px 0 0 5px;
}
.subscription-card .exp, .details.stripe-payments .exp {
    color: #aaa;
}
.subscription-card.add-new {
    padding: 10px;
    text-align: center;
}
.stripe-subscriptions .section b {
    padding-bottom: 0.5em;
    display: inline-block;
}
table.subscription-details {
    font-size: small;
    color: #333;
}
table.subscription-details td {
    padding: 0;
}
table.subscription-details tr td:first-child {
    width: 100%;
}
@media (pointer: fine) {
    table.subscription-details a.edit {
        visibility: hidden;
    }
    table.subscription-details div.details:hover a.edit {
        visibility: visible;
    }
}
.stripe-subscriptions .subscription-name {
    font-size: 1.1em;
}
.stripe-subscriptions div.billed {
    font-size: smaller;
    color: #999;
}
table.subscription-details a {
    cursor: pointer;
}
table.subscription-details .stripe-payments span.type {
    font-size: small;
}

body.stripe_payments-customer-subscriptions .subscription-details .mutable.section {
    margin-top: 1.2em;
}
body.stripe_payments-customer-subscriptions .stripe-subscription-edit img.icon
{
    position: relative;
    top: 10px;
}
body.stripe_payments-customer-subscriptions .stripe-subscription-edit span.label
{
    margin-left: 5px;
}
body.stripe_payments-customer-subscriptions .stripe-subscription-edit span.exp
{
    margin-left: 12px;
}
body.stripe_payments-customer-subscriptions .stripe-subscription-edit label
{
    position: relative;
    top:  -2px;
    cursor: pointer;
}
body.stripe_payments-customer-subscriptions .stripe-subscription-edit .details {
    padding-bottom: 1.2em;
}
body.stripe_payments-customer-subscriptions .stripe-subscription-edit .action.edit {
    margin-left: 10px;
}
body.stripe_payments-customer-subscriptions .stripe-subscription-edit .static.section .details {
    cursor: pointer;
}

/* My Payment Methods section */
body.stripe_payments-customer-paymentmethods .stripe-payments.delete-method {
    padding-left: 20px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+ZGVsZXRlLS1saW5rPC90aXRsZT48cGF0aCBkPSJNMTEuODY2IDkuOTk5bDIuNzQzLTIuNzQ0YTEuMzIyIDEuMzIyIDAgMCAwIC4wMDItMS44NjggMS4zMTggMS4zMTggMCAwIDAtMS44NjguMDAyTDEwIDguMTMzIDcuMjUyIDUuMzg0YTEuMzIzIDEuMzIzIDAgMCAwLTEuODYzLjAwMyAxLjMxNCAxLjMxNCAwIDAgMC0uMDAzIDEuODYzTDguMTM0IDEwbC0yLjc0MyAyLjc0M2ExLjMyMiAxLjMyMiAwIDAgMC0uMDAyIDEuODY4IDEuMzE4IDEuMzE4IDAgMCAwIDEuODY4LS4wMDJMMTAgMTEuODY0bDIuNzQ4IDIuNzQ5YTEuMzIzIDEuMzIzIDAgMCAwIDEuODYzLS4wMDNjLjUyLS41MTkuNTE3LTEuMzUuMDAzLTEuODYzbC0yLjc0OC0yLjc0OHoiIGZpbGw9IiMwMDk5RTUiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==');
    background-repeat: no-repeat;
}
body.stripe_payments-customer-paymentmethods .saved-payment-methods img.saved-payment-method-icon {
    position: relative;
    top: 8px;
    height: 32px;
}
body.stripe_payments-customer-paymentmethods .saved-payment-methods td {
    line-height: 28px;
}
body.stripe_payments-customer-paymentmethods .saved-payment-methods td.saved-payment-method-name {
    padding:  0 10px 10px 10px;
}
body.stripe_payments-customer-paymentmethods .saved-payment-methods td.saved-payment-method-name label {
    margin-left: 10px;
}
body.stripe_payments-customer-paymentmethods .saved-payment-methods {
    margin-bottom: 3em;
}
body.stripe_payments-customer-paymentmethods .actions-toolbar {
    margin-top: 1.5em;
}
body.stripe_payments-customer-subscriptions td.col.order {
    width: 120px;
}
/* Card Icons */
.stripe-payments span.type.Visa,
.stripe-payments span.type.visa { background: url(../img/cards/visa.svg) no-repeat; }

.stripe-payments span.type.American.Express,
.stripe-payments span.type.amex { background: url(../img/cards/amex.svg) no-repeat; }

.stripe-payments span.type.MasterCard,
.stripe-payments span.type.mastercard { background: url(../img/cards/mastercard.svg) no-repeat; }

.stripe-payments span.type.Discover,
.stripe-payments span.type.discover { background: url(../img/cards/discover.svg) no-repeat; }

.stripe-payments span.type.Diners,
.stripe-payments span.type.diners { background: url(../img/cards/diners.svg) no-repeat; }

.stripe-payments span.type.JCB,
.stripe-payments span.type.jcb { background: url(../img/cards/jcb.svg) no-repeat; }

.stripe-payments span.type.Cartes.Bancaires,
.stripe-payments span.type.cartes_bancaires { background: url(../img/svg/cartes_bancaires.svg) no-repeat; }

.stripe-payments span.type.Visa, .stripe-payments span.type.visa,
.stripe-payments span.type.American.Express, .stripe-payments span.type.amex,
.stripe-payments span.type.MasterCard, .stripe-payments span.type.mastercard,
.stripe-payments span.type.Discover, .stripe-payments span.type.discover,
.stripe-payments span.type.Diners, .stripe-payments span.type.diners,
.stripe-payments span.type.JCB, .stripe-payments span.type.jcb,
.stripe-payments span.type.Cartes.Bancaires, .stripe-payments span.type.cartes_bancaires {
    padding-left: 40px;
    background-position-y: -3px;
    display: inline-block;
    height: 22px;
    font-size: 16px;
    background-size: 30px;
}

.payment-method.stripe-payments .checkout-agreements-block {
    margin-bottom: 10px;
}
.payment-method.stripe-payments.mobile {
    padding-top: 1em;
}
@media only screen and (max-width: 767px) {
    .checkout-payment-method .step-title.mobile {
        padding-left: 0;
    }
}

/* Apple Pay */
.stripe-payments-apple-pay-section {
    text-align: center;
    margin-bottom: 25px;
}
.stripe-payments-apple-pay-section label {
    font-weight: bold;
    margin: 10px 0;
    float: none;
    display: block;
}

/* Authorized Apple Pay Result */
.stripe-payments-apple-pay-result label {
    display: inline-block;
    font-weight: bold;
    margin-bottom: 18px;
}
.stripe-payments-apple-pay-result {
    text-align: center;
    padding: 10px 0 15px;
    font-size: 1.1em;
}
.stripe-payments-apple-pay-result > div {
    margin-bottom: 18px;
}

.indent {
    margin-right: 20px;
}

/* Stripe Express */
@-webkit-keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

.box-tocart .action.tocart.payment-request-button
{
    padding: 0;
}

.payment-request-button {
    width: 240px;
}

.payment-request-button.disabled,
.payment-request-button.disabled * {
    pointer-events: none !important;
}

.payment-request-button.disabled {
    opacity: 0.5;
    filter: grayscale(50%);
}

.payment-request-button.disabled::after {
    position: relative;
    height: 1em;
    width: 1em;
    display: block;
    left: 50%;
    margin-left: -.5em;
    margin-top: -1.2em;
    content: '';
    -webkit-animation: spin 1s ease-in-out infinite;
    animation: spin 1s ease-in-out infinite;
    background: url(../svg/loader.svg) center center;
    background-size: cover;
    line-height: 1;
    text-align: center;
    font-size: 2em;
    color: rgba(0, 0, 0, .75)
}

.stripe-payments-express-minicart {
    margin-top: 15px;
}

.stripe-payments-express-minicart .payment-request-button, .payment-request-button.cart {
    width: 100% !important;
}

.cart-summary .stripe-payments-express-minicart {
    margin-top: 0;
    margin-bottom: 25px;
}

.catalog-product-view .payment-request-button {
    margin-bottom: 15px;
    margin-right: 1%;
    width: 49%;
}

/* Saved payment methods dropdown */
div.stripe-dropdown {
    background: #fff url(../svg/select-bg.svg) no-repeat 98% 14px;
    background-size: 0.8em;
    background-clip: padding-box;
    vertical-align: baseline;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
}
.stripe-element-border {
    border: 1px solid #e6e6e6;
    border-radius: 5px;
}
.stripe-element-font {
    font-family: 'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
    font-size: 16px;
}
.stripe-element-font .instructions span {
    padding-left: 3px;
}
.stripe-card-cvc-element {
    margin-top: 10px;
    margin-bottom: 10px;
}
#stripe-card-cvc-element,
.stripe-card-cvc-element span,
.stripe-card-cvc-element svg {
    padding: 10px;
}

#stripe-card-cvc-element {
    display: inline-block;
    width: 40px;
    min-height: 18px;
}
div.stripe-dropdown-selection {
    margin: -10px; /* affects the clickable region */
    padding: 10px;
}
div.stripe-dropdown img {
    height: 32px;
    display: inline-block;
    margin-bottom: -10px;
    margin-top: -6px;
    margin-right: 5px;
    margin-left: 2px;
}
div.stripe-dropdown, ul.stripe-dropdown-list {
    padding: 10px;
    cursor: pointer;
    user-select: none;
}
ul.stripe-dropdown-list  {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}
ul.stripe-dropdown-list li {
    padding: 12px;
    margin: 0;
    background-position: 10px 45%;
    background-repeat: no-repeat;
    background-size: 30px 30px;
    opacity: 0.8;
}
ul.stripe-dropdown-list li:first-child {
    margin-top: 5px;
}
ul.stripe-dropdown-list li:hover {
    opacity: 1;
    background-color: #f3f8fd;
}
ul.stripe-dropdown-list a {
    text-decoration: none;
}

.stripe-icon-container img.stripe-icon {
    height: 1.7em;
    position: relative;
    top: 0.4em;
    margin-right: 2px;
}

.stripe-icon-container.right {
    float: right;
    position: relative;
    top: -0.6em;
}
.stripe-checkout-icon-container {
    padding: 1em 0;
}
.stripe-checkout-icon-container .stripe-icon {
    height: 2em;
    margin-right: 0.25em;
}

/* Card element at multishipping page */
.stripe-card-element {
    border: 1px solid #e6e6e6;
    padding: 1em;
    border-radius: 5px;
}

/* Trialing Subscriptions */
.trialing_shipping .mark,
.trialing_tax .mark,
.trialing_discount .mark {
    text-indent: 0.5em;
}
.trialing_shipping .mark::before,
.trialing_tax .mark::before,
.trialing_discount .mark::before {
    content: "- ";
}
