/* ============================================================
   LEO'S PIZZA & WINGS — Ordering system styles
   (menu page, builders, cart, checkout — extends style.css)
   ============================================================ */

.order-page {
    padding-top: 0;
}


/* ---------- Page header banner (photo hero) ---------- */

.menu-hero {
    position: relative;
    padding: 96px 0 84px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.menu-hero .mh-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.menu-hero .mh-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-hero .mh-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 15, 9, .72) 0%, rgba(20, 15, 9, .6) 45%, var(--bg) 96%);
}

.menu-hero .eyebrow {
    color: #ffcda8;
}

.menu-hero .eyebrow::before {
    background: #ffcda8;
}

.menu-hero h1 {
    font-size: clamp(2.3rem, 4.8vw, 3.6rem);
    margin-top: 14px;
    color: #fff;
}

.menu-hero h1 em {
    font-style: normal;
    color: #ff6400;
}

.menu-hero p {
    color: rgba(255, 255, 255, .82);
    max-width: 540px;
    margin: 16px auto 0;
    font-size: 1.05rem;
    line-height: 1.65;
}

.menu-hero .mh-stats {
    display: flex;
    gap: 34px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.menu-hero .mh-stats .st {
    color: #fff;
}

.menu-hero .mh-stats .st b {
    display: block;
    font-family: var(--ff-display);
    font-size: 1.5rem;
}

.menu-hero .mh-stats .st span {
    font-size: .72rem;
    color: rgba(255, 255, 255, .75);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}


/* ---------- Order type + tabs bar (sticky) ---------- */

.order-bar {
    position: sticky;
    top: 0px;
    z-index: 90;
    background: rgba(251, 249, 245, .92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    padding: 16px 0;
    box-shadow: 0 12px 30px -20px rgba(20, 15, 9, .25);
}

.type-toggle {
    display: inline-flex;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    padding: 4px;
    gap: 4px;
}

.type-toggle button {
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-weight: 700;
    font-size: .86rem;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background .2s, color .2s;
}

.type-toggle button.on {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(255, 77, 46, .6);
}

.order-bar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.menu-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.menu-tabs::-webkit-scrollbar {
    display: none;
}

.menu-tabs button {
    white-space: nowrap;
    padding: 11px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-dim);
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    transition: .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.menu-tabs button.on {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 6px 16px -6px rgba(255, 77, 46, .55);
}

.menu-tabs button:hover:not(.on) {
    border-color: rgba(26, 21, 16, .25);
    background: var(--bg-soft);
}


/* ---------- Delivery gate line ---------- */

.gate-line {
    font-size: .82rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 10px;
}

.gate-line input {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: .85rem;
    width: 140px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gate-status {
    font-size: .8rem;
    font-weight: 700;
}

.delivery-info-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.delivery-address-display {
    max-width: 320px;
    text-align: right;
}

.delivery-address-display .da-label-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.delivery-address-display .da-label {
    font-size: .74rem;
    font-weight: 700;
    color: var(--text-dim);
}

.delivery-address-display .da-value {
    font-size: .82rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}

.gate-status.ok {
    color: var(--green);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(46, 157, 99, .1);
    border: 1px solid rgba(46, 157, 99, .3);
    padding: 8px 14px;
    border-radius: var(--radius-full);
}

.gate-status.bad {
    color: #d9362b;
}

.badge-close {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    opacity: .6;
    transition: opacity .15s;
}

.badge-close:hover {
    opacity: 1;
}


/* ---------- Delivery check modal ---------- */

.gate-intro {
    color: var(--text-dim);
    font-size: .92rem;
    line-height: 1.55;
    margin-bottom: 20px;
}

.gate-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.addr-autocomplete-wrap {
    position: relative;
}

.gate-addr-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color .2s;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.gate-addr-input:focus {
    border-color: var(--accent);
}

.addr-suggestions {
    display: none;
    /* position: fixed, not absolute — .sheet-bd scrolls (overflow-y:auto)
       and would clip an absolutely-positioned dropdown that extends past
       its visible scroll area. Fixed positioning (top/left/width set from
       JS via positionAddrSuggestions(), keyed off the input's own
       getBoundingClientRect()) keeps it pinned directly under the input
       regardless of scroll, and z-index is high enough to clear the sheet
       footer. */
    position: fixed;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 36px -14px rgba(20, 15, 9, .3);
    max-height: 220px;
    overflow-y: auto;
}

.addr-sugg-item {
    padding: 12px 14px;
    font-size: .88rem;
    line-height: 1.4;
    color: var(--text);
    cursor: pointer;
    border-bottom: 1px solid var(--line-soft);
}

.addr-sugg-item:last-child {
    border-bottom: none;
}

.addr-sugg-item:hover {
    background: rgba(255, 77, 46, .08);
    color: var(--accent);
}

.addr-sugg-loading,
.addr-sugg-empty {
    padding: 12px 14px;
    font-size: .84rem;
    color: var(--text-dim);
}

.gate-status-box {
    margin-top: 14px;
    min-height: 20px;
}

.del-check {
    color: var(--text-dim);
    font-size: .85rem;
    padding: 6px 2px;
}

.del-ok {
    color: var(--green);
    font-size: .85rem;
    font-weight: 700;
    padding: 12px 14px;
    background: rgba(46, 157, 99, .08);
    border: 1px solid rgba(46, 157, 99, .25);
    border-radius: 12px;
    line-height: 1.5;
}

.del-bad {
    color: #c8402a;
    font-size: .85rem;
    font-weight: 700;
    padding: 12px 14px;
    background: rgba(200, 64, 42, .08);
    border: 1px solid rgba(200, 64, 42, .25);
    border-radius: 12px;
    line-height: 1.5;
}

.sheet-x.peach {
    background: rgba(255, 77, 46, .1);
    border-color: rgba(255, 77, 46, .25);
    color: var(--accent);
}


/* ---------- Menu section + grid ---------- */

.menu-section {
    padding: 0 0 40px;
}

.menu-cat-block {
    padding: 64px 0;
    /* Both the site header and the order-bar (type toggle + category
       tabs) are sticky and stack on top of each other, covering ~226px
       of the viewport. Without this, scrollToCat()'s scrollIntoView()
       scrolls a section flush to the very top of the viewport, tucking
       its heading and first card row underneath that sticky stack. */
    scroll-margin-top: 240px;
}

.menu-cat-block.tint {
    background: var(--bg-soft);
}

.menu-cat-block .cat-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.menu-cat-block .cat-head .cat-count {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.menu-cat-block h2 {
    font-size: 1.9rem;
    margin-bottom: 4px;
}

.menu-cat-block h2 .o {
    color: var(--accent);
}

.menu-cat-block .cat-sub {
    color: var(--text-dim);
    font-size: .94rem;
    margin-top: 6px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.menu-grid.compact {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width:980px) {
    .menu-grid {
        grid-template-columns: 1fr 1fr;
    }
    .menu-grid.compact {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:560px) {
    .menu-grid,
    .menu-grid.compact {
        grid-template-columns: 1fr;
    }
}

.wg-rec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width:420px) {
    .wg-rec-grid {
        grid-template-columns: 1fr;
    }
}

.item-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
    position: relative;
    box-shadow: 0 2px 10px -6px rgba(20, 15, 9, .12);
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 77, 46, .35);
    box-shadow: 0 22px 40px -20px rgba(20, 15, 9, .28);
}

.item-photo {
    position: relative;
    background: var(--bg-soft);
    overflow: hidden;
}

.item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.item-card:hover .item-photo img {
    transform: scale(1.06);
}

.img-fb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, #f3ecdd, #e8ddc7);
}

.img-fb span {
    font-size: 2.6rem;
    opacity: .7;
}

.item-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.item-name {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.25;
}

.item-desc {
    font-size: .83rem;
    color: var(--text-dim);
    line-height: 1.55;
    flex: 1;
}

.item-desc i {
    font-style: normal;
    color: var(--text-dim);
    opacity: .8;
}

.item-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.item-price {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--accent);
}

.item-price small {
    color: var(--text-dim);
    font-weight: 600;
    font-size: .68rem;
    font-family: var(--ff-body);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.item-add {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px -8px rgba(255, 77, 46, .6);
    transition: transform .3s var(--ease), background .2s;
}

.item-add:hover {
    transform: scale(1.08);
}

.item-add.wide {
    width: auto;
    border-radius: var(--radius-full);
    padding: 10px 20px;
    font-size: .82rem;
    gap: 6px;
    display: inline-flex;
    align-items: center;
}


/* "Added" state — recommendation popup (wg-rec-ov) cards, so it's obvious
   at a glance which items the customer has already picked. */

.item-card.added {
    border-color: var(--green);
    background: rgba(46, 157, 99, .06);
}


/* Scoped as .item-photo .item-added-badge (not just .item-added-badge) so
   it reliably beats .img-fb span's font-size:2.6rem/opacity:.7 — both
   rules match this element (it's a <span> inside .img-fb on cards with no
   photo, e.g. dipping sauces), and without the extra specificity here the
   fallback-icon sizing was winning and blowing the badge up huge. */

.item-photo .item-added-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: var(--green);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .02em;
    padding: 5px 11px;
    border-radius: var(--radius-full);
    box-shadow: 0 6px 14px -6px rgba(46, 157, 99, .5);
    opacity: 1;
}


/* −/count/+ stepper shown in an item-card's footer once it's been added,
   reusing the cart's own .qty-stepper look for a familiar, unambiguous
   "tap − to remove, tap + to add another" control. */

.item-foot .qty-stepper {
    gap: 10px;
    padding: 3px;
}

.item-foot .qty-stepper button {
    width: 26px;
    height: 26px;
}

.wg-upsell-summary {
    margin-top: 18px;
    padding: 14px 16px;
    background: rgba(46, 157, 99, .08);
    border: 1px solid rgba(46, 157, 99, .25);
    border-radius: 14px;
}

.wg-upsell-summary-hd {
    font-size: .78rem;
    font-weight: 800;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.wg-upsell-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wg-upsell-summary-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: .85rem;
    color: var(--text);
    padding: 4px 0;
}

.wg-upsell-summary-remove {
    background: var(--surface);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-full);
    color: var(--accent);
    font-size: .74rem;
    font-weight: 800;
    cursor: pointer;
    padding: 5px 14px;
    flex-shrink: 0;
    transition: .15s;
}

