@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(1turn);
    }
}


.payment-form-wrapper {
    background-color: #f6f9fc;

    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    -ms-flex: auto;
    flex: auto;
    min-width: 100%;
    min-height: 300px;

    -ms-flex-align: center;
    align-items: center;
    border-radius: 4px;
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    margin-left: -10px;
    margin-right: -10px;

    padding: 20px;
}

@media (max-width: 670px) {
    .payment-form-wrapper {
        padding: 0;
    }
}


.payment-form-wrapper * {
    font-family: Interface, Open Sans, Segoe UI, sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.payment-form-wrapper form {
    margin: 0;

    max-width: 496px !important;
    padding: 0 15px;

    position: relative;
    width: 100%;
    max-width: 500px;
    transition-property: opacity, transform;
    transition-duration: 0.35s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}


.payment-form-wrapper.submitting form {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.payment-form-wrapper form > * + * {
    margin-top: 20px;
}

.payment-form-wrapper .container-stripe {
    margin: 0 auto;
    width: 100%;
    max-width: 1040px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding-bottom: 3px;
    box-sizing: content-box!important;
    position: static!important;
    display: block!important;
}

.container-stripe * {
    box-sizing: content-box !important;
}

.payment-form-wrapper fieldset {
    border-style: none;
    padding: 7px;
    margin-left: -5px;
    margin-right: -5px;
    background: rgba(18, 91, 152, 0.1);
    border-radius: 8px;
}

.payment-form-wrapper fieldset legend {
    margin: 0!important;
    float: left!important;
    width: 100%!important;
    text-align: center!important;
    font-size: 13px!important;
    color: #8898aa!important;
    padding: 3px 10px 7px!important;
    font-weight: normal!important;
    border-style: none!important;
}

.payment-form-wrapper .card-only {
    display: block;
}
.payment-form-wrapper .payment-request-available {
    display: none;
}

.payment-form-wrapper fieldset legend + * {
    clear: both;
}

.payment-form-wrapper input, .payment-form-wrapper button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border-style: none;
    color: #fff;
    padding: 0px!important;
}

.payment-form-wrapper input:-webkit-autofill {
    transition: background-color 100000000s;
    -webkit-animation: 1ms void-animation-out;
}

.payment-form-wrapper #card-element {
    padding: 10px;
    margin-bottom: 2px;
    min-width: 300px;
}

.payment-form-wrapper input {
    -webkit-animation: 1ms void-animation-out;
}

.payment-form-wrapper input::-webkit-input-placeholder {
    color: #9bacc8;
}

.payment-form-wrapper input::-moz-placeholder {
    color: #9bacc8;
}

.payment-form-wrapper input:-ms-input-placeholder {
    color: #9bacc8;
}

.payment-form-wrapper button {
    display: block;
    width: 100%;
    height: 37px;
    background-color: #d782d9;
    border-radius: 2px;
    color: #fff;
    cursor: pointer;
}

.payment-form-wrapper button:active {
    background-color: #b76ac4;
}

.payment-form-wrapper .error-stripe svg .base {
    fill: #e25950;
}

.payment-form-wrapper .error-stripe svg .glyph {
    fill: #f6f9fc;
}

.payment-form-wrapper .error-stripe svg {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-top: -1px;
    margin-right: 10px;
}


.payment-form-wrapper .error-stripe {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    top: 100%;
    margin-top: 20px;
    left: 0;
    padding: 0 15px;
    font-size: 13px !important;
    opacity: 0;
    transform: translateY(10px);
    transition-property: opacity, transform;
    transition-duration: 0.35s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}
.payment-form-wrapper .error-stripe.visible {
    opacity: 1;
    transform: none;
}

.payment-form-wrapper .error-stripe .message {
    color: #e25950;
    font-size: inherit;
}

.payment-form-wrapper .success-stripe .icon .border {
    stroke: #ffc7ee;
}

.payment-form-wrapper .success-stripe .icon .checkmark {
    stroke: #d782d9;
}

.payment-form-wrapper .success-stripe .title {
    color: #32325d;
}

.payment-form-wrapper .success-stripe .message {
    color: #8898aa;
}

.payment-form-wrapper .success-stripe .reset path {
    fill: #d782d9;
}





.payment-form-wrapper .success-stripe {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 10px;
    text-align: center;
    pointer-events: none;
    overflow: hidden;
}


.payment-form-wrapper .submitting .success-stripe {
    pointer-events: all;
}

.payment-form-wrapper .success-stripe > * {
    transition-property: opacity, transform;
    transition-duration: 0.35s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(50px);
}

.payment-form-wrapper .success-stripe .icon{
    /*margin: 15px 0 30px;*/
    margin-top: -50px;
    transform: translateY(70px) scale(0.75);
}

.payment-form-wrapper .success-stripe .icon svg{
    will-change: transform;
}


.payment-form-wrapper .success-stripe .icon .border {
    stroke: #ffc7ee;
    stroke-dasharray: 251;
    stroke-dashoffset: 62.75;
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: spin 1s linear infinite;
}

.submitting .success-stripe .icon {
    pointer-events: all;
    opacity: 1;
}


.journal-stripe {
    min-height: 200px!important;
    padding-top: 0!important;
    margin-left: 0!important;
    margin-right: 0!important;
}


.payment-form-wrapper .checkbox-inline input.checkbox_save_card{
    -webkit-appearance: checkbox;
}

.payment-form-wrapper .checkbox-inline {
    margin-left: 10px; 
}


/* Journal theme fix */
.quick-checkout-wrapper .right .checkout-section.checkout-payment-details.payment-stripe {
    display: block !important;
}
.quick-checkout-wrapper .right .checkout-payment-details .payment-form-wrapper legend.payment-request-available {
    display: none;
}
/* Journal theme fix */


/* d_quickcheckout theme fix */
#d_quickcheckout #payment_view .payment-form-wrapper a {
    display: block !important;
}
#d_quickcheckout .payment-form-wrapper .payment-request-available { display: none; }
/* d_quickcheckout theme fix */