/**
 * Wildanet Switch Credit – Checkout Styles
 * Mirrors the OTS section styling for visual consistency.
 */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap');

/* ── Wrapper ──────────────────────────────────────────── */
.sc-wrapper {
    border: 1px solid #cce0d6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    background: #fff;
    font-family: 'Work Sans', sans-serif;
}

.sc-wrapper h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: .4em;
}

.sc-wrapper .sc-intro {
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0 0 1.2em;
    color: #333;
}

/* ── Toggle buttons (mirrors .ots-toggle / .ots-btn) ── */
.sc-toggle {
    margin: 10px 0 20px;
    display: flex;
    gap: 10px;
}

.sc-btn {
    flex: 1;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Work Sans', sans-serif;
    transition: background .2s, color .2s;
}

.sc-btn.active.yes {
    background: #48A9A6 !important;
    color: #fff !important;
    border: 2px solid #48A9A6 !important;
}

.sc-btn.active.no {
    background: #C996D6 !important;
    color: #fff !important;
    border: 2px solid #C996D6 !important;
}

.sc-btn:not(.active).yes {
    background: #fff !important;
    color: #48A9A6 !important;
    border: 2px solid #48A9A6 !important;
}

.sc-btn:not(.active).no {
    background: #fff !important;
    color: #C996D6 !important;
    border: 2px solid #C996D6 !important;
}

/* ── Credit display ───────────────────────────────────── */
.sc-credit-display {
    margin-top: 16px;
}

.sc-credit-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00b67a 0%, #009966 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 182, 122, 0.25);
}

.sc-credit-label {
    font-weight: 500;
    opacity: 0.9;
}

.sc-credit-amount {
    font-size: 1.15rem;
    font-weight: 700;
}

.sc-credit-note {
    font-size: .9rem;
    color: #333;
    margin: 20px 0 0 0;
    line-height: 1.5;
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 12px 16px;
    border-radius: 8px;
}

/* ── No credit match warning ──────────────────────────── */
.sc-no-match {
    font-size: .95rem;
    color: #333;
    line-height: 1.5;
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
}