.wg-upsell-summary-remove:hover {
    background: var(--accent);
    color: #fff;
}


/* deal cards reuse .deal-card from style.css, tuned for the menu page's card surface */

.deal-grid.dark .deal-card {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: 0 2px 10px -6px rgba(20, 15, 9, .12);
}

.deal-grid.dark .deal-card:hover {
    box-shadow: 0 26px 46px -22px rgba(20, 15, 9, .3);
}

.deal-grid.dark .deal-info h3,
.deal-grid.dark .item-name {
    color: var(--text);
}

.deal-grid.dark .deal-info p {
    color: var(--text-dim);
}

.deal-grid.dark .deal-price b {
    color: var(--text);
}


/* ---------- Drinks / dips — compact chip cards ---------- */

.chip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.chip-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    cursor: pointer;
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s var(--ease);
    box-shadow: 0 2px 10px -6px rgba(20, 15, 9, .1);
}

.chip-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 77, 46, .35);
    box-shadow: 0 18px 34px -18px rgba(20, 15, 9, .26);
}

.chip-ic {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--bg-soft);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chip-body {
    flex: 1;
    min-width: 0;
}

.chip-name {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: .96rem;
}

.chip-sub {
    font-size: .74rem;
    color: var(--text-dim);
    margin-top: 2px;
    line-height: 1.4;
}

