/* low-commission-savings-calculator-ate — Pattern A simple block.
   All selectors scoped under .lcsc-ate. Palette mirrors the .aaa-ate sibling
   block so both ATE blocks read as one product family. */

.lcsc-ate {
    --lcsc-blue:           #1b6bff;
    --lcsc-blue-dark:      #0f4fcc;
    --lcsc-blue-tint:      #eaf1ff;
    --lcsc-green:          #1a936f;
    --lcsc-green-hover:    #157a5d;
    --lcsc-green-tint:     #e6f5ef;
    --lcsc-green-border:   #c6e4d6;
    --lcsc-orange:         #f15a29;
    --lcsc-orange-hover:   #d4471c;
    --lcsc-loss:           #b1442b;
    --lcsc-loss-tint:      #fdeee9;
    --lcsc-loss-border:    #f4d6cc;
    --lcsc-text:           #22293b;
    --lcsc-text-muted:     #4a5068;
    --lcsc-text-faint:     #6b7180;
    --lcsc-bg-soft:        #f6f8fc;
    --lcsc-bg-stripe:      #fafbfe;
    --lcsc-border:         #e2e8f2;
    --lcsc-border-strong:  #cbd3e1;
    --lcsc-shadow:         0 4px 22px rgba(20, 30, 60, 0.05);
    --lcsc-radius:         12px;
    --lcsc-radius-sm:      8px;

    font-family: 'Inter', arial, sans-serif;
    color: var(--lcsc-text);
    max-width: 880px;
    margin: 28px auto;
    padding: 26px 28px;
    border: 1px solid var(--lcsc-border);
    border-radius: var(--lcsc-radius);
    background: #ffffff;
    box-shadow: var(--lcsc-shadow);
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

.lcsc-ate *,
.lcsc-ate *::before,
.lcsc-ate *::after {
    box-sizing: border-box;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.lcsc-ate__header {
    position: relative;
    margin-bottom: 18px;
    padding-right: 64px;
}

.lcsc-ate__headline {
    font-family: 'Poppins', 'Rubik', arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    color: var(--lcsc-text);
}

.lcsc-ate__lede {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--lcsc-text-muted);
}

.lcsc-ate__reset {
    position: absolute;
    top: 2px;
    right: 0;
    background: none;
    border: 0;
    padding: 4px 0;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lcsc-blue);
    cursor: pointer;
    transition: color 120ms ease;
}
.lcsc-ate__reset:hover,
.lcsc-ate__reset:focus-visible {
    color: var(--lcsc-blue-dark);
    text-decoration: underline;
    outline: none;
}

/* ── Inputs ─────────────────────────────────────────────────────────────── */
.lcsc-ate__inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 14px 0 18px;
}

.lcsc-ate__field {
    display: block;
}

.lcsc-ate__field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lcsc-text-muted);
    margin: 0 0 6px;
    letter-spacing: 0.01em;
}

.lcsc-ate__field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lcsc-ate__field-input {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    font-size: 1rem;
    color: var(--lcsc-text);
    background: #fff;
    border: 1px solid var(--lcsc-border-strong);
    border-radius: var(--lcsc-radius-sm);
    padding: 11px 14px;
    line-height: 1.3;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.lcsc-ate__field-input:focus {
    outline: none;
    border-color: var(--lcsc-blue);
    box-shadow: 0 0 0 3px var(--lcsc-blue-tint);
}

.lcsc-ate__field-wrap--price .lcsc-ate__field-input {
    padding-left: 28px;
}
.lcsc-ate__field-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 600;
    color: var(--lcsc-text-muted);
    pointer-events: none;
}

.lcsc-ate__field-select {
    padding-right: 38px;
    background-image: none;
    cursor: pointer;
}
.lcsc-ate__field-caret {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lcsc-text-muted);
    pointer-events: none;
}

/* ── Calculate button (gates the reveal) ────────────────────────────────── */
.lcsc-ate__calc-row {
    margin: 6px 0 0;
    display: flex;
    justify-content: flex-start;
}

.lcsc-ate__calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--lcsc-blue);
    color: #fff;
    border: 0;
    border-radius: var(--lcsc-radius-sm);
    padding: 12px 20px;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 120ms ease, transform 80ms ease;
}
.lcsc-ate__calc-btn:hover,
.lcsc-ate__calc-btn:focus-visible {
    background: var(--lcsc-blue-dark);
    outline: none;
}
.lcsc-ate__calc-btn:active {
    transform: translateY(1px);
}
.lcsc-ate__calc-btn-icon {
    flex: 0 0 auto;
}

/* ── Results: gated reveal ──────────────────────────────────────────────── */
.lcsc-ate__results {
    display: none;
    margin-top: 22px;
}
.lcsc-ate__results.is-revealed {
    display: block;
    animation: lcsc-ate-fade-in 320ms ease both;
}
@keyframes lcsc-ate-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Once revealed, hide the calc row — the inputs themselves become the live
   controls. */
.lcsc-ate.is-revealed .lcsc-ate__calc-row {
    display: none;
}

