/* Payment Step */
#step3.payment-step .bg,
#payment-modal .bg {
    background-color: #fcfcfc;
    border-radius: 10px;
    padding: 20px;
    margin-top: 80px;
}

#step3.payment-step .r,
#payment-modal .r {
    display: -ms-flexbox;
    display: flex;
    margin: 0 5px 10px;
}

#step3.payment-step .field,
#payment-modal .field {
    position: relative;
    width: 100%;
    height: 50px;
    background: #f9f8f8;
    border-radius: 5px;
    border: 1px solid #dddddd;
    padding-top: 5px;
}

#step3.payment-step .field.expand {

}

#step3.payment-step .field span.brand,
#payment-modal .field span.brand {
    position: absolute;
    left: 5px;
    top: 5px;
    transform: translateY(50%);
    color: #818181;
}

#step3.payment-step .field.half-width,
#payment-modal .field.half-width {
    width: 50%;
    margin-right: 5px;
}
#step3.payment-step .r .field.half-width:last-of-type,
#payment-modal .r .field.half-width:last-of-type  {
    margin-right: 0;
    margin-left: 5px;
}

#step3.payment-step .field.quarter-width,
#payment-modal .field.quarter-width {
    width: calc(25% - 10px);
}

#step3.payment-step .baseline,
#payment-modal .baseline {
    position: absolute;
    width: 100%;
    height: 1px;
    left: 0;
    bottom: 0;
    background-color: #cfd7df;
    transition: background-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#step3.payment-step .field label,
#payment-modal .field label {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    color: #818181;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform-origin: 0 50%;
    cursor: text;
    pointer-events: none;
    transition-property: color, transform;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

#step3.payment-step .field label[for="card-number"],
#payment-modal .field label[for="card-number"] {
    left: 30px;
}

#step3.payment-step .input,
#payment-modal #payment-form .input {
    position: absolute;
    width: 90%;
    left: 5%;
    bottom: 0;
    color: #32325d;
    background-color: transparent;
}

#step3.payment-step #card-number.input,
#payment-modal #card-number.input {
    left: 50px;
}

#step3.payment-step .input::-webkit-input-placeholder,
#payment-modal .input::-webkit-input-placeholder {
    color: transparent;
    transition: color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#step3.payment-step .input::-moz-placeholder,
#payment-modal .input::-moz-placeholder {
    color: transparent;
    transition: color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#step3.payment-step .input:-ms-input-placeholder,
#payment-modal .input:-ms-input-placeholder {
    color: transparent;
    transition: color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#step3.payment-step .input.StripeElement,
#payment-modal .input.StripeElement {
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity;
}

#step3.payment-step .input.focused,
#step3.payment-step .input:not(.empty),
#payment-modal .input.focused,
#payment-modal .input:not(.empty) {
    opacity: 1;
}

#step3.payment-step .input.focused::-webkit-input-placeholder,
#step3.payment-step .input:not(.empty)::-webkit-input-placeholder,
#payment-modal .input.focused::-webkit-input-placeholder,
#payment-modal .input:not(.empty)::-webkit-input-placeholder {
    color: #cfd7df;
}

#step3.payment-step .input.focused::-moz-placeholder,
#step3.payment-step .input:not(.empty)::-moz-placeholder,
#payment-modal .input.focused::-moz-placeholder,
#payment-modal .input.focused::-moz-placeholder {
    color: #cfd7df;
}

#step3.payment-step .input.focused:-ms-input-placeholder,
#step3.payment-step .input:not(.empty):-ms-input-placeholder,
#payment-modal .input.focused:-ms-input-placeholder,
#payment-modal .input.focused:-ms-input-placeholder {
    color: #cfd7df;
}

#step3.payment-step .input.focused+label,
#step3.payment-step .input:not(.empty)+label,
#payment-modal .input.focused+label,
#payment-modal .input:not(.empty)+label {
    color: #aab7c4;
    transform: scale(0.85) translateY(-25px);
    cursor: default;
    font-size: 12px;
}

#step3.payment-step .input.focused+label,
#payment-modal .input.focused+label {
    color: #24b47e;
}

#step3.payment-step .input.invalid+label,
#payment-modal .input.invalid+label {
    color: #ffa27b;
}