.chip-foot {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.chip-price {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: .92rem;
    color: var(--accent);
}

.chip-add {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s var(--ease);
}

.chip-card:hover .chip-add {
    transform: rotate(90deg);
}

@media (max-width:980px) {
    .chip-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:560px) {
    .chip-grid {
        grid-template-columns: 1fr;
    }
}


/* ---------- Toppings reference strip ---------- */

.topp-ref {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.topp-ref-cat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 2px 10px -6px rgba(20, 15, 9, .1);
}

.topp-ref-cat h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text);
    margin-bottom: 14px;
    font-weight: 800;
}

.topp-ref-ic {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--bg-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.topp-pill-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.topp-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .83rem;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--bg-soft);
}

.topp-pill .e {
    font-size: .95rem;
}

.topp-pill .n {
    color: var(--text);
    flex: 1;
}

.topp-pill .n i {
    font-style: normal;
    color: var(--gold);
    font-weight: 700;
    font-size: .7rem;
}

.topp-pill .pr {
    color: var(--text-dim);
    font-size: .74rem;
    white-space: nowrap;
}

@media (max-width:980px) {
    .topp-ref {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:560px) {
    .topp-ref {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   OVERLAYS / SHEETS (builders, cart, checkout, confirmation)
   ============================================================ */

.ov {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(23, 19, 16, .5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.ov.show {
    display: flex;
}

@media (min-width:720px) {
    .ov {
        align-items: center;
        padding: 30px;
    }
}

.sheet {
    background: var(--bg-soft);
    width: 100%;
    max-width: 640px;
    max-height: 94vh;
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    animation: sheetUp .3s var(--ease);
}

@keyframes sheetUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (min-width:720px) {
    .sheet {
        border-radius: 24px;
    }
}

.sheet-hd {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

.sheet-hd .t {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.15rem;
}

.sheet-hd .sub-t {
    font-size: .78rem;
    color: var(--text-dim);
    font-weight: 600;
    margin-top: 2px;
}

.sheet-x {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 1.05rem;
    cursor: pointer;
    flex-shrink: 0;
}

.sheet-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
}

.sheet-bd {
    overflow-y: auto;
    padding: 22px;
    flex: 1;
}

.sheet-ft {
    padding: 18px 22px;
    border-top: 1px solid var(--line);
}

#dl-back-ft {
    background: var(--surface);
}


/* size picker */

.size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.size-opt {
    padding: 14px 8px;
    border-radius: 14px;
    border: 2px solid var(--line);
    background: var(--surface);
    text-align: center;
    cursor: pointer;
    transition: .2s;
}

.size-opt.on {
    border-color: var(--accent);
    background: rgba(255, 77, 46, .12);
}

.size-opt .l {
    font-weight: 800;
    font-size: .88rem;
}

.size-opt .inch {
    font-size: .68rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.size-opt .p {
    color: var(--accent);
    font-weight: 700;
    font-size: .82rem;
    margin-top: 3px;
}

@media (max-width:480px) {
    .size-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.free-note {
    font-size: .82rem;
    color: var(--green);
    background: rgba(63, 184, 127, .1);
    border: 1px solid rgba(63, 184, 127, .3);
    padding: 9px 13px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 600;
}

.min-note {
    font-size: .82rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.topp-cat-label {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-dim);
    margin: 18px 0 10px;
}

.topp-cat-label:first-child {
    margin-top: 0;
}

.topp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.topp-opt {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 13px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    font-size: .85rem;
    transition: .15s;
}

.topp-opt.on {
    border-color: var(--accent);
    background: rgba(255, 77, 46, .12);
}

.topp-opt.preset {
    opacity: .75;
    cursor: default;
}

.topp-opt .price {
    margin-left: auto;
    font-size: .72rem;
    color: var(--text-dim);
}

.topp-opt.on .price {
    color: var(--green);
    font-weight: 700;
}

@media (max-width:480px) {
    .topp-grid {
        grid-template-columns: 1fr;
    }
}

.topp-sub {
    font-size: .72rem;
    color: var(--accent);
    font-weight: 600;
}


/* topping customize modal (amount + placement) */

.tc-section-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 18px 0 10px;
}

.tc-section-label:first-child {
    margin-top: 2px;
}

.tc-pill-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.tc-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 8px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    text-align: center;
    font-size: .78rem;
    color: var(--text-dim);
    transition: .15s;
}

.tc-pill b {
    font-size: .95rem;
    color: var(--text);
}

.tc-pill .tc-ic {
    font-size: 1.3rem;
    line-height: 1;
    width: 1.3rem;
    height: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tc-dot {
    width: .8em;
    height: .8em;
    border-radius: 50%;
    background: currentColor;
}

.tc-pill.on {
    border-color: var(--accent);
    background: rgba(255, 77, 46, .12);
    color: var(--accent);
}

.tc-pill.on b {
    color: var(--accent);
}

@media (max-width:480px) {
    .tc-pill {
        padding: 12px 6px;
    }
}


/* choice grid (wing sauces/styles, drink flavors) */

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.choice-opt {
    padding: 14px;
    border-radius: 14px;
    border: 2px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: .15s;
}

.choice-opt.on {
    border-color: var(--accent);
    background: rgba(255, 77, 46, .12);
}

.choice-opt .chk {
    margin-left: auto;
    opacity: 0;
    color: var(--accent);
    font-weight: 900;
}

.choice-opt.on .chk {
    opacity: 1;
}

@media (max-width:480px) {
    .choice-grid {
        grid-template-columns: 1fr;
    }
}


/* step dots (deal builder) */

.step-dots {
    display: flex;
    gap: 6px;
    padding: 0 22px 16px;
}

.step-dots .dot {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: var(--line);
}

.step-dots .dot.done {
    background: var(--green);
}

.step-dots .dot.cur {
    background: var(--accent);
}

.step-label {
    /* Sticky so the customer always knows which pizza/item they're
       customizing (e.g. "Pizza #1" vs "Pizza #2"), even after scrolling
       past it down a long topping list — full-bleed against .sheet-bd's
       own padding via the negative margin, then re-padded internally. */
    position: sticky;
    top: -22px;
    z-index: 5;
    margin: -22px -22px 16px;
    padding: 14px 22px 14px;
    background: var(--bg-soft);
    border-bottom: 2px solid var(--accent);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.step-label-num {
    font-size: .68rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
}

.step-label-name {
    font-size: 1.15rem;
    color: var(--accent);
    font-weight: 800;
}

.dl-completed-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.dl-completed-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(46, 157, 99, .08);
    border: 1px solid rgba(46, 157, 99, .25);
}

.dl-completed-check {
    color: var(--green);
    font-weight: 900;
    font-size: .95rem;
    line-height: 1.4;
}

.dl-completed-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: .82rem;
}

.dl-completed-body b {
    color: var(--text);
    font-size: .85rem;
}

.dl-completed-body span {
    color: var(--text-dim);
    line-height: 1.4;
}


/* qty stepper */

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    padding: 6px 8px;
}

.qty-stepper button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
}

.qty-stepper span {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
}


/* ---------- Structured item summary ----------
   Moved to assets/css/item-summary.css (shared with the dashboard's
   "View Details" modal) — loaded as its own stylesheet, see menu.html <head>. */


/* ---------- Cart ---------- */

.cart-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
    border-bottom: none;
}

.ci-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.ci-body {
    flex: 1;
}

.ci-name {
    font-weight: 700;
    font-size: .94rem;
}

.ci-detail {
    font-size: .75rem;
    color: var(--text-dim);
    line-height: 1.4;
    margin-top: 3px;
}

.ci-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 800;
    font-family: inherit;
    color: var(--accent);
    background: #ffffff;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    cursor: pointer;
    transition: .15s;
}

