@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #0c0c0c;
    --bg-card: #161616;
    --bg-elevated: #1c1c1c;
    --accent: #c9a96e;
    --accent-light: #e8d5a8;
    --accent-glow: rgba(201, 169, 110, 0.15);
    --text: #f0ece4;
    --text-muted: #8a8578;
    --text-dim: #5a564e;
    --border: rgba(201, 169, 110, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
}

/* ===== CUSTOMER DAYLIGHT THEME =====
   The menu is fully variable-driven, so overriding the ground variables
   re-themes the whole surface. Applied to <html> before first paint for a
   readable outdoor screen (the dark #0c0c0c default is unreadable in sun).
   Scoped to the customer view — the waiter popup keeps its own day/night. */
html.cust-day:not(.theme-night) {
    --bg: #f6f1e8;
    --bg-card: #fffdf8;
    --bg-elevated: #ffffff;
    --accent: #a8802f;
    --accent-light: #8a6a25;
    --accent-glow: rgba(168, 128, 47, 0.14);
    --text: #241f18;
    --text-muted: #675e51;
    --text-dim: #a89d8b;
    --border: rgba(168, 128, 47, 0.20);
}
/* Patch the few hardcoded-dark bits that don't read from variables. */
html.cust-day #menuSearchInput {
    background: #fffdf8 !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
html.cust-day #menuSearchInput::placeholder { color: var(--text-dim) !important; }
html.cust-day .cust-theme-toggle { color: var(--accent); border-color: var(--border); }

/* Customer day/night toggle — mirrors the waiter one, shown only in customer mode. */
.cust-theme-toggle {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--border);
    color: var(--accent); cursor: pointer; font-size: 1rem; padding: 0;
}
.cust-theme-toggle .icon-night { display: none; }
html.cust-day .cust-theme-toggle .icon-day { display: inline; }
html.cust-day .cust-theme-toggle .icon-night { display: none; }
html:not(.cust-day) .cust-theme-toggle .icon-day { display: none; }
html:not(.cust-day) .cust-theme-toggle .icon-night { display: inline; }

* { box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    margin: 0;
    padding-bottom: 90px;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, .vintage-font {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.handwritten {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-muted);
    font-weight: 300;
    font-style: italic;
    font-size: 1rem;
}

/* ===== HEADER ===== */
.container.py-4 > .text-center h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--text);
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: -0.5px;
}

/* ===== STICKY CATEGORY NAV ===== */
.category-nav-container {
    position: -webkit-sticky; /* iOS Safari */
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(12, 12, 12, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    margin-bottom: 24px;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 0 16px;
    scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
    white-space: nowrap;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    text-transform: uppercase;
}

.cat-pill:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
}

.cat-pill.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    font-weight: 600;
}

/* ===== SEARCH ===== */
.category-nav-container .form-control {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    color: var(--text) !important;
    border-radius: 50px;
    font-size: 0.85rem;
    padding-left: 36px;
    transition: border-color 0.3s;
}
.category-nav-container .form-control:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

/* ===== SECTION HEADERS ===== */
.chalk-header {
    text-align: left;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.chalk-header span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.chalk-header h2 {
    font-size: 1.6rem;
    color: var(--text);
    text-transform: none;
    letter-spacing: -0.3px;
    font-weight: 700;
}

/* ===== MENU ITEM CARDS ===== */
.menu-item-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: all 0.35s ease;
    height: 100%;
}

.menu-item-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(201, 169, 110, 0.08);
    transform: translateY(-2px);
}

.video-frame {
    width: 140px;
    height: 140px;          /* FIXED box → every image is the same size... */
    flex-shrink: 0;
    align-self: center;     /* ...and centred when the text column is taller */
    overflow: hidden;
    position: relative;
    background: var(--bg);
    border-radius: var(--radius) 0 0 var(--radius);
}

.video-frame img, .video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item-card:hover .video-frame img,
.menu-item-card:hover .video-frame video {
    transform: scale(1.08);
}

/* ===== ELEGANT IMAGE REVEAL =====
   Each dish photo settles in from a soft zoom + saturation lift as its card
   scrolls into view (the "coming alive" moment); on touch devices a very slow
   Ken Burns keeps in-view dishes gently breathing. All motion is guarded by
   prefers-reduced-motion, and the hidden pre-state is scoped to html.js-reveal
   (added by JS) so a no-JS / failed-JS load always shows images normally. */
@media (prefers-reduced-motion: no-preference) {
    html.js-reveal .menu-item-card .video-frame img,
    html.js-reveal .menu-item-card .video-frame video,
    html.js-reveal .menu-item-card .video-frame .img-placeholder {
        opacity: 0;
        transform: scale(1.09);
        filter: saturate(0.82) brightness(0.92);
        transition: opacity 0.85s ease,
                    transform 1.15s cubic-bezier(0.2, 0.6, 0.35, 1),
                    filter 1s ease;
    }
    html.js-reveal .menu-item-card.img-revealed .video-frame img,
    html.js-reveal .menu-item-card.img-revealed .video-frame video,
    html.js-reveal .menu-item-card.img-revealed .video-frame .img-placeholder {
        opacity: 1;
        transform: scale(1);
        filter: none;
    }
    /* Living drift — a slow Ken Burns keeps IN-VIEW dishes gently alive (paused
       off-screen for perf). Runs on every device; the fixed-box + object-fit
       cover means the scale never reveals an edge. */
    html.js-reveal .menu-item-card.in-view .video-frame img,
    html.js-reveal .menu-item-card.in-view .video-frame video {
        animation: menuKenBurns 13s ease-in-out 1s infinite alternate;
    }
    /* A hover pauses the drift and lifts the dish — desktop nicety. */
    html.js-reveal .menu-item-card:hover .video-frame img,
    html.js-reveal .menu-item-card:hover .video-frame video {
        animation-play-state: paused;
    }
}
@keyframes menuKenBurns {
    from { transform: scale(1.02) translate(0, 0); }
    to   { transform: scale(1.09) translate(-2%, -1.6%); }
}

