/* Styles for Pages/Billing/Configure.cshtml.
   The Tailwind build output is not linked by _Layout.cshtml, so this page ships
   its own stylesheet (same pattern as billing.css / pricing.css). */

.sc-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
    color: #0f172a;
}

.sc-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sc-explain {
    margin-bottom: 1.5rem;
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    border-radius: 1rem;
    padding: 1.25rem;
    color: #0c4a6e;
}

.sc-explain h2 {
    margin: 0 0 .5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.sc-explain p {
    margin: 0;
    line-height: 1.55;
}

.sc-explain p + p {
    margin-top: .75rem;
}

.sc-eyebrow {
    margin: 0;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #00853f;
}

.sc-title {
    margin: .25rem 0 0;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #020617;
}

.sc-sub {
    margin: .5rem 0 0;
    max-width: 48rem;
    color: #475569;
}

.sc-back {
    border: 1px solid #e2e8f0;
    border-radius: .5rem;
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    background: #fff;
    white-space: nowrap;
}

.sc-back:hover {
    background: #f8fafc;
    color: #0f172a;
}

.sc-notice {
    margin-bottom: 1.5rem;
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    border-radius: .75rem;
    padding: .75rem 1rem;
    font-size: .875rem;
    color: #064e3b;
}

.sc-form {
    display: grid;
    gap: 2rem;
}

.sc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.sc-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sc-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #020617;
}

.sc-card-note {
    margin: .25rem 0 0;
    font-size: .875rem;
    color: #475569;
}

.sc-cycle {
    display: inline-flex;
    gap: .25rem;
    padding: .25rem;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    background: #f8fafc;
}

.sc-cycle-btn {
    border: 0;
    background: transparent;
    border-radius: .5rem;
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.sc-cycle-btn:hover {
    background: #fff;
}

.sc-cycle-btn.is-active {
    background: #0f172a;
    color: #fff;
}

/* The three plan cards always stay on one row on desktop. */
.sc-tiers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.sc-tier {
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    padding: 1.25rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.sc-tier:hover {
    transform: translateY(-2px);
    border-color: #6ee7b7;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .08);
}

.sc-tier.is-selected {
    border-color: #00853f;
    background: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(0, 133, 63, .35);
}

.sc-tier-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.sc-tier-name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #020617;
}

.sc-tier-summary {
    margin: .25rem 0 0;
    font-size: .875rem;
    line-height: 1.3;
    color: #475569;
}

.sc-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #00853f;
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .25rem .625rem;
    visibility: hidden;
}

/* The badge is always in the markup so the card layout does not shift when the
   client-side selection changes; only its visibility toggles. */
.sc-tier.is-selected .sc-badge {
    visibility: visible;
}

.sc-price-grid,
.sc-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.25rem;
}

.sc-meta {
    margin-top: 1rem;
}

.sc-price {
    background: #f8fafc;
    border-radius: .75rem;
    padding: .75rem;
}

.sc-price-label,
.sc-meta dt {
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}

.sc-price-value {
    margin-top: .25rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #020617;
}

.sc-meta > div {
    border: 1px solid #f1f5f9;
    border-radius: .75rem;
    padding: .5rem .75rem;
}

.sc-meta dd {
    margin: .125rem 0 0;
    font-size: .875rem;
    font-weight: 600;
    color: #020617;
}

.sc-features {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: .5rem;
    font-size: .875rem;
    color: #334155;
}

.sc-features li {
    display: flex;
    gap: .5rem;
}

.sc-features li::before {
    content: "\2713";
    color: #00853f;
    font-weight: 700;
}

.sc-lower {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2rem;
    align-items: start;
}

.sc-addon-rows {
    margin-top: 1.25rem;
}

.sc-pos-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: .5rem;
}

.sc-pos-option {
    border: 1px solid #cbd5e1;
    border-radius: .875rem;
    background: #fff;
    padding: .875rem;
    text-align: left;
    cursor: pointer;
    color: #0f172a;
}

.sc-pos-option:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.sc-pos-option.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.sc-pos-option span,
.sc-pos-option small {
    display: block;
}