.ci-edit-btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(255, 77, 46, .55);
}

.ci-row-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ci-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.ci-price {
    font-weight: 700;
}

.ci-remove {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: .78rem;
    cursor: pointer;
    text-decoration: underline;
}

.tot-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: var(--text-dim);
    font-size: .92rem;
}

.tot-row.grand {
    color: var(--text);
    font-weight: 800;
    font-size: 1.2rem;
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 14px;
}

.tot-note {
    font-size: .78rem;
    color: #c8402a;
    text-align: center;
    margin-top: 10px;
}

.cart-login-note {
    font-size: .78rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.empty-cart .ic {
    font-size: 2.6rem;
    margin-bottom: 14px;
    opacity: .5;
}


/* ---------- Checkout form ---------- */

.co-block {
    margin-bottom: 26px;
}

.co-block-title {
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.closed-notice-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    padding: 14px 16px;
}

.closed-notice-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.closed-notice-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.closed-notice-title {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 1.02rem;
    color: var(--accent);
}

.closed-notice-row {
    margin-bottom: 8px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
}

.closed-notice-row:last-of-type {
    margin-bottom: 0;
}

.closed-notice-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-dim);
    margin-bottom: 2px;
}

.closed-notice-msg {
    color: var(--text-dim);
    font-size: .85rem;
    line-height: 1.5;
    margin-top: 10px;
}

