@font-face {
    font-family: "Noto Sans";
    src: url("/assets/fonts/noto-sans-v42-latin-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans";
    src: url("/assets/fonts/noto-sans-v42-latin-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans";
    src: url("/assets/fonts/noto-sans-v42-latin-300.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans";
    src: url("/assets/fonts/noto-sans-v42-latin-300italic.woff2") format("woff2");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans";
    src: url("/assets/fonts/noto-sans-v42-latin-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans";
    src: url("/assets/fonts/noto-sans-v42-latin-500italic.woff2") format("woff2");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans";
    src: url("/assets/fonts/noto-sans-v42-latin-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans";
    src: url("/assets/fonts/noto-sans-v42-latin-600italic.woff2") format("woff2");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans";
    src: url("/assets/fonts/noto-sans-v42-latin-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans";
    src: url("/assets/fonts/noto-sans-v42-latin-700italic.woff2") format("woff2");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --primary: #F5A742;
    --secondary: #464646;
    --background: #EBEBEB;
    --text-light: #1D1D1D;
    --text-dark: #ffffff;
    --ink: var(--text-light);
    --muted: var(--secondary);
    --line: var(--background);
    --paper: #ffffff;
    --soft: var(--background);
    --accent: var(--primary);
    --accent-strong: var(--secondary);
    --gold: var(--primary);
    --danger: var(--secondary);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--soft);
    color: var(--ink);
    font-family: "Noto Sans", Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

button,
input,
select {
    font: inherit;
}

a {
    color: var(--accent-strong);
}

.scenario-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    gap: 8px;
    padding: 10px 14px;
    background: var(--secondary);
    color: var(--text-dark);
    border-bottom: 4px solid var(--gold);
}

.scenario-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.scenario-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.scenario-title span {
    color: var(--text-dark);
    font-size: 13px;
}

.scenario-collapse {
    min-height: 36px;
    padding: 7px 10px;
    border-color: rgba(255, 255, 255, 0.55);
    background: transparent;
    color: var(--text-dark);
}

.scenario-body {
    display: grid;
    gap: 8px;
}

.scenario-form,
.scenario-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.scenario-options {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 8px;
}

.scenario-options label,
.scenario-actions button {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 6px;
    padding: 5px 8px;
    background: transparent;
    color: var(--text-dark);
    font-size: 13px;
}

.scenario-options label:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--text-light);
}

.scenario-options label {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.scenario-options input {
    width: auto;
    min-height: 0;
}

.scenario-actions button {
    cursor: pointer;
}

.scenario-bar.is-collapsed .scenario-body {
    display: none;
}

.debug-state {
    max-height: 240px;
    overflow: auto;
    margin: 0;
    padding: 10px;
    color: var(--text-dark);
    background: var(--secondary);
    border-radius: 6px;
}

.checkout-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 24px auto 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
}

.brand-strip {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0 18px;
    color: var(--muted);
}

.brand-strip strong {
    color: var(--ink);
}

.stepper {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.stepper-mobile-before,
.stepper-mobile-after {
    display: none;
}

.stepper-mobile-after {
    margin-top: 18px;
    margin-bottom: 0;
}

.step {
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--muted);
    text-decoration: none;
}

.step span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--soft);
    color: var(--ink);
    font-weight: 700;
}

.step.is-current {
    border-color: var(--accent);
    color: var(--ink);
}

.step.is-complete span {
    background: var(--accent);
    color: var(--text-light);
}

.step-card h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.2;
}

.step-card h2 {
    margin-top: 28px;
    font-size: 20px;
}

.step-card h2 span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
}

.accordion {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.accordion-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    overflow: hidden;
}

.accordion-section.is-disabled {
    opacity: 0.62;
}

.accordion-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 10px 12px 10px 16px;
    background: var(--paper);
}

.accordion-heading h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}

.accordion-heading-copy {
    display: grid;
    gap: 7px;
}

.accordion-trigger {
    width: 56px;
    height: 56px;
    min-height: 56px;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: var(--background);
    color: var(--accent-strong);
}

.accordion-icon::before {
    content: "+";
    display: block;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
}

.accordion-trigger:disabled {
    border-color: var(--line);
    color: var(--muted);
    cursor: not-allowed;
}

.accordion-section.is-open .accordion-trigger {
    visibility: hidden;
    pointer-events: none;
}

.accordion-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.accordion-summary span {
    width: fit-content;
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--soft);
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
}

.accordion-panel {
    display: none;
    padding: 18px;
    border-top: 1px solid var(--line);
}

.accordion-section.is-open .accordion-panel {
    display: grid;
    align-content: start;
}

.accordion-description {
    margin: 0 0 16px;
    color: var(--secondary);
    font-style: italic;
}

.section-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 20px;
    align-self: end;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent-strong);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