.sc-pos-option span {
    font-weight: 700;
}

.sc-pos-option small {
    margin-top: .25rem;
    color: #475569;
    line-height: 1.35;
}

.sc-addon-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 120px;
    align-items: center;
    gap: .75rem;
    padding: 1rem 0;
    border-top: 1px solid #f1f5f9;
}

.sc-addon-row:first-child {
    border-top: 0;
}

.sc-addon-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #020617;
}

.sc-addon-note {
    margin: .125rem 0 0;
    font-size: .875rem;
    color: #475569;
}

.sc-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: .5rem;
    padding: .5rem .75rem;
    background: #fff;
    color: #0f172a;
}

.sc-addon-total {
    text-align: right;
    font-weight: 600;
    color: #020617;
}

.sc-summary {
    position: sticky;
    top: 1.5rem;
    align-self: start;
}

.sc-dl {
    margin: 1rem 0 0;
    display: grid;
    gap: .75rem;
    font-size: .875rem;
}

.sc-dl > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.sc-dl dt {
    color: #475569;
}

.sc-dl dd {
    margin: 0;
    font-weight: 600;
    color: #020617;
}

.sc-total {
    margin-top: 1.25rem;
    background: #f8fafc;
    border-radius: .75rem;
    padding: 1rem;
}

.sc-total-label {
    font-size: .875rem;
    color: #475569;
}

.sc-total-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #020617;
}

.sc-warn {
    margin-top: 1rem;
    border: 1px solid #fde68a;
    background: #fffbeb;
    border-radius: .75rem;
    padding: .75rem;
    font-size: .875rem;
    color: #78350f;
}

.sc-note {
    margin-top: .75rem;
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    border-radius: .75rem;
    padding: .75rem;
    font-size: .8125rem;
    line-height: 1.5;
    color: #0c4a6e;
}

.sc-ack {
    border: 1px solid #93c5fd;
    background: #eff6ff;
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 34rem;
    width: calc(100% - 2rem);
    color: #1e40af;
}

.sc-ack::backdrop {
    background: rgba(15, 23, 42, .55);
}

.sc-ack-title {
    margin: 0 0 .5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e3a8a;
}

.sc-ack-body {
    margin: 0 0 1rem;
    font-size: .9375rem;
    line-height: 1.6;
    color: #1e40af;
}

.sc-ack-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.sc-ack-actions .sc-confirm {
    display: inline-block;
    width: auto;
    margin-top: 0;
}

.sc-ack-cancel {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: .625rem;
    padding: .625rem 1rem;
    font-size: .875rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
}

.sc-ack-cancel:hover {
    background: #f8fafc;
}

.sc-confirm,
.sc-draft {
    display: block;
    width: 100%;
    margin-top: 1rem;
    border-radius: .75rem;
    padding: .75rem 1rem;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
}

.sc-confirm {
    border: 1px solid #00853f;
    background: #00853f;
    color: #fff;
}

.sc-confirm:hover {
    background: #006b33;
    border-color: #006b33;
}

.sc-draft {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.sc-draft:hover {
    background: #f8fafc;
}

@media (max-width: 1100px) {
    .sc-lower {
        grid-template-columns: minmax(0, 1fr);
    }

    .sc-summary {
        position: static;
    }
}

@media (max-width: 900px) {
    .sc-tiers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sc-tiers,
    .sc-pos-mode,
    .sc-addon-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .sc-addon-total {
        text-align: left;
    }
}

.sc-all-tiers { margin-top: 1rem; border-top: 1px solid rgba(0,0,0,.1); padding-top: .75rem; }
.sc-all-tiers > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.sc-all-tiers > summary::-webkit-details-marker { display: none; }
.sc-all-tiers .sc-arrow::after { content: 'Expand \25BC'; font-weight: 500; }
.sc-all-tiers[open] .sc-arrow::after { content: 'Collapse \25B2'; }
.sc-highlight { background: #fff3a8; padding: 0 .25rem; border-radius: 4px; }

