/* ═══════════════════════════════════════════════════════════════════════
   NAMI Stripe Checkout – Styles
   Adapted from namistripe.css; uses #nsco- prefixed IDs.
═══════════════════════════════════════════════════════════════════════ */

/* ── Wrapper ───────────────────────────────────────────────────────── */
#nsco-wrapper {
    max-width: 660px;
}

/* ── Customer Info Form ─────────────────────────────────────────────── */
.ns-form h3 {
    margin: 10px 0 10px 0;
}

.ns-form .sform-row {
    margin: 5px 0 5px 0;
}

.ns-form input {
    padding: 5px 15px 5px 0;
    width: 593px;
}

.ns-form label {
    min-width: 80px;
    display: inline-block;
}

.ns-form input + label {
    min-width: 70px;
    text-align: right;
}

#nsco-city,
#nsco-account,
#nsco-invoice,
#nsco-amount {
    width: 200px;
}

#nsco-state {
    width: 125px;
}

#nsco-zip {
    width: 75px;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
#nsco-submit-btn,
#nsco-create-account-btn {
    display: block;
    width: 230px;
    height: 40px;
    margin: 20px 0 0;
    background-color: #ee562f;
    border-color: #ee562f;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 15px;
}

#nsco-submit-btn:disabled,
#nsco-create-account-btn:disabled {
    background-color: #999999;
    border-color: #999999;
    cursor: progress;
}

/* ── Payment Type Tabs ─────────────────────────────────────────────── */
.nsco-pay-tab {
    background-color: #999;
    padding: 10px;
    margin: 5px 0 5px 0;
    color: #fff;
    display: inline-block;
    text-decoration: none;
}

#nsco-pay-card {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

#nsco-pay-ach {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

#nsco-pay-tab:hover {color:#fff;}

.nsco-pay-tab.active {
    background-color: #ee562f;
    color:#fff;
}

/* ── Fee Info Box ──────────────────────────────────────────────────── */
.ns-fee-info {
    margin: 5px 0 5px 0;
    font-style: italic;
}

#nsco-fee-display {
    font-size: 14px;
}

/* ── Error / Status Messages ────────────────────────────────────────── */
.nsco-form-error {
    color: #cc0000;
    font-weight: bold;
    margin: 8px 0;
}

.nsco-success {
    background: #f0faf0;
    border-left: 4px solid #28a745;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 4px;
}

.nsco-success h3 {
    margin: 0 0 10px 0;
    color: #28a745;
}

.nsco-error {
    color: #cc0000;
    font-weight: bold;
    background: #fff0f0;
    border-left: 4px solid #cc0000;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
}

.nsco-info {
    color: #555;
    font-style: italic;
    padding: 10px 0;
}

.nsco-loading {
    color: #555;
    font-style: italic;
}

.nsco-settled {
    color: #28a745;
    font-weight: bold;
}

.nsco-pending {
    color: #e6a817;
    font-weight: bold;
}

.nsco-ach-note {
    font-style: italic;
    color: #555;
    margin-top: 8px;
}

.nsco-success-sm {
    color: #28a745;
    font-weight: bold;
}

/* ── Auth Links ────────────────────────────────────────────────────── */
.nsco-auth {
    font-size: 13px;
    margin: 0 0 10px 0;
    color: #666;
}

/* ── Stripe Checkout Embedded Area ─────────────────────────────────── */
#nsco-checkout-wrap {
    max-width: 660px;
}

#nsco-checkout-header {
    margin-bottom: 10px;
}

#nsco-back-btn {
    background: none;
    border: none;
    color: #2455bb;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    text-decoration: underline;
}

#nsco-back-btn:hover {
    color: #ee562f;
}

#checkout {
    /* Stripe will size this – no fixed height */
}

/* ── Result Wrap ─────────────────────────────────────────────────────── */
#nsco-result-wrap {
    max-width: 660px;
}

#nsco-create-account-wrap {
    margin-top: 20px;
    padding: 15px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#nsco-account-form {
    margin-top: 10px;
}

#nsco-account-form input {
    width: 250px;
}

/* ── Spinner (reused from namistripe.css) ────────────────────────────── */
.ns-spinner {
    width: 30px;
    height: 30px;
    position: relative;
    margin: 10px 10px -3px 10px;
    display: inline-block;
    opacity: 0;
}

.ns-double-bounce1,
.ns-double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #2c61cd;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.ns-double-bounce2 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

@-webkit-keyframes sk-bounce {
    0%, 100% { -webkit-transform: scale(0.0); }
    50% { -webkit-transform: scale(1.0); }
}

@keyframes sk-bounce {
    0%, 100% {
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
    }
    50% {
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {
    .ns-form input {
        width: 100%;
    }

    .ns-form label {
        display: block;
        width: 100%;
    }

    .ns-form input + label {
        text-align: left;
    }

    #nsco-city,
    #nsco-account,
    #nsco-invoice,
    #nsco-amount {
        width: 100%;
    }

    #nsco-state,
    #nsco-zip {
        width: 100%;
    }

    #nsco-submit-btn,
    #nsco-create-account-btn {
        width: 100%;
    }

    #nsco-account-form input {
        width: 100%;
    }

    .nsco-pay-tab {
        display: block;
        border-radius: 0;
        text-align: center;
    }

    #nsco-pay-card {
        border-radius: 10px 10px 0 0;
    }

    #nsco-pay-ach {
        border-radius: 0 0 10px 10px;
    }
}