.summary-card,
.contract-box,
.flash-list {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.contract-box {
    display: grid;
    gap: 10px;
}

.contract-box button {
    width: fit-content;
    height: auto;
    min-height: 44px;
    align-self: end;
    justify-self: start;
}

.address-card {
    border-left: 4px solid var(--accent);
}

.flash-list {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--paper);
}

label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
}

.product-picker {
    margin: 18px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.product-card {
    min-height: 220px;
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.product-card.is-selected {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 2px var(--accent);
}

.product-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-select-area {
    display: grid;
    align-self: stretch;
    align-content: start;
    gap: 12px;
    cursor: pointer;
}

.product-icon-wrap {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.product-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.product-card-body {
    display: grid;
    gap: 6px;
}

.product-card-body strong {
    font-size: 19px;
}

.product-card-body span {
    color: var(--muted);
    font-weight: 400;
}

.product-card-body em {
    color: var(--ink);
    font-style: normal;
    font-weight: 700;
}

.product-card button {
    width: fit-content;
    height: auto;
    min-height: 44px;
    align-self: end;
    justify-self: start;
    border-color: var(--secondary);
    color: var(--accent-strong);
    background: transparent;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.account-grid {
    margin-top: 16px;
}

.choice-card {
    min-height: 112px;
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    cursor: pointer;
}

.choice-card:has(input:checked) {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 2px var(--primary);
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-card span {
    color: var(--muted);
    font-weight: 400;
}

.promo-field {
    margin-top: 24px;
}

.notice {
    padding: 12px;
    border-radius: 8px;
    background: var(--background);
    color: var(--secondary);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    font-weight: 400;
}

.check-row input {
    width: auto;
    min-height: 0;
}

.billing-form {
    display: none;
}

.billing-form.is-open {
    display: block;
}

.actions,
.link-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

button {
    height: auto;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: var(--text-light);
    background: var(--primary);
    cursor: pointer;
}

.section-actions button,
.actions button,
.link-row button {
    height: auto;
    min-height: 44px;
    align-self: end;
}

button[name="action"][value="back"],
.button-secondary,
.contract-box button {
    border-color: var(--secondary);
    color: var(--secondary);
    background: transparent;
}

.cart-content {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}


.cart-panel {
    position: sticky;
    top: 120px;
    align-self: start;
}

.cart-toggle {
    display: none;
}

.cart-content h2,
.cart-content h3 {
    margin-top: 0;
}

.cart-line,
.price-phase {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
}

.price-phase small {
    display: block;
    color: var(--muted);
}

.promo-confirm {
    display: grid;
    gap: 4px;
    margin: 14px 0;
    padding: 12px;
    border-radius: 8px;
    background: var(--background);
    color: var(--secondary);
}

.contract-box.is-seen {
    border-color: var(--accent);
}

.success-card {
    min-height: 360px;
}

.product-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(70, 70, 70, 0.48);
}

.product-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 36;
    max-height: 60vh;
    overflow: auto;
    padding: 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
    transform: translateY(110%);
    transition: transform 180ms ease;
}

.product-sheet.is-open {
    transform: translateY(0);
}

.sheet-close {
    float: right;
    border-color: var(--secondary);
    color: var(--accent-strong);
    background: transparent;
}

.sheet-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-right: 130px;
}

.sheet-head h2 {
    margin: 0 0 6px;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 0;
}

.meta-list div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.meta-list dt {
    color: var(--muted);
    font-size: 13px;
}

.meta-list dd {
    margin: 4px 0 0;
    font-weight: 700;
}

.autocomplete-menu {
    position: absolute;
    z-index: 30;
    min-width: 220px;
    max-width: calc(100vw - 32px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 12px 24px rgba(70, 70, 70, 0.18);
    overflow: hidden;
}

.autocomplete-menu button {
    display: block;
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 0;
    background: var(--paper);
    color: var(--ink);
    text-align: left;
}

@media (max-width: 900px) {
    .checkout-shell {
        grid-template-columns: 1fr;
        width: min(100% - 20px, 680px);
    }

    .choice-grid,
    .product-grid,
    .meta-list,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .stepper-desktop {
        display: none;
    }

    .stepper-mobile-before,
    .stepper-mobile-after {
        display: grid;
        grid-template-columns: 1fr;
    }

    .brand-strip {
        display: grid;
    }

    .step-card h1 {
        font-size: 26px;
    }

    .accordion-heading {
        grid-template-columns: minmax(0, 1fr) 56px;
    }

    .sheet-head {
        margin-right: 0;
    }

    .cart-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 18;
        background: var(--paper);
        border-top: 1px solid var(--line);
    }

    .cart-toggle {
        display: block;
        width: 100%;
        border-radius: 0;
    }

    .cart-content {
        display: none;
        max-height: 70vh;
        overflow: auto;
        border: 0;
        border-radius: 0;
    }

    .cart-panel.is-open .cart-content {
        display: block;
    }
}