#step3.payment-step .input.focused+label+.baseline,
#payment-modal .input.focused+label+.baseline {
    background-color: #24b47e;
}

#step3.payment-step .input.focused.invalid+label+.baseline,
#payment-modal .input.focused.invalid+label+.baseline {
    background-color: #e25950;
}

#step3.payment-step .field input,
#payment-modal .field input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border-style: none;
}

#step3.payment-step .field input:-webkit-autofill,
#payment-modal .field input:-webkit-autofill {
    -webkit-text-fill-color: #e39f48;
    transition: background-color 100000000s;
    -webkit-animation: 1ms void-animation-out;
}

#step3.payment-step .StripeElement--webkit-autofill,
#payment-modal .StripeElement--webkit-autofill {
    background: transparent !important;
}

#step3.payment-step .field input,
#payment-modal .field input {
    -webkit-animation: 1ms void-animation-out;
}

#step3.payment-step .error svg,
#payment-modal .error svg {
    margin-top: 0 !important;
}

#step3.payment-step .error svg .base,
#payment-modal .error svg .base {
    fill: #e25950;
}

#step3.payment-step .error svg .glyph,
#payment-modal .error svg .glyph {
    fill: #fff;
}

#step3.payment-step .error .message,
#payment-modal .error .message {
    color: #e25950;
}

#step3.payment-step .success .icon .border,
#payment-modal .success .icon .border {
    stroke: #abe9d2;
}

#step3.payment-step .success .icon .checkmark,
#payment-modal .success .icon .checkmark {
    stroke: #24b47e;
}

#step3.payment-step .success .title,
#payment-modal .success .title {
    color: #32325d;
    font-size: 16px !important;
}

#step3.payment-step .success .message,
#payment-modal .success .message {
    color: #8898aa;
    font-size: 13px !important;
}

#step3.payment-step .success .reset path,
#payment-modal .success .reset path {
    fill: #24b47e;
}

#step3.payment-step .tip-jar,
#payment-modal .tip-jar {
    height: auto;
    border-radius: 5px;
    background-color: #f4f4f4;
    margin: 10px 0;
    padding: 10px 13px;
    width: calc(100% - 26px);
}

#step3.payment-step .tip-jar::after
#payment-modal .tip-jar::after {
    content: "";
    clear: both;
    display: table;
}

#step3.payment-step .tip-jar .left,
#payment-modal .tip-jar .left {
    float: left;
    width: 70%;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #7e7e7e;
}

#step3.payment-step .tip-jar .left h5,
#payment-modal .tip-jar .left h5 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.33;
    color: #363131;
    margin-bottom: 5px;
    margin-top: 0;
}

#step3.payment-step .tip-jar .right,
#payment-modal .tip-jar .right {
    float: right;
    width: 30%;
    text-align: right;
}

#step3.payment-step .tip-jar .right .switch,
#payment-modal .tip-jar .right .switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

#step3.payment-step .tip-jar .right .switch input,
#payment-modal .tip-jar .right .switch input {
    display: none;
}

#step3.payment-step .tip-jar .right .slider,
#payment-modal .tip-jar .right .slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

#step3.payment-step .tip-jar .right .slider:before,
#payment-modal .tip-jar .right .slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

#step3.payment-step .tip-jar .right input:checked+.slider,
#payment-modal .tip-jar .right input:checked+.slider {
    background-color: #66bb6a;
}

#step3.payment-step .tip-jar .right input:checked+.slider:before,
#payment-modal .tip-jar .right input:checked+.slider:before {
    transform: translateX(26px);
}

#step3.payment-step .tip-jar .right .slider.round,
#payment-modal .tip-jar .right .slider.round {
    border-radius: 34px;
}

#step3.payment-step .tip-jar .right .slider.round:before,
#payment-modal .tip-jar .right .slider.round:before {
    border-radius: 50%;
}

#step3.payment-step .monthly-disclaimer,
#payment-modal .monthly-disclaimer {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #7e7e7e;
    display: none;
}

#step3.payment-step .monthly-disclaimer.show, 
#payment-modal .monthly-disclaimer.show {
    display: block;
}