/* ── Savings hero (primary) ─────────────────────────────────────────────── */
.lcsc-ate__savings-hero {
    background: var(--lcsc-green-tint);
    border: 1px solid var(--lcsc-green-border);
    border-left: 4px solid var(--lcsc-green);
    border-radius: var(--lcsc-radius-sm);
    padding: 20px 22px;
    margin-bottom: 18px;
}
.lcsc-ate__savings-headline {
    font-family: 'Poppins', 'Rubik', arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--lcsc-text);
    margin: 0 0 8px;
}
.lcsc-ate__savings-note {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lcsc-green-hover);
    margin: 0 0 12px;
    letter-spacing: 0.01em;
}
.lcsc-ate__savings-narrative {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--lcsc-text);
    margin: 0;
}

/* ── Loss box (secondary) ───────────────────────────────────────────────── */
.lcsc-ate__loss-box {
    background: var(--lcsc-loss-tint);
    border: 1px solid var(--lcsc-loss-border);
    border-left: 4px solid var(--lcsc-loss);
    border-radius: var(--lcsc-radius-sm);
    padding: 16px 20px;
    margin-bottom: 22px;
}
.lcsc-ate__loss-heading {
    font-family: 'Poppins', 'Rubik', arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lcsc-loss);
    margin: 0 0 8px;
}
.lcsc-ate__loss-headline {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--lcsc-text);
    margin: 0 0 8px;
}
.lcsc-ate__loss-buyer {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--lcsc-text-muted);
    margin: 0;
}

/* ── Comparison table ───────────────────────────────────────────────────── */
.lcsc-ate__table-heading {
    font-family: 'Poppins', 'Rubik', arial, sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--lcsc-text);
}

.lcsc-ate__table-wrap {
    overflow-x: auto;
    border: 1px solid var(--lcsc-border);
    border-radius: var(--lcsc-radius-sm);
    background: #fff;
}

.lcsc-ate__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 480px;
}
.lcsc-ate__table thead th {
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lcsc-text-muted);
    background: var(--lcsc-bg-soft);
    padding: 11px 14px;
    border-bottom: 1px solid var(--lcsc-border);
}
.lcsc-ate__table tbody th,
.lcsc-ate__table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--lcsc-border);
    vertical-align: middle;
    text-align: left;
    font-weight: 400;
    color: var(--lcsc-text);
}
.lcsc-ate__table tbody tr:last-child th,
.lcsc-ate__table tbody tr:last-child td {
    border-bottom: 0;
}
.lcsc-ate__table tbody th {
    font-weight: 600;
}

.lcsc-ate__num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.lcsc-ate__num--muted {
    color: var(--lcsc-text-faint);
}
.lcsc-ate__num--save {
    color: var(--lcsc-green);
    font-weight: 600;
}

.lcsc-ate__row--baseline {
    background: var(--lcsc-bg-stripe);
}

/* ── Note + CTA + footer copy ───────────────────────────────────────────── */
.lcsc-ate__note {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--lcsc-text-muted);
    margin: 14px 0 22px;
}

.lcsc-ate__cta {
    text-align: center;
    padding: 18px 12px 6px;
    border-top: 1px solid var(--lcsc-border);
}
.lcsc-ate__cta-eyebrow {
    font-family: 'Poppins', 'Rubik', arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--lcsc-text);
    margin: 0 0 6px;
}
.lcsc-ate__cta-subtext {
    font-size: 0.95rem;
    color: var(--lcsc-text-muted);
    margin: 0 0 16px;
    line-height: 1.5;
}
/* CTA button. The double-class selector + !important pair beat WordPress
   theme link colors that would otherwise tint the text and SVG. */
.lcsc-ate .lcsc-ate__cta-btn,
.lcsc-ate .lcsc-ate__cta-btn:link,
.lcsc-ate .lcsc-ate__cta-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 520px;
    background: var(--lcsc-orange) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    padding: 14px 22px;
    border-radius: var(--lcsc-radius-sm);
    transition: background 120ms ease, transform 80ms ease;
    box-shadow: 0 2px 0 rgba(176, 60, 22, 0.18);
}
.lcsc-ate .lcsc-ate__cta-btn:hover,
.lcsc-ate .lcsc-ate__cta-btn:focus-visible {
    background: var(--lcsc-orange-hover) !important;
    color: #fff !important;
    outline: none;
    text-decoration: none !important;
}
.lcsc-ate .lcsc-ate__cta-btn:active {
    transform: translateY(1px);
}
.lcsc-ate .lcsc-ate__cta-btn span,
.lcsc-ate .lcsc-ate__cta-btn svg {
    color: #fff !important;
    fill: none;
    stroke: currentColor;
}
.lcsc-ate__cta-icon {
    flex: 0 0 auto;
}

.lcsc-ate__source {
    font-size: 0.78rem;
    color: var(--lcsc-text-faint);
    margin: 12px 0 0;
    line-height: 1.5;
}

.lcsc-ate__disclaimer {
    font-size: 0.78rem;
    color: var(--lcsc-text-faint);
    margin: 14px 0 0;
    line-height: 1.5;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
    .lcsc-ate {
        padding: 22px 18px;
    }
    .lcsc-ate__header {
        padding-right: 52px;
    }
    .lcsc-ate__headline {
        font-size: 1.2rem;
    }
    .lcsc-ate__inputs {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .lcsc-ate__savings-headline {
        font-size: 1.1rem;
    }
    .lcsc-ate__loss-headline {
        font-size: 0.95rem;
    }
    .lcsc-ate__table {
        font-size: 0.9rem;
    }
    .lcsc-ate__table thead th,
    .lcsc-ate__table tbody th,
    .lcsc-ate__table tbody td {
        padding: 10px 10px;
    }
}