.item-details {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.item-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.item-price {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
    white-space: nowrap;
    margin-left: 12px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
/* Quiet "incl. VAT" caption under the price — trust cue, prices are gross. */
.item-vat {
    display: block;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    font-variant-numeric: normal;
    margin-top: 1px;
}

.item-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 6px;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
    cursor: pointer; transition: all 0.2s;
}

/* Branded placeholder for items with no photo — a warm tint + dish glyph
   instead of a dull grey "No Preview" box, so a mixed grid reads intentional. */
.img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--accent);
    background: linear-gradient(140deg, var(--bg-elevated), var(--bg-card));
    opacity: 0.85;
}
.item-desc.expanded {
    -webkit-line-clamp: unset; display: block; overflow: visible;
}

/* ===== NOTE INPUT ===== */
.chalk-note-input {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 6px 12px;
    width: 100%;
    margin-top: 8px;
    transition: border-color 0.3s;
    outline: none;
}
.chalk-note-input:focus {
    border-color: var(--accent);
    color: var(--text);
}
.chalk-note-input::placeholder { color: var(--text-dim); }

/* ===== BUTTONS ===== */
.btn-chalk {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-chalk:hover {
    background: var(--accent);
    color: var(--bg);
}

/* ===== AI PAIRING BOX ===== */
.ai-pairing-box {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease, margin 0.3s ease;
    padding: 0;
    margin: 0;
}

.ai-pairing-box.visible {
    max-height: 300px;
    padding: 10px 0 0;
    margin-top: 8px;
}

.ai-pairing-box .handwritten {
    font-style: italic;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.ai-pairing-box .d-flex {
    background: var(--accent-glow) !important;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.ai-pairing-box .bi-stars { color: var(--accent); }

.ai-pairing-box .btn {
    background: var(--accent);
    color: var(--bg);
    border: none;
    font-weight: 600;
    font-size: 0.7rem;
}

/* ===== FEATURED SECTION ===== */
.featured-section-content {
    border: 1px solid var(--accent) !important;
    border-radius: var(--radius) !important;
    background: var(--bg-card) !important;
}

.featured-video { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }

/* ===== FAB CART ===== */
.fab-cart {
    display: none !important; /* Replaced by cart drawer + bottom nav */
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 1050;
    box-shadow: 0 8px 32px rgba(201, 169, 110, 0.3);
    transition: all 0.3s ease;
}

.fab-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(201, 169, 110, 0.4);
}

/* ===== MODALS ===== */
.modal-chalk .modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}

.modal-chalk .modal-header {
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
}

.modal-chalk .modal-footer {
    border-top: 1px solid var(--border);
    padding: 16px 20px;
}

.modal-chalk .list-group-item {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.modal-chalk .btn-close {
    filter: invert(1);
}

/* ============================================================================
   MODIFIER OPTION ROW-CARDS
   --------------------------------------------------------------------------
   The modifier modal's options render as full-width tappable row-cards
   instead of bare radio/checkbox circles: the native input is visually
   hidden (it still drives selection + validation — the label's for= makes
   the whole card toggle it), and updateModTotal() mirrors checked state
   onto .sel + swaps the tick glyph. Variable-driven, so the dark chalk,
   customer-day and waiter day/night themes all follow automatically.
   ========================================================================== */
.mod-opt { padding-left: 0 !important; }
.mod-opt .form-check-input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none;
    width: 1px; height: 1px;
}
.mod-opt .form-check-label {
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.mod-opt .mod-opt-tick {
    font-size: 1.05rem;
    line-height: 1;
    color: var(--text-dim);
    flex: 0 0 auto;
    transition: color .15s ease;
}
.mod-opt .mod-opt-name { flex: 1 1 auto; }
.mod-opt.sel .form-check-label {
    border-color: var(--accent);
    background: var(--accent-glow);
    box-shadow: 0 0 0 1px var(--accent) inset;
}
.mod-opt.sel .mod-opt-tick { color: var(--accent); }
.mod-opt:active .form-check-label { transform: scale(0.99); }

/* #388 — ±N stepper row (groups flagged allow_multiply, e.g. gelato ×3).
   Styled from the theme variables so it works on BOTH the dark and light
   palettes; Bootstrap's btn-outline-light rendered white-on-white here. */
.mod-opt.mod-step {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--bg-card);
    color: var(--text);
}
.mod-step .mod-opt-name { flex: 1 1 auto; }
.mod-step .mod-step-price { color: var(--accent); font-size: .85rem; white-space: nowrap; }
.mod-step .mod-step-ctl { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.mod-step .mod-step-btn {
    width: 34px; height: 34px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 1.15rem; line-height: 1; padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .15s ease, background-color .15s ease;
}
.mod-step .mod-step-btn:hover  { border-color: var(--accent); color: var(--accent); }
.mod-step .mod-step-btn:active { transform: scale(0.94); }
.mod-step .mod-step-qty {
    min-width: 30px; text-align: center;
    font-weight: 700; font-variant-numeric: tabular-nums;
    color: var(--text);
}
/* Selected state mirrors .mod-opt.sel so a chosen row reads the same. */
.mod-opt.mod-step.sel {
    border-color: var(--accent);
    background: var(--accent-glow);
    box-shadow: 0 0 0 1px var(--accent) inset;
}
.mod-opt.mod-step.sel .mod-step-qty { color: var(--accent); }

/* ============================================================================
   PROMO MARQUEE — featured products under the compact hero. A swipeable
   row: promo_marquee.js scrolls it slowly and stops while a finger is on it.
   Hidden in the waiter popup (it's a customer-facing advertising strip).
   Variable-driven for all themes.
   ========================================================================== */
.promo-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 6px -12px 2px;
    padding: 0 12px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.promo-marquee::-webkit-scrollbar { display: none; }
.promo-track {
    display: inline-flex;
    gap: 12px;
    padding: 6px 0 4px;
}
.promo-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 78px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.promo-item img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.promo-item:active img { transform: scale(0.94); }
.promo-name {
    font-size: 0.62rem;
    color: var(--text);
    max-width: 78px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.promo-price {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--accent);
}
body.popup-mode .promo-marquee { display: none; }

/* Unsatisfied Required group — confirmModifiers scrolls here, shows the
   message inline and pulses the group; updateModTotal clears it the moment
   the group is satisfied. Semantic red on purpose (error, not accent). */
.modifier-group { scroll-margin-top: 8px; }
.mod-group-err {
    font-size: .8rem;
    font-weight: 700;
    color: #dc3545;
    margin: 2px 0 8px;
}
.modifier-group.mod-group-attn > h6 {
    color: #dc3545 !important;
    border-bottom-color: #dc3545 !important;
}
@keyframes modGroupPulse {
    0%   { background: rgba(220, 53, 69, 0.14); }
    100% { background: transparent; }
}
.modifier-group.mod-group-attn {
    animation: modGroupPulse 0.7s ease 2;
    border-radius: 10px;
}

.border-gold { border-color: var(--accent) !important; }
.text-gold, .text-warning { color: var(--accent) !important; }
.bg-warning { background: var(--accent) !important; }

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 9999;
}

.toast-item {
    background: var(--bg-elevated);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 12px 20px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    animation: toastIn 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

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

/* ===== ANIMATIONS ===== */
.animate-pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ===== AI TRIGGER ===== */
.ai-trigger {
    color: var(--accent) !important;
    opacity: 0.6;
    transition: opacity 0.2s;
    font-size: 0.72rem !important;
}
.ai-trigger:hover { opacity: 1; }

/* ===== QUANTITY BADGE ON CARDS ===== */
.qty-badge {
    position: absolute; top: -6px; right: -6px;
    background: #ef4444; color: #fff;
    min-width: 22px; height: 22px;
    border-radius: 50%; font-size: 0.7rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg); z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .video-frame { width: 110px; height: 110px; border-radius: var(--radius) 0 0 var(--radius); }
    .item-details { padding: 12px 14px; }
    .item-title { font-size: 1.06rem; }
    .item-price { font-size: 1.08rem; }
    .featured-video { height: 280px !important; }
}

@media (max-width: 480px) {
    /* Full-width card with a uniform 16:9 banner image on top. */
    .menu-item-card { flex-direction: column; }
    .video-frame { width: 100%; height: 190px; align-self: stretch;
                   border-radius: var(--radius) var(--radius) 0 0; }
    .row-cols-lg-2 > .col { flex: 0 0 100%; max-width: 100%; }
}

/* ===== FOOTER ===== */
footer {
    border-color: var(--border) !important;
    color: var(--text-dim);
}
footer a { color: var(--accent); text-decoration: none; }

/* ============================================================================
   WAITER DAYLIGHT THEME  (ticket #265)
   --------------------------------------------------------------------------
   The WAITER ordering view (`body.popup-mode`) DEFAULTS to a light,
   high-contrast theme so it stays readable on an Android phone in direct
   sunlight. The CUSTOMER QR menu (no .popup-mode) is untouched and stays dark.
   Tapping the Sun/Moon toggle adds `.theme-night` to <body>, which re-declares
   the original dark variable values + restores the hardcoded dark colors so
   the waiter can fall back to the existing "chalk" dark look at night.
   The choice persists in localStorage (key `lb_waiter_menu_theme`).
   ========================================================================== */

/* --- DAY (default for waiter): override the CSS variables to light values. */
body.popup-mode {
    --bg: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #f4f5f7;
    /* Darker gold than #c9a96e, which is too pale on white. */
    --accent: #9a6f1e;
    --accent-light: #7c5816;
    --accent-glow: rgba(154, 111, 30, 0.12);
    --text: #15171a;
    --text-muted: #555a61;
    --text-dim: #8c9098;
    --border: rgba(21, 23, 26, 0.14);
}

/* Override the hardcoded dark colors that live in THIS stylesheet so nothing
   stays dark-on-dark in the light waiter view. */
body.popup-mode .category-nav-container {
    background: rgba(255, 255, 255, 0.97);          /* was rgba(12,12,12,0.97) */
    border-bottom: 1px solid var(--border);
}
body.popup-mode .cat-pill {
    color: var(--text-muted);
    border: 1px solid rgba(21, 23, 26, 0.16);        /* was rgba(255,255,255,0.08) */
}
body.popup-mode .cat-pill.active,
body.popup-mode .cat-pill:hover {
    color: #ffffff;                                  /* white text on dark gold */
}
body.popup-mode .menu-item-card {
    border: 1px solid rgba(21, 23, 26, 0.12);        /* was rgba(255,255,255,0.04) */
}
body.popup-mode .chalk-note-input {
    background: rgba(21, 23, 26, 0.03);              /* was rgba(255,255,255,0.03) */
    border: 1px solid rgba(21, 23, 26, 0.12);        /* was rgba(255,255,255,0.06) */
}
/* The +/- waiter quantity controls (defined in the template) use white-on-dark
   rgba; override the - button + typed-qty field to dark-on-light. The + button
   already uses var(--accent)/var(--bg) and follows the theme automatically. */
body.popup-mode .waiter-qty-ctrl button {
    border: 1px solid rgba(21, 23, 26, 0.18);
    background: rgba(21, 23, 26, 0.05);
    color: #4a4f56;
}
body.popup-mode .waiter-qty-input {
    border: 1px solid rgba(21, 23, 26, 0.18);
    background: rgba(21, 23, 26, 0.05);
    color: #15171a;
}
/* Search box: it carries Bootstrap's bg-dark/text-white utilities inline. */
body.popup-mode .category-nav-container .form-control,
body.popup-mode #menuSearchInput {
    background: #ffffff !important;
    color: #15171a !important;
    border: 1px solid rgba(21, 23, 26, 0.2) !important;
}
body.popup-mode #menuSearchInput::placeholder { color: #8c9098; }

