/* =============================================================================
   custom-banners.css — page layer for /custom-banners.
   Loads AFTER nwca-2026-core.css and instant-quote.css (which supplies the card,
   ladder, price block, CTA, bar, dialog, alerts and lead panel).

   Declares no :root. Only the parts that differ from the sticker configurator
   live here — on banners the LADDER IS SIZES, not quantities, because the rate
   card has no volume break to build a quantity ladder on.
   ============================================================================= */

/* The size ladder needs more room per row than the sticker quantity ladder:
   a label, a scale note and a price. Seven rows, so 30px still fits the fold. */
.bn-ladder td { height: 30px; }
.bn-ladder .bn-l-size { font-weight: 600; white-space: nowrap; }
.bn-ladder .bn-l-note { color: var(--ink-soft); font-size: 12px; padding-left: 8px; }
.bn-ladder .bn-l-price { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bn-ladder .bn-l-flat {
    display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 1px 6px;
}

/* Custom size — always visible, not a revealed row. Banners are genuinely
   made-to-measure, so "any size" is the product, not an edge case. */
.bn-custom {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 6px 4px; font-size: 13px;
}
.bn-custom input {
    width: 68px; padding: 7px 8px; font: inherit; font-size: 14px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--card); color: var(--ink);
}
.bn-custom input:focus-visible { outline: 2px solid var(--green-700); outline-offset: 1px; }
.bn-custom .is-invalid { border-color: var(--bad); }

.bn-qty-fs { margin-top: 4px; }
.bn-qty-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 6px; }
.bn-qty-row input {
    width: 62px; text-align: center; padding: 6px; font: inherit; font-size: 15px;
    font-variant-numeric: tabular-nums;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--card); color: var(--ink);
}
.bn-step {
    width: 34px; min-height: 34px; border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm); background: var(--card); color: var(--ink);
    font-size: 17px; line-height: 1; cursor: pointer;
}
.bn-step:hover { background: var(--green-50); border-color: var(--green-700); }
/* Says the quiet part out loud. A customer arriving from the sticker page has
   been trained to expect a volume discount, and there isn't one — better to say
   so than to let them hunt for it. */
.bn-qty-note { font-size: 12px; color: var(--ink-soft); flex: 1 1 100%; }

.bn-opts { border: 0; margin: 0 0 8px; padding: 0; }
.bn-opts-legend { font-weight: 600; color: var(--ink); font-size: 13px; padding: 0; margin-bottom: 4px; }
.bn-opts label {
    display: flex; align-items: center; gap: 7px;
    min-height: 30px; font-size: 13px; cursor: pointer;
}
.bn-opts input { margin: 0; accent-color: var(--green-700); }
.bn-included { font-size: 12px; color: var(--ink-soft); margin: 4px 0 0; }

/* Published rate card — a size grid rather than the sticker page's five
   quantity tables. */
.bn-rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.bn-rate-cell {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 12px 14px; background: var(--card);
}
.bn-rate-cell.is-active-tier { border-color: var(--green-700); background: var(--green-100); }
.bn-rate-cell strong { display: block; font-family: var(--font-display); font-size: 16px; }
.bn-rate-cell .bn-rate-price { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.bn-rate-cell .bn-rate-sub { font-size: 12px; color: var(--ink-soft); }

@media (max-width: 620px) {
    .bn-custom { flex-wrap: wrap; padding-top: 4px; }
    /* 40px keeps each row a comfortable tap target — the row IS the control. */
    .bn-ladder td { height: 40px; }
    .bn-opts label { min-height: 40px; }

    /* Seven size rows at 40px is 100px more card than the sticker page's
       collapsed quantity select, which pushed the price a hair below a 812px
       fold. Reclaimed from padding rather than from the ladder, because the
       ladder is the product. */
    .bn-qty-fs { margin-top: 0; }
    .bn-qty-row { gap: 4px; }
    .bn-qty-note { font-size: 11.5px; margin-top: 2px; }
    .stk-price { margin-top: 2px; padding-top: 8px; }
    .stk-deck { margin-bottom: 8px; }
}