.guest-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(255, 77, 46, .12);
    color: var(--accent);
    font-size: .68rem;
    letter-spacing: .03em;
    vertical-align: middle;
}

.guest-signin-note {
    font-size: .78rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.guest-signin-note a {
    color: var(--accent);
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.f-field {
    margin-bottom: 12px;
}

.f-field label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.f-field input,
.f-field select,
.f-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--text);
    font-size: .95rem;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}

.f-field input:focus,
.f-field select:focus,
.f-field textarea:focus {
    border-color: var(--accent);
}

.f-field.err input {
    border-color: #d9362b;
}

.req-mark {
    color: #d9362b;
}

.when-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.when-toggle button {
    padding: 14px;
    border-radius: 14px;
    border: 2px solid var(--line);
    background: var(--surface);
    color: var(--text-dim);
    font-weight: 700;
    cursor: pointer;
    line-height: 1.3;
    text-align: center;
}

.when-toggle button small {
    display: block;
    font-weight: 500;
    font-size: .68rem;
    opacity: .8;
    margin-top: 2px;
}

.when-toggle button.on {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 77, 46, .1);
}

.co-summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 22px;
}

.co-summary-hd {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    margin-bottom: 10px;
}

.co-summary-hd span {
    color: var(--accent);
    font-size: .8rem;
    font-weight: 700;
}