/* --- NIGHT (waiter opted back to dark): re-declare the original dark values
   and restore the hardcoded dark colors. Net effect = the current dark look.
   Each rule matches EITHER `body.popup-mode.theme-night` (set by the toggle JS)
   OR `html.theme-night body.popup-mode` — the latter is what the tiny pre-paint
   script in <head> sets on <html> before <body> exists, so the dark theme is
   already applied at first paint with no flash-of-light. */
html.theme-night body.popup-mode,
body.popup-mode.theme-night {
    --bg: #0c0c0c;
    --bg-card: #161616;
    --bg-elevated: #1c1c1c;
    --accent: #c9a96e;
    --accent-light: #e8d5a8;
    --accent-glow: rgba(201, 169, 110, 0.15);
    --text: #f0ece4;
    --text-muted: #8a8578;
    --text-dim: #5a564e;
    --border: rgba(201, 169, 110, 0.12);
}
html.theme-night body.popup-mode .category-nav-container,
body.popup-mode.theme-night .category-nav-container {
    background: rgba(12, 12, 12, 0.97);
    border-bottom: 1px solid var(--border);
}
html.theme-night body.popup-mode .cat-pill,
body.popup-mode.theme-night .cat-pill {
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
html.theme-night body.popup-mode .cat-pill.active,
body.popup-mode.theme-night .cat-pill.active {
    color: var(--bg);
}
html.theme-night body.popup-mode .cat-pill:hover,
body.popup-mode.theme-night .cat-pill:hover {
    color: var(--accent);
}
html.theme-night body.popup-mode .menu-item-card,
body.popup-mode.theme-night .menu-item-card {
    border: 1px solid rgba(255, 255, 255, 0.04);
}
html.theme-night body.popup-mode .chalk-note-input,
body.popup-mode.theme-night .chalk-note-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
html.theme-night body.popup-mode .waiter-qty-ctrl button,
body.popup-mode.theme-night .waiter-qty-ctrl button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
}
html.theme-night body.popup-mode .waiter-qty-input,
body.popup-mode.theme-night .waiter-qty-input {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
html.theme-night body.popup-mode .category-nav-container .form-control,
html.theme-night body.popup-mode #menuSearchInput,
body.popup-mode.theme-night .category-nav-container .form-control,
body.popup-mode.theme-night #menuSearchInput {
    background: var(--bg-card) !important;
    color: var(--text) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
html.theme-night body.popup-mode #menuSearchInput::placeholder,
body.popup-mode.theme-night #menuSearchInput::placeholder { color: var(--text-dim); }

/* --- Sun/Moon toggle button (rendered only in waiter mode). */
.waiter-theme-toggle {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--accent);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}
.waiter-theme-toggle:active { transform: scale(0.9); }
/* Show the correct icon for the current theme; the other is hidden. Day shows
   the Sun (tap to go dark); night shows the Moon. Matches both the toggle-set
   body class and the pre-paint html class so the icon is right at first paint. */
