/* Variables */

.result-message {
    line-height: 22px;
    font-size: 16px;
}

.result-message a {
    color: rgb(89, 111, 214);
    font-weight: 600;
    text-decoration: none;
}

.hidden {
    display: none;
}

.form-group.payment-options label, .form-group.frequency label {
    cursor: pointer;
}

#card-error.visible {
    display: block !important; 
}

#card-error {
    color: red;
    text-align: left;
    font-size: 1rem;
    line-height: 1.2;
    display: none;
}

#transaction-error {
    color: red;
    text-align: left;
    font-size: 1rem;
    line-height: 1.2;
}

.card_container .form_group {
    margin-bottom: .5rem;
}

.card_container legend {
    color: #777;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.2;
    margin: -.5rem 0 1rem;
}

.wrap-stripe-submit {
    margin-top: 0;
    margin-bottom: 0;
}

#before-payment-msg {
    background-color: #ffeed5;
    padding: 1rem;
    margin: 1rem 0;
}

.plaid-intro {
    width: 75%;
    margin: 0 auto;
}

.plaid-image {
    text-align: center;
}

#secure-badge {
    margin-top: .5rem;
    margin-bottom: 0;
    line-height: 1;
}

#secure-badge * {
    vertical-align: bottom;
}

#secure-badge span {
    color: #555;
    text-transform: uppercase;
    font-size: .75rem;
    margin-left: .2rem;
    line-height: 1;
}

#secure-badge .secure-lock {
    fill: #3b7267;
}

#secure-badge .secure-check {
    fill: #fff;
}

#secure-badge svg {
    width: 1.2rem;
    display: inline-block;
}

#card-number, #card-cvc, #card-expiry {
    background: white;
}

/* @fixme: this currently matches LIA colors */
.StripeElement--focus {
    background-color: #fff;
    border-color: #fb5;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(212,127,0,.25);
}

#payment-request-button {
    margin-bottom: 2rem;
}

/* spinner/processing state, errors */
.spinner,
.spinner::before,
.spinner::after {
    border-radius: 50%;
}

.spinner.hidden {
    display: none;
}

/* Hide button label so width with spinner matches */
.noHeight {
    height: 0;
    display: block;
    overflow: hidden;
}

.spinner {
    vertical-align: middle;
    margin: 0;
    height: 1.5rem;
    width: auto;
    padding: 0;
    line-height: 1rem;
    text-align: center;
    white-space: nowrap;
}

.spinner > div {
    margin: .25rem;
    width: 1rem;
    height: 1rem;
    background-color: #fff;

    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
    0%, 80%, 100% { -webkit-transform: scale(0) }
    40% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% { 
        -webkit-transform: scale(0);
        transform: scale(0);
    } 40% { 
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}

.dollar-sign .input-group-text {
    color: white;
    background-color: var(--primary);
}

.other_amount {
    max-width: 125px;
}