/* .co-line / .co-item moved to assets/css/item-summary.css (shared with the dashboard) */


/* ---------- Confirmation ---------- */

.confirm-body {
    text-align: center;
    padding: 20px 8px 6px;
}

.confirm-tick {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(63, 184, 127, .14);
    border: 2px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 18px;
    color: var(--green);
}

.confirm-num {
    font-family: var(--ff-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin: 8px 0;
}

.confirm-detail {
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.7;
}

.holiday-notice-logo {
    height: 26px;
    margin-right: 8px;
    vertical-align: middle;
}

.holiday-notice-body {
    text-align: center;
    padding: 12px 8px 6px;
}

.holiday-notice-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(198, 155, 74, .14);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
}

.holiday-notice-title {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 12px;
}

.holiday-notice-hours,
.holiday-notice-reason {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.holiday-notice-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.holiday-notice-msg {
    color: var(--text-dim);
    font-size: .88rem;
    line-height: 1.6;
    margin-top: 4px;
}

/* ---------- Special Hours "ordering blocked" popup ---------- */

/* Centered on every screen size, unlike the default .ov which is a bottom
   sheet below 720px — this one is a hard stop rather than a dismissable
   info sheet, so it should read as a dialog everywhere. The raised z-index
   (over .ov's 400) matters because it can be opened while the checkout
   sheet is already showing. Reuses the holiday-notice body/icon/title
   styles so the two popups stay visually identical. */
.ov.ov-center {
    align-items: center;
    padding: 20px;
    z-index: 500;
}

.ov.ov-center .sheet {
    border-radius: 24px;
}

/* Title / Reason rows — populated from the active Special Hours entry, each
   hidden by showSpecialHoursBlock() when that field is blank. Reuses
   .holiday-notice-label for the small caps label above the value. */
.sh-block-field {
    margin-top: 14px;
}

.sh-block-field-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.sh-block-line {
    color: var(--text-dim);
    font-size: .92rem;
    line-height: 1.6;
    margin-top: 10px;
}

/* Extra separation between the last Title/Reason row and the fixed copy. */
.sh-block-field+.sh-block-line {
    margin-top: 18px;
}

/* ---------- "Delivery Not Available" popup (before 4:00 PM) ---------- */

.dt-line {
    color: var(--text-dim);
    font-size: .92rem;
    line-height: 1.6;
    margin-top: 10px;
}

.dt-line b {
    color: var(--text);
    font-weight: 800;
}

.confirm-receipt-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.confirm-receipt-actions .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .82rem;
    padding: 11px 12px;
}

/* "Continue" button on the wings/pizza "Add Anything Else?" popups —
   white background instead of the shared .btn.ghost's transparent one.
   Needs .btn.ghost in the selector too to out-specificity that rule. */
.btn.ghost.upsell-continue-btn {
    background: #fff;
    color: #000;
}

.btn.ghost.upsell-continue-btn:hover {
    background: #f5f5f5;
}


/* ---------- Cart bar (persistent) ---------- */

.cartbar {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 140%);
    z-index: 170;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 24px;
    border-radius: var(--radius-full);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 40px -12px rgba(255, 77, 46, .6);
    transition: transform .3s var(--ease);
    width: min(92vw, 420px);
    justify-content: space-between;
}

.cartbar.show {
    transform: translate(-50%, 0);
}

.cartbar .cnt {
    background: #fff;
    color: var(--accent);
    border-radius: 20px;
    padding: 2px 11px;
    font-size: .85rem;
}


/* toast */

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    background: #1c1c20;
    color: #fff;
    padding: 12px 22px;
    border-radius: 20px;
    font-weight: 700;
    font-size: .86rem;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
    border: 1px solid var(--line);
}