.waiter-theme-toggle .icon-night { display: none; }
html.theme-night body.popup-mode .waiter-theme-toggle .icon-day,
body.popup-mode.theme-night .waiter-theme-toggle .icon-day { display: none; }
html.theme-night body.popup-mode .waiter-theme-toggle .icon-night,
body.popup-mode.theme-night .waiter-theme-toggle .icon-night { display: inline-block; }

/* ===== WAITER WHOLE-CARD SWIPE AFFORDANCE (popup_mode only) ===== */
/* The whole card row is the gesture surface; it translates slightly while the
   waiter drags, and faint ‹remove / modifiers› hint icons sit at the row edges
   so the gesture is discoverable. Scoped to body.popup-mode so the customer/QR
   card (no popup) is never touched. */
body.popup-mode .waiter-swipe-frame {
    position: relative;                 /* anchor for the .waiter-swipe-hints overlay */
    transition: transform 0.12s ease;
}
body.popup-mode .waiter-swipe-hints {
    position: absolute;
    inset: 0;
    z-index: 4;                         /* above the .waiter-qty-badge red overlay (z-index:3) */
    pointer-events: none;               /* never intercept the touch */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}
/* Small circular backdrop so each hint reads on both the (dark) image edge and
   the card background, in both day and night themes. */
body.popup-mode .waiter-swipe-hints .swipe-hint {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    line-height: 1;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transition: opacity 0.12s ease, transform 0.12s ease;
}
body.popup-mode .waiter-swipe-hints .swipe-hint-left { opacity: 0.4; }    /* remove */
body.popup-mode .waiter-swipe-hints .swipe-hint-right { opacity: 0.55; }  /* info peek */
/* Brighten the relevant hint while dragging in that direction. */
body.popup-mode .waiter-swipe-frame.swiping-left  .swipe-hint-left  { opacity: 1; transform: scale(1.25); }
body.popup-mode .waiter-swipe-frame.swiping-right .swipe-hint-right { opacity: 1; transform: scale(1.25); }

/* Ticket #265 swap: the name+price strip is the +1 quick-add tap target, the
   image is the modifier-modal opener. Cursor affordance for both (touch shows
   nothing, but the /manage desktop popup gets a pointer cursor). */
body.popup-mode .waiter-add-strip,
body.popup-mode .waiter-add-strip .item-title,
body.popup-mode .waiter-add-strip .item-price,
body.popup-mode .video-frame { cursor: pointer; }

/* Ticket #265: the product NAME is the primary scan target on the waiter card —
   bigger + bold so it reads fast at arm's length / in motion. */
body.popup-mode .waiter-add-strip .item-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.15;
}

/* ============================================================================
   MODIFIER MODAL — DAYLIGHT (light) THEME READABILITY  (ticket #265)
   --------------------------------------------------------------------------
   The modifier modal (#modifierModal.modal-chalk) and its JS-injected body
   (openModifierModal in menu_restaurant.js) use hardcoded Bootstrap dark
   utilities — text-white, text-white-50, bg-dark, btn-close-white — that were
   built for the dark "chalk" look. In the waiter DAYLIGHT theme
   (body.popup-mode WITHOUT .theme-night) the modal surface is light
   (--bg-elevated #f4f5f7), so that white text/controls render white-on-white.
   Override ONLY in the light waiter view; .theme-night and the customer (no
   .popup-mode) view keep the existing dark modal untouched.
   ========================================================================== */
body.popup-mode:not(.theme-night) #modifierModal .modal-content {
    background: var(--bg-elevated);          /* #f4f5f7 light surface */
    color: var(--text);                      /* #15171a dark text     */
}
/* Title (text-warning gold accent stays — gold reads on light here). */
body.popup-mode:not(.theme-night) #modifierModal .modal-title { color: var(--accent) !important; }
/* JS-injected group headers (h6.text-white) + the Special Instructions and
   footer "Extra:" labels (label.text-white / .text-white). */
body.popup-mode:not(.theme-night) #modifierModal .text-white,
body.popup-mode:not(.theme-night) #modifierModal .modal-footer .text-white { color: var(--text) !important; }
/* Option rows (.form-check.text-white-50) + their labels — dark, muted-ish. */
body.popup-mode:not(.theme-night) #modifierModal .text-white-50,
body.popup-mode:not(.theme-night) #modifierModal .form-check-label { color: var(--text) !important; }
/* The +price hints on options carry .text-warning — keep them gold/legible. */
body.popup-mode:not(.theme-night) #modifierModal .text-warning { color: var(--accent) !important; }
/* The group separators use border-secondary (a dark grey) — lighten to the
   theme border so the underline reads on the light surface. */
body.popup-mode:not(.theme-night) #modifierModal .border-bottom,
body.popup-mode:not(.theme-night) #modifierModal .modal-header,
body.popup-mode:not(.theme-night) #modifierModal .modal-footer { border-color: var(--border) !important; }
/* Inputs that carry bg-dark text-white (#modSpecialNote) + bg-dark text-white
   border-secondary (#modQty) → dark-on-light fields. */
body.popup-mode:not(.theme-night) #modifierModal #modSpecialNote,
body.popup-mode:not(.theme-night) #modifierModal #modQty {
    background: #ffffff !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
body.popup-mode:not(.theme-night) #modifierModal #modSpecialNote::placeholder { color: var(--text-dim); }
/* The checkbox/radio inputs carry bg-dark border-secondary — give them a light
   fill so the empty state isn't a dark blob on the light card. */
body.popup-mode:not(.theme-night) #modifierModal .form-check-input {
    background-color: #ffffff !important;
    border-color: var(--border) !important;
}
/* Checked state keeps the gold accent so it's visibly selected. */
body.popup-mode:not(.theme-night) #modifierModal .form-check-input:checked {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}
/* The outline-light qty +/- buttons are white-bordered (invisible on light) —
   recolor to the dark theme text/border. */
body.popup-mode:not(.theme-night) #modifierModal .modal-footer .btn-outline-light {
    color: var(--text) !important;
    border-color: var(--border) !important;
}
/* The X close button (.btn-close-white) is a white glyph — invert it dark so it
   shows on the light header. (Default .modal-chalk .btn-close uses invert(1);
   here we drop the invert so the standard dark Bootstrap glyph shows.) */
body.popup-mode:not(.theme-night) #modifierModal .btn-close { filter: none !important; }
/* ADD TO ORDER button keeps bg-warning(gold) text-dark — already legible; make
   the gold explicit so it doesn't inherit the lightened --accent at low
   contrast against dark text. */
body.popup-mode:not(.theme-night) #modifierModal #modConfirmBtn {
    background: var(--accent) !important;
    color: #ffffff !important;
}

/* ============================================================================
   MODIFIER MODAL — CUSTOMER LIGHT THEME (html.cust-day)
   --------------------------------------------------------------------------
   The #265 fix above covered the WAITER daylight view only; the customer menu
   was dark-only back then. The customer now has its own light theme
   (html.cust-day redefines the vars to a light surface), so the modal's
   hardcoded dark utilities (text-white, text-white-50, bg-dark,
   btn-close-white) render white-on-white there too. Same recipe, customer
   scope (blossom /restto/, 2026-07).
   ========================================================================== */
html.cust-day #modifierModal .modal-content {
    background: var(--bg-elevated);
    color: var(--text);
}
html.cust-day #modifierModal .modal-title { color: var(--accent) !important; }
html.cust-day #modifierModal .text-white,
html.cust-day #modifierModal .modal-footer .text-white { color: var(--text) !important; }
html.cust-day #modifierModal .text-white-50,
html.cust-day #modifierModal .form-check-label { color: var(--text) !important; }
html.cust-day #modifierModal .text-warning { color: var(--accent) !important; }
html.cust-day #modifierModal .border-bottom,
html.cust-day #modifierModal .modal-header,
html.cust-day #modifierModal .modal-footer { border-color: var(--border) !important; }
html.cust-day #modifierModal #modSpecialNote,
html.cust-day #modifierModal #modQty {
    background: #ffffff !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
html.cust-day #modifierModal #modSpecialNote::placeholder { color: var(--text-dim); }
html.cust-day #modifierModal .form-check-input {
    background-color: #ffffff !important;
    border-color: var(--border) !important;
}
html.cust-day #modifierModal .form-check-input:checked {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}
html.cust-day #modifierModal .modal-footer .btn-outline-light {
    color: var(--text) !important;
    border-color: var(--border) !important;
}
html.cust-day #modifierModal .btn-close { filter: none !important; }
html.cust-day #modifierModal #modConfirmBtn {
    background: var(--accent) !important;
    color: #ffffff !important;
}

/* ============================================================================
   WAITER INFO-PEEK BOTTOM SHEET  (ticket #265)
   --------------------------------------------------------------------------
   Whole-card swipe-RIGHT opens a READ-ONLY quick look (name + image +
   description + AI Chef's pairing). All colours use the popup theme vars so
   the sheet follows BOTH the daylight (body.popup-mode → light --bg/--text)
   and the night (body.popup-mode.theme-night → dark) themes automatically.
   popup-mode only — the customer/QR menu never renders these elements.
   ========================================================================== */
.waiter-peek-backdrop {
    position: fixed;
    inset: 0;
    z-index: 8600;                  /* above the cart FAB (8500), below modals (8500!) is fine—peek is its own layer */
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.waiter-peek-backdrop.open { opacity: 1; pointer-events: auto; }

.waiter-peek-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8650;
    max-height: 72vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    color: var(--text);
    border-top: 1px solid var(--border);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 0.5rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}
.waiter-peek-sheet.open { transform: translateY(0); }

.waiter-peek-grabber {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    margin: 4px auto 8px;
    flex-shrink: 0;
}
.waiter-peek-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.waiter-peek-name {
    flex: 1;
    min-width: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.25;
}
.waiter-peek-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.waiter-peek-close:active { transform: scale(0.92); }

.waiter-peek-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 0.75rem;
}
.waiter-peek-image {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    display: block;
}
.waiter-peek-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 1rem;
    white-space: pre-line;
}
.waiter-peek-desc.is-empty {
    color: var(--text-dim);
    font-style: italic;
    font-size: 0.85rem;
}
.waiter-peek-pairing-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.waiter-peek-loading {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.waiter-peek-pair-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
}
.waiter-peek-pair-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-elevated);
}
.waiter-peek-pair-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.waiter-peek-pair-icon {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}
.waiter-peek-pair-text { min-width: 0; flex: 1; }
.waiter-peek-pair-reason {
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--text);
}
.waiter-peek-pair-desc {
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 2px;
}
.waiter-peek-pair-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 4px;
}
.waiter-peek-pair-empty {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* #peek-pairing — category chips + propose button + add-to-cart in the
   waiter info peek. Big tap targets: this is used mid-service on a phone. */
.waiter-peek-cat-row {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    margin-bottom: 0.6rem;
    scrollbar-width: none;
}
.waiter-peek-cat-row::-webkit-scrollbar { display: none; }
.waiter-peek-cat-chip {
    flex-shrink: 0;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}
.waiter-peek-cat-chip.is-sub { opacity: 0.85; font-weight: 600; }
.waiter-peek-cat-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #14181f;
}
.waiter-peek-propose-btn {
    display: block;
    width: 100%;
    border: 1.5px dashed var(--accent);
    background: transparent;
    color: var(--accent);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 0.4rem;
}
.waiter-peek-propose-btn:active { transform: scale(0.985); }
.waiter-peek-pair-add {
    display: inline-flex;
    align-items: center;
    margin-top: 0.45rem;
    border: none;
    background: var(--accent);
    color: #14181f;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
}
.waiter-peek-pair-add:disabled { opacity: 0.75; }

/* ==========================================================================
   #cat-index — full-screen category index (waiter, long menus)
   Themed entirely through the waiter's own CSS variables, so it follows the
   day/night toggle without a second set of rules.
   ========================================================================== */
.cat-index {
    position: fixed; inset: 0; z-index: 8700;   /* above the peek sheet (8650) */
    display: none; flex-direction: column;
    background: var(--bg);
    color: var(--text);
}
.cat-index.open { display: flex; }
.cat-index-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
}
.cat-index-close {
    background: transparent; border: 0; color: var(--text);
    font-size: 1.15rem; line-height: 1; padding: 6px 8px; cursor: pointer;
}
.cat-index-filter {
    display: flex; align-items: center; gap: 8px;
    margin: 10px 16px 4px; padding: 8px 12px;
    border: 1px solid var(--border); border-radius: 999px;
    background: var(--bg-elevated); color: var(--text-muted);
}
.cat-index-filter input {
    flex: 1 1 auto; min-width: 0;
    background: transparent; border: 0; outline: none;
    color: var(--text); font-size: 0.95rem;
}
.cat-index-body { flex: 1 1 auto; overflow-y: auto; padding: 10px 16px 24px; }
.cat-index-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.cat-index-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 52px;                     /* a thumb target, not a link */
    padding: 10px 12px; text-align: left;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--bg-card); color: var(--text);
    font-size: 0.92rem; font-weight: 600; line-height: 1.2;
    cursor: pointer;
}
.cat-index-btn:active { transform: scale(0.985); }
.cat-index-name { overflow: hidden; }
.cat-index-count {
    flex: 0 0 auto; font-size: 0.72rem; font-weight: 700;
    color: var(--text-dim); background: var(--bg-elevated);
    border-radius: 999px; padding: 2px 7px;
}
/* A parent spans the row so its children below read as belonging to it. */
.cat-index-btn.is-parent { grid-column: 1 / -1; border-color: var(--accent); }
.cat-index-btn.is-child .cat-index-name { padding-left: 10px; opacity: .92; }
.cat-index-btn.is-child .cat-index-name::before {
    content: '└ '; opacity: .5; margin-left: -10px;
}
.cat-index-btn.is-freq { border-color: var(--accent); color: var(--accent-light); }
.cat-index-freq { margin-bottom: 14px; }
.cat-index-freq-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-dim); margin: 0 2px 6px;
}
.cat-index-empty { text-align: center; color: var(--text-dim); padding: 28px 0; }

/* The strip is now a tap target as well as a scroller — say so on the pill
   being stood on, without adding a control anywhere. Waiter and customer
   alike; the class only exists when the index is rendered at all. */
html.has-cat-index .cat-pill.active::after {
    content: ' \25BE'; opacity: .75; font-size: .85em;
}

/* The waiter's AI entry point is the centre button of the waiter nav (which
   lives on the FLOOR page, outside this iframe). waiter_nav.html already says
   "two buttons would clutter" and hides this orb — but it does so via
   body.waiter-body, a class that is never set inside the menu iframe, so the
   rule never fired here and the orb floated over the dishes anyway. Hide it
   where it is actually rendered. */
body.popup-mode #aiWaiterBtn,
body.popup-mode .ai-chat-fab { display: none !important; }

/* «Πρωινά Ξενοδοχείων» — people on a set: counts per group and the total */
.mod-set-count { margin-left: .4rem; font-size: .78rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px;
                 background: rgba(255, 59, 48, .15); color: #ff3b30; }
.mod-set-count.done { background: rgba(52, 199, 89, .15); color: #34c759; }
.ms-qty-label { margin-left: auto; font-size: .82rem; font-weight: 600; opacity: .8; }
.ms-set-total { text-align: center; font-weight: 700; font-size: 1rem; }
.mod-step .mod-opt-name { cursor: pointer; }

/* A set's coffee: its own «Ζάχαρη» / «Γάλα» under the pick (one row per person) */
.mod-sub { margin: 0 0 8px 2.2rem; padding: 4px 0 6px 10px; border-left: 2px solid var(--accent); }
.mod-sub-who { font-size: .8rem; font-weight: 700; opacity: .75; margin-bottom: 2px; }
.mod-sub-group { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.mod-sub-name { flex: 0 0 4.6rem; font-size: .76rem; font-weight: 600; opacity: .7; }
.mod-sub-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.mod-sub-chip { border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text);
                border-radius: 999px; padding: 6px 12px; font-size: .86rem; line-height: 1.2; cursor: pointer;
                -webkit-tap-highlight-color: transparent; }
.mod-sub-chip small { opacity: .75; }
.mod-sub-chip.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.mod-sub:not(.open) .mod-sub-group { display: none; }
.mod-sub.open .mod-sub-sum { display: none; }
.mod-sub-sum { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.mod-sub-sum-txt:empty { display: none; }
.mod-sub-sum { justify-content: flex-end; }
.mod-sub-sum-txt { flex: 1; min-width: 0; font-size: .82rem; opacity: .75; }
.mod-sub-open { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border);
    background: var(--bg-elevated); color: var(--text); border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 600; }
.mod-sub.mod-group-attn { animation: modGroupPulse .7s ease 2; border-left-color: #dc3545; }
.ms-ios .mod-list > .mod-sub { margin: 0; padding: 0 14px 10px 44px; border-left: 0; }
.ms-ios .mod-list > .mod-sub + .mod-opt:before { content: ""; position: absolute; top: 0; left: 44px; right: 0;
                                                  border-top: .5px solid var(--ms-sep); }
.ms-ios .mod-sub-chip { background: var(--ms-fill); border: 0; color: var(--ms-label); }
.ms-ios .mod-sub-chip.on { background: var(--ms-tint); color: #fff; }
.ms-ios .mod-sub-name, .ms-ios .mod-sub-who { color: var(--ms-sub); opacity: 1; }
.ms-ios .mod-sub.mod-group-attn { box-shadow: inset 3px 0 0 #dc3545; }
@media (max-width: 520px) {
    .mod-sub-group { flex-direction: column; gap: 4px; }
    .mod-sub-name { flex: none; }
    .ms-ios .mod-list > .mod-sub { padding-left: 20px; }
}

/* Waiters (staff-viewer): the order sheet read small on a phone mid-service
   (01/10) — bigger text, steppers, chips and footer for the staff view only;
   a QR customer keeps the sizes above. */
body.staff-viewer #modifierModal.ms-ios .modal-title { font-size: 1.5rem; }
body.staff-viewer #modifierModal.ms-ios .ms-close { width: 40px; height: 40px; font-size: 1.05rem; }
body.staff-viewer #modifierModal.ms-ios .ms-h,
body.staff-viewer #modifierModal.ms-ios .modifier-group > h6 { font-size: .9rem !important; margin: 16px 4px 8px !important; }
body.staff-viewer #modifierModal.ms-ios .modifier-group > h6 .badge { font-size: .8rem; }
body.staff-viewer #modifierModal.ms-ios .ms-seg .mod-course-btn { font-size: 1.08rem; padding: 11px 14px; }
body.staff-viewer #modifierModal.ms-ios #modStaffToggle { padding: 14px 16px !important; }
body.staff-viewer #modifierModal.ms-ios .ms-cell-label { font-size: 1.1rem; }
body.staff-viewer #modifierModal.ms-ios .mod-opt .form-check-label { font-size: 1.14rem; padding: 16px 14px !important; }
body.staff-viewer #modifierModal.ms-ios .mod-opt .mod-opt-tick { font-size: 1.45rem; }
body.staff-viewer #modifierModal.ms-ios .mod-opt.mod-step { padding: 13px 14px !important; }
body.staff-viewer #modifierModal.ms-ios .mod-step .mod-opt-name { font-size: 1.14rem; }
body.staff-viewer #modifierModal.ms-ios .mod-step .mod-step-price { font-size: .98rem; }
body.staff-viewer #modifierModal.ms-ios .mod-step .mod-step-ctl { gap: 6px; }
body.staff-viewer #modifierModal.ms-ios .mod-step .mod-step-btn { width: 46px; height: 46px; font-size: 1.4rem; }
body.staff-viewer #modifierModal.ms-ios .mod-step .mod-step-qty { min-width: 34px; font-size: 1.22rem; }
body.staff-viewer #modifierModal.ms-ios .mod-sub-chip { font-size: 1rem; padding: 9px 15px; }
body.staff-viewer #modifierModal.ms-ios .mod-sub-open { font-size: .95rem; padding: 7px 15px; }
body.staff-viewer #modifierModal.ms-ios .mod-sub-sum-txt { font-size: .95rem; }
body.staff-viewer #modifierModal.ms-ios .mod-sub-name,
body.staff-viewer #modifierModal.ms-ios .mod-sub-who { font-size: .88rem; }
body.staff-viewer #modifierModal.ms-ios .ms-row label,
body.staff-viewer #modifierModal.ms-ios #modSpecialNote { font-size: 1.08rem; }
body.staff-viewer #modifierModal.ms-ios .ms-qty-label { font-size: 1rem; }
body.staff-viewer #modifierModal.ms-ios .ms-extra { font-size: 1rem; }
body.staff-viewer #modifierModal.ms-ios .ms-stepper button { width: 52px; height: 50px; font-size: 1.25rem; }
body.staff-viewer #modifierModal.ms-ios #modQty { width: 54px; font-size: 1.3rem; }
body.staff-viewer #modifierModal.ms-ios #modConfirmBtn { min-height: 58px; font-size: 1.15rem; }
body.staff-viewer #modifierModal.ms-ios .ms-set-total { font-size: 1.18rem; }

/* A sheet's scroll lock: the menu templates force body { overflow-y: visible
   !important } for the sticky bars, which beat body.style.overflow = 'hidden',
   so the page behind an open cart kept scrolling — at the end of the order a
   swipe flung the hidden menu for ~3 s and swallowed every tap (owner 11/10).
   The lock sits on <html>, and the cart list keeps its own momentum. */
html.lb-scroll-lock { overflow: hidden !important; }
#cartBody { overscroll-behavior: contain; }
