/* Modern online menu — uses shop theme via site_theme_css.html */
.modern-menu {
  --mm-bg: var(--background-color, #fdf6f1);
  --mm-surface: #ffffff;
  --mm-card: #fffefb;
  --mm-border: var(--border-color, #e8e4df);
  --mm-accent: var(--primary-color, #e8650a);
  --mm-accent2: var(--secondary-color, #f07a2a);
  --mm-hover: var(--hover-color, #c4520a);
  --mm-text: var(--pos-text-strong, #3d3d3d);
  --mm-muted: var(--pos-text-muted, #6b6b6b);
  --mm-green: #22c55e;
  --mm-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --mm-safe-b: env(safe-area-inset-bottom, 0px);
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--mm-bg);
  color: var(--mm-text);
  min-height: 100dvh;
}
.site-dark .modern-menu {
  --mm-surface: #252525;
  --mm-card: #2a2a2a;
  --mm-text: #e0e0e0;
  --mm-muted: #a0a0a0;
}
body:has(.modern-menu) header,
body:has(.modern-menu) footer,
body:has(.modern-menu) .page-navigation,
body:has(.modern-menu) .mobile-nav,
body:has(.modern-checkout) header,
body:has(.modern-checkout) footer,
body:has(.modern-checkout) .page-navigation,
body:has(.modern-checkout) .mobile-nav { display: none !important; }
body:has(.modern-menu) .content,
body:has(.modern-checkout) .content { padding: 0 !important; max-width: none !important; margin: 0 !important; }

html:has(.modern-checkout),
body:has(.modern-checkout) {
  overflow: hidden;
  height: 100%;
}

.modern-checkout .checkout-container { display: none; }
.modern-checkout .loading-overlay { z-index: 900; }

/* Full-viewport flex shell: header + scrollable body + pinned footer (no position:fixed) */
.modern-menu.modern-checkout.screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  transform: none;
  opacity: 1;
}
.modern-checkout .screen-header {
  flex-shrink: 0;
  position: relative;
  top: auto;
}
.modern-checkout .screen-header h2 {
  font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; flex: 1; text-align: center;
}
.modern-checkout .checkout-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}
.modern-checkout .checkout-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 1rem 1rem 0.5rem;
}
.modern-checkout.screen > .checkout-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}
.modern-checkout .bottom-cta {
  position: relative;
  flex-shrink: 0;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 10;
  background: var(--mm-bg);
  border-top: 1px solid var(--mm-border);
  padding: 0.75rem 1rem calc(0.75rem + var(--mm-safe-b));
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
.modern-checkout .checkout-hidden-js-table {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

.modern-menu.screen {
  position: relative;
  inset: auto;
  overflow: hidden;
  z-index: 1;
  transform: none;
  opacity: 1;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
}


    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    

    html:has(.modern-menu) { scroll-behavior: smooth; }

    .modern-menu #menuScreen {
      position: relative;
      inset: auto;
      z-index: 1;
      flex: 1;
      min-height: 0;
      height: auto;
    }

    /* ═══════════════════════════════
       SCREEN ROUTER
    ═══════════════════════════════ */
    .screen {
      position: fixed; inset: 0;
      overflow-y: auto;
      background: var(--mm-bg);
      transition: transform 0.38s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
      z-index: 10;
    }
    .screen.hidden-right { transform: translateX(100%); opacity: 0; pointer-events: none; }
    .screen.hidden-left  { transform: translateX(-100%); opacity: 0; pointer-events: none; }
    .screen.active       { transform: translateX(0); opacity: 1; }

    /* ═══════════════════════════════
       SHARED SCREEN HEADER
    ═══════════════════════════════ */
    .screen-header {
      position: sticky; top: 0; z-index: 100;
      background: var(--mm-bg);
      border-bottom: 1px solid var(--mm-border);
      display: flex; align-items: center; gap: 0.75rem;
      height: 54px; padding: 0 1rem;
    }
    .screen-header h2 {
      font-size: 1rem; font-weight: 700;
      letter-spacing: 0.04em; flex: 1;
    }
    .back-btn {
      width: 36px; height: 36px; border-radius: 50%;
      border: 1px solid var(--mm-border); background: var(--mm-surface);
      color: var(--mm-text); display: flex; align-items: center;
      justify-content: center; cursor: pointer; font-size: 0.85rem;
      flex-shrink: 0; text-decoration: none;
    }
    .back-btn:hover { border-color: var(--mm-accent); color: var(--mm-accent); }

    /* ═══════════════════════════════
       SHARED INPUT STYLES
    ═══════════════════════════════ */
    .field-group { margin-bottom: 1.1rem; }
    .field-label {
      display: block; font-size: 0.72rem; font-weight: 600;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--mm-muted); margin-bottom: 0.4rem;
    }
    .field-input {
      width: 100%; background: var(--mm-surface);
      border: 1.5px solid var(--mm-border); border-radius: 10px;
      padding: 0.75rem 0.9rem; color: var(--mm-text);
      font-size: 0.9rem; font-family: inherit; outline: none;
      transition: border-color 0.18s;
    }
    .field-input:focus { border-color: var(--mm-accent); }
    .field-input::placeholder { color: var(--mm-muted); }

    select.field-input option { background: var(--mm-surface); }

    /* ═══════════════════════════════
       SHARED BOTTOM CTA BAR
    ═══════════════════════════════ */
    .bottom-cta {
      position: sticky; bottom: 0;
      background: var(--mm-bg); border-top: 1px solid var(--mm-border);
      padding: 0.75rem 1rem calc(0.75rem + var(--mm-safe-b));
    }
    .cta-btn {
      width: 100%; height: 50px;
      background: var(--mm-accent); color: #fff; border: none;
      border-radius: 14px; font-size: 0.95rem; font-weight: 700;
      cursor: pointer; display: flex; align-items: center;
      justify-content: space-between; padding: 0 1.2rem;
      transition: background 0.18s;
      font-family: inherit;
    }
    .cta-btn:hover { background: var(--mm-hover); }
    .auth-btn-primary:hover { background: var(--mm-hover); }
    .drawer-add-btn:hover { background: var(--mm-hover); }
    .cta-btn:disabled { background: #444; cursor: not-allowed; }
    .cta-btn .cta-right { font-size: 0.9rem; opacity: 0.9; }


    /* ════════════════════════════════════════════════════
       SCREEN 1 — MENU (flex: scroll + footer, no overlap)
    ════════════════════════════════════════════════════ */
    #menuScreen {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      height: auto;
      overflow: hidden;
      padding-bottom: 0;
    }
    .menu-scroll {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
    }
    .menu-footer {
      flex-shrink: 0;
      padding: 0;
      background: var(--mm-bg);
      border-top: none;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      pointer-events: none;
      transition: max-height 0.32s ease, opacity 0.25s ease, padding 0.3s ease;
    }
    .menu-footer.visible {
      max-height: 120px;
      opacity: 1;
      pointer-events: auto;
      padding: 0.55rem 1rem calc(0.55rem + var(--mm-safe-b));
      border-top: 1px solid var(--mm-border);
      overflow: visible;
    }
    .menu-footer-upsell {
      margin-bottom: 0.55rem;
      border-radius: 12px;
      flex-shrink: 0;
    }
    #menuScreen:has(.menu-footer.visible) .menu-content {
      padding-bottom: 1.25rem;
    }

    /* Popular items — horizontal scroll at top of menu */
    .menu-popular-section {
      margin-bottom: 1rem;
      padding-top: 0.25rem;
    }
    .menu-popular-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.5rem;
      margin-bottom: 0.55rem;
      padding: 0 0.15rem;
    }
    .menu-popular-title {
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--mm-accent);
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }
    .menu-popular-hint {
      font-size: 0.62rem;
      color: var(--mm-muted);
      flex-shrink: 0;
    }
    .menu-popular-scroll {
      display: flex;
      gap: 0.65rem;
      overflow-x: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      padding: 0.15rem 0.15rem 0.35rem;
      margin: 0 -0.15rem;
    }
    .menu-popular-scroll::-webkit-scrollbar { display: none; }
    .popular-card {
      flex: 0 0 132px;
      display: flex;
      flex-direction: column;
      background: var(--mm-card);
      border: 1px solid var(--mm-border);
      border-radius: 12px;
      overflow: hidden;
      position: relative;
    }
    .popular-card-img {
      width: 100%;
      height: 72px;
      object-fit: cover;
      background: var(--mm-surface);
    }
    .popular-card-img--ph {
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--mm-muted);
      font-size: 1.25rem;
    }
    .popular-card-body {
      padding: 0.45rem 0.5rem 0.55rem;
      min-height: 3.2rem;
    }
    .popular-card-name {
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--mm-text);
      line-height: 1.25;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .popular-card-price {
      font-size: 0.68rem;
      font-weight: 700;
      color: var(--mm-accent);
      margin-top: 0.2rem;
    }
    .popular-card-add {
      position: absolute;
      top: 0.35rem;
      right: 0.35rem;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--mm-accent);
      color: #fff;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 0.68rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.18);
      transition: transform 0.15s;
    }
    .popular-card-add:hover { transform: scale(1.1); }

    .top-header {
      position: sticky; top: 0; z-index: 200;
      flex-shrink: 0;
      background: var(--mm-bg); border-bottom: 1px solid var(--mm-border);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    .header-bar {
      display: flex; align-items: center;
      justify-content: space-between; height: 54px; padding: 0 1rem;
    }
    .header-bar h1 {
      font-size: 1rem; font-weight: 700;
      letter-spacing: 0.06em; text-transform: uppercase;
    }
    .header-right { display: flex; gap: 0.5rem; }
    .icon-btn {
      width: 36px; height: 36px; border-radius: 50%;
      border: 1px solid var(--mm-border); background: var(--mm-surface);
      color: var(--mm-text); display: flex; align-items: center;
      justify-content: center; cursor: pointer; font-size: 0.85rem;
    }
    .icon-btn:hover { border-color: var(--mm-accent); color: var(--mm-accent); }

    .section-tabs {
      display: flex; overflow-x: auto; scrollbar-width: none;
      height: 44px; align-items: stretch; padding: 0 0.75rem;
      border-bottom: 1px solid var(--mm-border);
    }
    .section-tabs::-webkit-scrollbar { display: none; }
    .section-tab {
      flex-shrink: 0; padding: 0 0.9rem;
      display: flex; align-items: center; gap: 0.35rem;
      font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
      text-transform: uppercase; color: var(--mm-muted);
      border-bottom: 2px solid transparent; cursor: pointer;
      background: none; border-top: 0; border-left: 0; border-right: 0;
      transition: color 0.18s, border-color 0.18s; white-space: nowrap;
    }
    .section-tab.active { color: var(--mm-accent); border-bottom-color: var(--mm-accent); }

    .cat-row {
      display: flex; overflow-x: auto; scrollbar-width: none;
      gap: 0.4rem; padding: 0.5rem 1rem;
    }
    .cat-row::-webkit-scrollbar { display: none; }
    .cat-pill {
      flex-shrink: 0; padding: 0.28rem 0.85rem; border-radius: 99px;
      border: 1px solid var(--mm-border); background: var(--mm-surface);
      color: var(--mm-muted); font-size: 0.75rem; font-weight: 500;
      cursor: pointer; transition: all 0.18s; white-space: nowrap;
    }
    .cat-pill.active { background: var(--mm-accent); border-color: var(--mm-accent); color: #fff; }

    .menu-content { max-width: 640px; margin: 0 auto; padding-bottom: 1rem; }
    .category-label {
      padding: 1.3rem 1rem 0.5rem;
      font-size: 0.68rem; font-weight: 700;
      letter-spacing: 0.14em; text-transform: uppercase; color: var(--mm-muted);
    }
    .section-divider {
      height: 6px;
      background: color-mix(in srgb, var(--mm-accent) 4%, var(--mm-bg));
      border-top: 1px solid var(--mm-border); border-bottom: 1px solid var(--mm-border);
    }

    /* Menu item row */
    .menu-item {
      display: flex; align-items: center; gap: 0.85rem;
      padding: 0.9rem 1rem; border-bottom: 1px solid var(--mm-border);
      transition: background 0.12s;
    }
    .menu-item:hover { background: rgba(0, 0, 0, 0.02); }
    .item-info { flex: 1; min-width: 0; }
    .item-name-row {
      display: flex; align-items: center; gap: 0.4rem;
      margin-bottom: 0.22rem; flex-wrap: wrap;
    }
    .item-name { font-size: 0.92rem; font-weight: 600; color: var(--mm-text); }
    .item-desc {
      font-size: 0.76rem; color: var(--mm-muted); line-height: 1.45;
      display: -webkit-box; -webkit-line-clamp: 2;
      -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.35rem;
    }
    .item-price { font-size: 0.88rem; font-weight: 700; color: var(--mm-accent); }
    .has-options-hint {
      display: inline-flex; align-items: center; gap: 0.25rem;
      font-size: 0.68rem; color: var(--mm-muted); margin-top: 0.2rem;
    }

    .item-right {
      display: flex; flex-direction: column;
      align-items: center; gap: 0.45rem; flex-shrink: 0;
    }
    .item-img {
      width: 76px; height: 76px; border-radius: 10px;
      object-fit: cover; background: var(--mm-card);
    }
    .item-img-placeholder {
      width: 76px; height: 76px; border-radius: 10px;
      background: var(--mm-card); display: flex; align-items: center;
      justify-content: center; color: var(--mm-muted); font-size: 1.4rem;
    }

    /* Badges */
    .badge { display: inline-flex; align-items: center; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; border-radius: 4px; padding: 0.1rem 0.35rem; flex-shrink: 0; }
    .badge-v  { background: rgba(74,197,89,0.18); color: #4ac559; border: 1px solid rgba(74,197,89,0.3); }
    .badge-ve { background: rgba(74,197,89,0.12); color: #39b34a; border: 1px solid rgba(74,197,89,0.25); }
    .badge-gf { background: rgba(255,193,7,0.15); color: #f5bc00; border: 1px solid rgba(255,193,7,0.3); }
    .badge-popular { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.6rem; font-weight: 700; color: var(--mm-accent); background: rgba(232,101,10,0.12); border: 1px solid rgba(232,101,10,0.28); border-radius: 4px; padding: 0.1rem 0.35rem; flex-shrink: 0; }

    /* Add buttons */
    .add-btn {
      width: 30px; height: 30px; border-radius: 50%;
      background: var(--mm-accent); color: #fff; border: none;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: 1rem;
      transition: transform 0.15s, background 0.15s;
    }
    .add-btn:hover { background: var(--mm-hover); transform: scale(1.1); }
    .add-btn:active { transform: scale(0.92); }
    .add-btn-options {
      width: 30px; height: 30px; border-radius: 50%;
      background: transparent; color: var(--mm-accent);
      border: 2px solid var(--mm-accent);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: 1rem;
      transition: transform 0.15s, background 0.15s, color 0.15s;
    }
    .add-btn-options:hover { background: var(--mm-accent); color: #fff; transform: scale(1.1); }

    .qty-control {
      display: none; align-items: center;
      background: var(--mm-card); border: 1.5px solid var(--mm-accent);
      border-radius: 99px; overflow: hidden; height: 30px;
    }
    .qty-control.visible { display: flex; }
    .qty-btn {
      width: 30px; height: 100%; background: none; border: none;
      color: var(--mm-accent); display: flex; align-items: center;
      justify-content: center; cursor: pointer; font-size: 0.78rem;
      flex-shrink: 0; transition: background 0.12s;
    }
    .qty-btn:hover { background: rgba(232,101,10,0.18); }
    .qty-num { min-width: 22px; text-align: center; font-size: 0.82rem; font-weight: 700; color: var(--mm-text); }

    /* Upsell — checkout + menu footer above cart bar */
    .upsell-block {
      background: var(--mm-surface);
      border: 1px solid var(--mm-border);
      border-radius: 14px;
      padding: 0.75rem 0 0.75rem 0.85rem;
      margin-bottom: 1rem;
    }
    .upsell-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mm-muted); margin-bottom: 0.45rem; padding-right: 0.85rem; }
    .upsell-scroll { display: flex; gap: 0.6rem; overflow-x: auto; scrollbar-width: none; padding-right: 0.85rem; }
    .upsell-scroll::-webkit-scrollbar { display: none; }
    .upsell-card { flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem; background: var(--mm-card); border: 1px solid var(--mm-border); border-radius: 10px; padding: 0.4rem 0.65rem 0.4rem 0.4rem; }
    .upsell-img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; background: var(--mm-surface); flex-shrink: 0; }
    .upsell-name { font-size: 0.72rem; font-weight: 600; color: var(--mm-text); white-space: nowrap; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
    .upsell-price { font-size: 0.68rem; color: var(--mm-accent); font-weight: 600; }
    .upsell-add { width: 22px; height: 22px; border-radius: 50%; background: var(--mm-accent); color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.68rem; flex-shrink: 0; transition: transform 0.15s; }
    .upsell-add:hover { transform: scale(1.15); }

    .cart-bar-inner {
      max-width: 640px; margin: 0 auto; display: flex;
      align-items: center; justify-content: space-between; gap: 1rem;
      background: var(--mm-accent); border-radius: 14px;
      padding: 0.85rem 1.1rem; cursor: pointer; transition: background 0.18s;
    }
    .cart-bar-inner:hover { background: var(--mm-hover); }
    .cart-bar-left { display: flex; align-items: center; gap: 0.65rem; }
    .cart-count-badge { background: rgba(0,0,0,0.22); color: #fff; font-size: 0.75rem; font-weight: 700; border-radius: 99px; padding: 0.12rem 0.5rem; min-width: 22px; text-align: center; }
    .cart-bar-label { font-size: 0.88rem; font-weight: 700; color: #fff; }
    .cart-bar-total { font-size: 0.88rem; font-weight: 700; color: #fff; }

    /* Menu section visibility */
    .menu-section { display: none; }
    .menu-section.active { display: block; }

    /* ═══════════════════════════════
       OPTIONS DRAWER
    ═══════════════════════════════ */
    .drawer-backdrop {
      position: fixed; inset: 0; background: rgba(0,0,0,0.45);
      z-index: 1190; opacity: 0; visibility: hidden;
      transition: opacity 0.28s, visibility 0.28s;
    }
    .drawer-backdrop.open { opacity: 1; visibility: visible; }
    .options-drawer {
      position: fixed; bottom: 0; left: 0; right: 0; z-index: 1200;
      background: var(--mm-surface); border-radius: 20px 20px 0 0;
      max-height: 88dvh; display: flex; flex-direction: column;
      transform: translateY(100%);
      transition: transform 0.32s cubic-bezier(0.32,0,0.2,1);
      overflow: hidden;
    }
    .options-drawer.open { transform: translateY(0); }
    .drawer-handle { width: 36px; height: 4px; border-radius: 2px; background: rgba(0,0,0,0.12); margin: 10px auto 0; flex-shrink: 0; }
    .drawer-hero { position: relative; height: 155px; background: var(--mm-card); flex-shrink: 0; overflow: hidden; }
    .drawer-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
    .drawer-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%); display: flex; align-items: flex-end; padding: 1rem; }
    .drawer-hero-name { font-size: 1.15rem; font-weight: 800; color: #fff; }
    .drawer-hero-price { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.7); margin-top: 0.1rem; }
    .drawer-close { position: absolute; top: 0.75rem; right: 0.75rem; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,0.45); color: #fff; border: none; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; cursor: pointer; }
    .drawer-body { overflow-y: auto; flex: 1; }
    .option-group { padding: 1rem 1rem 0.25rem; }
    .option-group-title { font-size: 0.82rem; font-weight: 700; color: var(--mm-text); margin-bottom: 0.15rem; }
    .option-group-meta { font-size: 0.68rem; color: var(--mm-muted); margin-bottom: 0.65rem; }
    .option-row { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 0; border-bottom: 1px solid var(--mm-border); cursor: pointer; gap: 0.75rem; transition: background 0.12s; }
    .option-row:last-child { border-bottom: none; }
    .option-label { font-size: 0.88rem; font-weight: 500; color: var(--mm-text); }
    .option-extra-price { font-size: 0.74rem; color: var(--mm-muted); margin-top: 0.1rem; }
    .opt-select { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d8d4cf; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: border-color 0.15s, background 0.15s; }
    .opt-select.checkbox { border-radius: 6px; }
    .opt-select.selected { border-color: var(--mm-accent); background: var(--mm-accent); }
    .opt-select.selected::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
    .opt-select.checkbox.selected::after { content: '✓'; font-size: 0.72rem; border-radius: 0; width: auto; height: auto; font-weight: 700; }
    .drawer-footer { padding: 0.8rem 1rem calc(0.8rem + var(--mm-safe-b)); border-top: 1px solid var(--mm-border); background: var(--mm-surface); flex-shrink: 0; display: flex; gap: 0.75rem; align-items: center; }
    .drawer-qty { display: flex; align-items: center; background: var(--mm-card); border: 1.5px solid var(--mm-border); border-radius: 99px; overflow: hidden; height: 44px; flex-shrink: 0; }
    .drawer-qty-btn { width: 40px; height: 100%; background: none; border: none; color: var(--mm-text); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.85rem; }
    .drawer-qty-btn:hover { background: rgba(0,0,0,0.04); }
    .drawer-qty-num { min-width: 28px; text-align: center; font-size: 0.9rem; font-weight: 700; }
    .drawer-add-btn { flex: 1; height: 44px; background: var(--mm-accent); color: #fff; border: none; border-radius: 12px; font-size: 0.9rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; font-family: inherit; transition: background 0.15s; }

    /* ═══════════════════════════════
       SEARCH OVERLAY
    ═══════════════════════════════ */
    .search-overlay { position: fixed; inset: 0; background: var(--mm-bg); z-index: 600; display: none; flex-direction: column; }
    .search-overlay.open { display: flex; }
    .search-header { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--mm-border); }
    .search-input { flex: 1; background: none; border: none; color: var(--mm-text); font-size: 1rem; font-family: inherit; outline: none; }
    .search-input::placeholder { color: var(--mm-muted); }
    .search-cancel { background: none; border: none; color: var(--mm-accent); font-size: 0.88rem; font-weight: 600; cursor: pointer; }
    .search-results { overflow-y: auto; flex: 1; }
    .search-result-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--mm-border); cursor: pointer; }
    .search-result-item:hover { background: rgba(0,0,0,0.03); }
    .search-hint { padding: 0.85rem 1rem 0.35rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mm-muted); }

    /* ════════════════════════════════════════════════════
       SCREEN 2 — CART
    ════════════════════════════════════════════════════ */
    .cart-list { max-width: 640px; margin: 0 auto; }

    .cart-row {
      display: flex; align-items: center; gap: 1rem;
      padding: 1rem; border-bottom: 1px solid var(--mm-border);
    }
    .cart-row-info { flex: 1; min-width: 0; }
    .cart-row-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.15rem; }
    .cart-row-opts { font-size: 0.75rem; color: var(--mm-muted); margin-bottom: 0.3rem; }
    .cart-row-price { font-size: 0.88rem; font-weight: 700; color: var(--mm-accent); }

    .cart-row-qty {
      display: flex; align-items: center;
      background: var(--mm-card); border: 1.5px solid var(--mm-border);
      border-radius: 99px; overflow: hidden; height: 32px; flex-shrink: 0;
    }
    .cart-row-qty-btn {
      width: 32px; height: 100%; background: none; border: none;
      color: var(--mm-muted); display: flex; align-items: center;
      justify-content: center; cursor: pointer; font-size: 0.78rem;
    }
    .cart-row-qty-btn:hover { color: var(--mm-accent); background: rgba(232,101,10,0.1); }
    .cart-row-qty-num { min-width: 24px; text-align: center; font-size: 0.82rem; font-weight: 700; }

    .cart-summary {
      max-width: 640px; margin: 0 auto;
      padding: 1.1rem 1rem 0.5rem;
    }
    .summary-row {
      display: flex; justify-content: space-between; align-items: center;
      padding: 0.5rem 0; font-size: 0.88rem; color: var(--mm-muted);
    }
    .summary-row.total {
      font-size: 1rem; font-weight: 700; color: var(--mm-text);
      border-top: 1px solid var(--mm-border); padding-top: 0.75rem; margin-top: 0.25rem;
    }
    .promo-row {
      display: flex; gap: 0.6rem; margin: 0.75rem 0;
    }
    .promo-input {
      flex: 1; background: var(--mm-surface); border: 1.5px solid var(--mm-border);
      border-radius: 10px; padding: 0.6rem 0.85rem; color: var(--mm-text);
      font-size: 0.88rem; font-family: inherit; outline: none;
      transition: border-color 0.18s;
    }
    .promo-input:focus { border-color: var(--mm-accent); }
    .promo-input::placeholder { color: var(--mm-muted); }
    .promo-apply {
      background: var(--mm-surface); border: 1.5px solid var(--mm-accent);
      color: var(--mm-accent); border-radius: 10px; padding: 0 1rem;
      font-size: 0.85rem; font-weight: 600; cursor: pointer;
      font-family: inherit; white-space: nowrap;
    }
    .promo-apply:hover { background: var(--mm-accent); color: #fff; }
    .promo-feedback {
      font-size: 0.75rem; margin-top: 0.4rem;
    }
    .promo-feedback.success { color: #16a34a; }
    .promo-feedback.error { color: #dc2626; }
    .summary-row.discount { color: #16a34a; }

    .item-price--offer,
    .popular-card-price--offer {
      display: flex;
      align-items: baseline;
      gap: 0.35rem;
      flex-wrap: wrap;
    }
    .price-was {
      text-decoration: line-through;
      color: var(--mm-muted);
      font-weight: 500;
      font-size: 0.88em;
    }
    .price-offer {
      color: #16a34a;
      font-weight: 700;
    }
    .menu-offer-badge {
      display: inline-flex;
      align-items: center;
      margin-top: 0.25rem;
      padding: 0.15rem 0.45rem;
      border-radius: 6px;
      background: #fef2f2;
      color: #b91c1c;
      border: 1px solid #fecaca;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }
    .menu-offer-badge--sm {
      margin-top: 0.35rem;
      font-size: 0.62rem;
    }
    .menu-offers-strip {
      display: flex;
      gap: 0.5rem;
      overflow-x: auto;
      padding: 0.5rem 1rem 0.75rem;
      scrollbar-width: none;
    }
    .menu-offers-strip::-webkit-scrollbar { display: none; }
    .menu-offer-banner {
      flex: 0 0 auto;
      min-width: 220px;
      max-width: 280px;
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      padding: 0.65rem 0.75rem;
      border-radius: 12px;
      background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
      border: 1px solid #fed7aa;
    }
    .menu-offer-banner-badge {
      flex-shrink: 0;
      padding: 0.2rem 0.45rem;
      border-radius: 6px;
      background: #dc2626;
      color: #fff;
      font-size: 0.62rem;
      font-weight: 700;
      text-transform: uppercase;
    }
    .menu-offer-banner-text {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      font-size: 0.75rem;
      color: var(--mm-text);
      line-height: 1.35;
    }
    .menu-offer-banner-text strong {
      font-size: 0.8rem;
    }
    .menu-offer-banner-text span {
      color: var(--mm-muted);
    }

    .empty-cart {
      text-align: center; padding: 4rem 1rem;
      color: var(--mm-muted);
    }
    .empty-cart i { font-size: 2.5rem; margin-bottom: 1rem; display: block; opacity: 0.4; }
    .empty-cart p { font-size: 0.9rem; }

    /* ════════════════════════════════════════════════════
       SCREEN 3 — CHECKOUT DETAILS
    ════════════════════════════════════════════════════ */
    .checkout-body { max-width: 560px; margin: 0 auto; padding: 1rem 1rem 1.5rem; }
    .modern-checkout .checkout-body { max-width: 560px; margin: 0 auto; }

    .checkout-divider {
      font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
      text-transform: uppercase; color: var(--mm-muted);
      margin: 1.25rem 0 0.75rem;
    }

    .section-card {
      background: var(--mm-surface); border: 1px solid var(--mm-border);
      border-radius: 14px; padding: 1.1rem; margin-bottom: 1rem;
    }
    .section-card-title {
      font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
      text-transform: uppercase; color: var(--mm-muted); margin-bottom: 0.9rem;
    }

    .order-type-tabs {
      display: flex; gap: 0.5rem; margin-bottom: 1rem;
    }
    .order-type-tab {
      flex: 1; padding: 0.65rem; border-radius: 10px;
      border: 1.5px solid var(--mm-border); background: var(--mm-card);
      color: var(--mm-muted); font-size: 0.82rem; font-weight: 600;
      cursor: pointer; text-align: center; transition: all 0.18s;
      font-family: inherit;
    }
    .order-type-tab.active {
      border-color: var(--mm-accent); background: rgba(232,101,10,0.1);
      color: var(--mm-accent);
    }
    .order-type-tab i { display: block; font-size: 1.1rem; margin-bottom: 0.3rem; }

    .field-row { display: flex; gap: 0.75rem; }
    .field-row .field-group { flex: 1; }

    /* ════════════════════════════════════════════════════
       SCREEN 4 — PAYMENT
    ════════════════════════════════════════════════════ */
    .payment-body { max-width: 560px; margin: 0 auto; padding: 1.25rem 1rem 5rem; }

    .order-mini {
      background: var(--mm-surface); border: 1px solid var(--mm-border);
      border-radius: 14px; padding: 1rem; margin-bottom: 1rem;
    }
    .order-mini-row {
      display: flex; justify-content: space-between;
      font-size: 0.85rem; color: var(--mm-muted); padding: 0.25rem 0;
    }
    .order-mini-total {
      display: flex; justify-content: space-between;
      font-size: 0.95rem; font-weight: 700; color: var(--mm-text);
      border-top: 1px solid var(--mm-border); padding-top: 0.65rem; margin-top: 0.35rem;
    }

    .card-field {
      background: var(--mm-surface); border: 1.5px solid var(--mm-border);
      border-radius: 10px; padding: 0.85rem 0.9rem;
      display: flex; align-items: center; gap: 0.65rem;
      margin-bottom: 0.75rem; transition: border-color 0.18s;
    }
    .card-field:focus-within { border-color: var(--mm-accent); }
    .card-field i { color: var(--mm-muted); font-size: 1rem; flex-shrink: 0; }
    .card-field input {
      background: none; border: none; color: var(--mm-text);
      font-size: 0.9rem; font-family: inherit; outline: none;
      flex: 1; min-width: 0;
    }
    .card-field input::placeholder { color: var(--mm-muted); }

    .card-row { display: flex; gap: 0.75rem; }
    .card-row .card-field { flex: 1; }

    .pay-methods {
      display: flex; gap: 0.5rem; margin-bottom: 1rem;
    }
    .pay-method {
      flex: 1; padding: 0.7rem 0.5rem; border-radius: 10px;
      border: 1.5px solid var(--mm-border); background: var(--mm-card);
      display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
      cursor: pointer; transition: all 0.18s; font-family: inherit;
    }
    .pay-method.active { border-color: var(--mm-accent); background: rgba(232,101,10,0.08); }
    .pay-method i { font-size: 1.2rem; color: var(--mm-muted); }
    .pay-method.active i { color: var(--mm-accent); }
    .pay-method span { font-size: 0.68rem; font-weight: 600; color: var(--mm-muted); }
    .pay-method.active span { color: var(--mm-accent); }

    .secure-note {
      display: flex; align-items: center; gap: 0.4rem;
      font-size: 0.72rem; color: var(--mm-muted); justify-content: center;
      margin-top: 0.5rem;
    }
    .secure-note i { color: var(--mm-green); }

    /* Spinner */
    .spinner {
      width: 20px; height: 20px; border-radius: 50%;
      border: 2.5px solid rgba(255,255,255,0.35);
      border-top-color: #fff; animation: spin 0.7s linear infinite;
      display: none;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ════════════════════════════════════════════════════
       CONFIRMATION OVERLAY
    ════════════════════════════════════════════════════ */
    .confirm-icon {
      width: 80px; height: 80px; border-radius: 50%;
      background: rgba(34,197,94,0.15); border: 2px solid rgba(34,197,94,0.3);
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 1.25rem; font-size: 2rem; color: var(--mm-green);
      animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
    }
    @keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
    .confirm-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.4rem; }
    .confirm-sub { font-size: 0.88rem; color: var(--mm-muted); margin-bottom: 2rem; }
    .order-ref {
      background: var(--mm-surface); border: 1px solid var(--mm-border);
      border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1rem;
      text-align: left;
    }
    .order-ref-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mm-muted); margin-bottom: 0.3rem; }
    .order-ref-num { font-size: 1.4rem; font-weight: 900; letter-spacing: 0.06em; color: var(--mm-accent); }
    .status-steps { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 1.5rem; }
    .step {
      flex: 1; text-align: center; display: flex;
      flex-direction: column; align-items: center; gap: 0.4rem;
      position: relative;
    }
    .step::after {
      content: ''; position: absolute; top: 16px; left: 50%;
      width: 100%; height: 2px; background: var(--mm-border); z-index: 0;
    }
    .step:last-child::after { display: none; }
    .step-dot {
      width: 32px; height: 32px; border-radius: 50%;
      border: 2px solid var(--mm-border); background: var(--mm-surface);
      display: flex; align-items: center; justify-content: center;
      font-size: 0.75rem; color: var(--mm-muted); z-index: 1;
      transition: all 0.4s;
    }
    .step.done .step-dot { border-color: var(--mm-green); background: var(--mm-green); color: #fff; }
    .step.active .step-dot { border-color: var(--mm-accent); background: var(--mm-accent); color: #fff; animation: pulse 1.5s infinite; }
    @keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(232,101,10,0.4)} 50%{box-shadow:0 0 0 8px rgba(232,101,10,0)} }
    .step-label { font-size: 0.65rem; font-weight: 600; color: var(--mm-muted); }
    .step.done .step-label, .step.active .step-label { color: var(--mm-text); }

    .estimated-time {
      background: rgba(232,101,10,0.1); border: 1px solid rgba(232,101,10,0.25);
      border-radius: 12px; padding: 1rem; margin-bottom: 1.5rem;
      display: flex; align-items: center; gap: 0.85rem;
    }
    .eta-icon { font-size: 1.5rem; color: var(--mm-accent); flex-shrink: 0; }
    .eta-label { font-size: 0.72rem; color: var(--mm-muted); }
    .eta-time { font-size: 1.1rem; font-weight: 800; color: var(--mm-text); }

    .confirm-items { text-align: left; background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 14px; overflow: hidden; margin-bottom: 1.5rem; }
    .confirm-item-row { display: flex; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid var(--mm-border); font-size: 0.85rem; }
    .confirm-item-row:last-child { border-bottom: none; }
    .confirm-item-name { color: var(--mm-text); }
    .confirm-item-price { color: var(--mm-accent); font-weight: 600; }

    .btn-secondary {
      width: 100%; padding: 0.85rem; border-radius: 12px;
      border: 1.5px solid var(--mm-accent); background: transparent;
      color: var(--mm-accent); font-size: 0.9rem; font-weight: 700;
      cursor: pointer; font-family: inherit; transition: all 0.18s;
    }
    .btn-secondary:hover { background: var(--mm-accent); color: #fff; }

    .btn-google-review {
      display: block; width: 100%; padding: 0.85rem; border-radius: 12px;
      border: none; margin-bottom: 0.75rem;
      background: linear-gradient(135deg, var(--secondary-color, var(--mm-accent)) 0%, var(--hover-color, var(--mm-hover)) 100%);
      color: #fff; font-size: 0.9rem; font-weight: 700;
      text-decoration: none; text-align: center;
      font-family: inherit; transition: opacity 0.18s;
    }
    .btn-google-review:hover { opacity: 0.92; color: #fff; }
    .btn-google-review i { margin-right: 0.4rem; }

    /* Confirmation overlay (not a full screen slide) */
    .confirm-overlay {
      position: fixed; inset: 0; z-index: 900;
      background: rgba(0,0,0,0.45);
      display: flex; align-items: flex-end; justify-content: center;
      opacity: 0; visibility: hidden;
      transition: opacity 0.3s, visibility 0.3s;
    }
    .confirm-overlay.open { opacity: 1; visibility: visible; }
    .confirm-sheet {
      background: var(--mm-bg);
      width: 100%; max-width: 640px;
      border-radius: 20px 20px 0 0;
      max-height: 92dvh; overflow-y: auto;
      transform: translateY(100%);
      transition: transform 0.35s cubic-bezier(0.32,0,0.2,1);
      padding: 1.5rem 1rem calc(1.5rem + var(--mm-safe-b));
    }
    .confirm-overlay.open .confirm-sheet { transform: translateY(0); }
    .confirm-sheet { text-align: center; }

    /* Toast */
    .toast {
      position: fixed; bottom: 90px; left: 50%;
      transform: translateX(-50%) translateY(12px);
      background: var(--mm-surface); border: 1px solid var(--mm-border);
      color: var(--mm-text); font-size: 0.8rem; font-weight: 500;
      padding: 0.45rem 1rem; border-radius: 99px;
      opacity: 0; transition: opacity 0.22s, transform 0.22s;
      z-index: 800; white-space: nowrap; pointer-events: none;
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    /* ─── TABLE QR BANNER (menu) ─── */
    .table-banner {
      display: none;
      margin: 0.65rem 1rem 0;
      padding: 0.75rem 0.9rem;
      background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
      border: 2px solid #4caf50;
      border-radius: 12px;
      text-align: center;
    }
    .table-banner.visible { display: block; margin-bottom: 0.55rem; }
    .table-banner-title {
      font-size: 0.88rem; font-weight: 700; color: #2e7d32;
      display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    }
    .table-banner-sub { font-size: 0.72rem; color: #388e3c; margin-top: 0.2rem; }

    /* ─── AUTH SHEET (sign in / guest) ─── */
    .auth-overlay {
      position: fixed; inset: 0; z-index: 850;
      background: rgba(0,0,0,0.45);
      display: flex; align-items: flex-end; justify-content: center;
      opacity: 0; visibility: hidden;
      transition: opacity 0.28s, visibility 0.28s;
    }
    .auth-overlay.open { opacity: 1; visibility: visible; }
    .auth-sheet {
      background: var(--mm-surface);
      width: 100%; max-width: 640px;
      border-radius: 20px 20px 0 0;
      transform: translateY(100%);
      transition: transform 0.32s cubic-bezier(0.32,0,0.2,1);
      padding: 1.25rem 1rem calc(1.25rem + var(--mm-safe-b));
    }
    .auth-overlay.open .auth-sheet { transform: translateY(0); }
    .auth-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.25rem; }
    .auth-sub { font-size: 0.8rem; color: var(--mm-muted); margin-bottom: 1rem; }
    .auth-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
    .auth-tab {
      flex: 1; padding: 0.55rem; border-radius: 10px;
      border: 1.5px solid var(--mm-border); background: var(--mm-card);
      color: var(--mm-muted); font-size: 0.82rem; font-weight: 600;
      cursor: pointer; font-family: inherit; transition: all 0.18s;
    }
    .auth-tab.active { border-color: var(--mm-accent); color: var(--mm-accent); background: rgba(232,101,10,0.08); }
    .auth-panel { display: none; }
    .auth-panel.active { display: block; }
    .auth-btn {
      width: 100%; height: 46px; border-radius: 12px; border: none;
      font-size: 0.9rem; font-weight: 700; cursor: pointer; font-family: inherit;
      margin-top: 0.5rem; transition: background 0.18s;
    }
    .auth-btn-primary { background: var(--mm-accent); color: #fff; }
    .auth-btn-ghost {
      background: transparent; color: var(--mm-muted); border: 1px solid var(--mm-border);
      margin-top: 0.65rem;
    }
    .auth-btn-ghost:hover { border-color: var(--mm-accent); color: var(--mm-accent); }
    .auth-note { font-size: 0.72rem; color: var(--mm-muted); text-align: center; margin-top: 0.75rem; line-height: 1.4; }
    .auth-close {
      position: absolute; top: 1rem; right: 1rem;
      background: none; border: none; color: var(--mm-muted);
      font-size: 1.1rem; cursor: pointer;
    }
    .auth-sheet-wrap { position: relative; }

    /* Upsell sheet (checkout gate) */
    .upsell-overlay { z-index: 840; }
    .upsell-overlay .auth-sheet-wrap {
      width: 100%;
      max-width: 640px;
      max-height: 88dvh;
    }
    .upsell-sheet {
      position: relative;
      max-height: 88dvh;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      padding: 2.75rem 1rem calc(1.25rem + var(--mm-safe-b));
    }
    .upsell-sheet .auth-close {
      position: absolute;
      top: 0.85rem;
      right: 0.85rem;
      z-index: 2;
    }
    .upsell-sheet .auth-title,
    .upsell-sheet .auth-sub {
      padding-right: 2rem;
    }
    .upsell-sheet .upsell-sheet-scroll {
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
      margin: 0 0 1rem;
      padding: 0;
      overflow: visible;
    }
    .upsell-sheet .upsell-card {
      min-width: 0;
      width: 100%;
      padding: 0.55rem 0.75rem 0.55rem 0.55rem;
    }
    .upsell-sheet .upsell-name {
      max-width: none;
      white-space: normal;
      line-height: 1.25;
    }
    .upsell-sheet .upsell-img {
      width: 42px;
      height: 42px;
    }
    .upsell-sheet .upsell-add {
      width: 28px;
      height: 28px;
      font-size: 0.75rem;
      margin-left: auto;
    }
    #upsellContinueBtn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.35rem;
      flex-shrink: 0;
    }

    /* Signed-in chip */
    .user-chip {
      display: none; align-items: center; gap: 0.35rem;
      padding: 0.25rem 0.55rem 0.25rem 0.35rem;
      background: var(--mm-card); border: 1px solid var(--mm-border);
      border-radius: 99px; font-size: 0.68rem; font-weight: 600;
      color: var(--mm-text); cursor: pointer; max-width: 110px;
    }
    .user-chip.visible { display: flex; }
    .user-chip-avatar {
      width: 22px; height: 22px; border-radius: 50%;
      background: var(--mm-accent); color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.62rem; font-weight: 800; flex-shrink: 0;
    }
    .user-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* Table locked on checkout */
    .table-checkout-banner {
      display: none;
      background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
      border: 2px solid #4caf50;
      border-radius: 12px; padding: 0.85rem 1rem;
      margin-bottom: 0;
    }
    .table-checkout-banner.visible { display: block; }
    .table-checkout-banner strong { color: #2e7d32; font-size: 0.88rem; }
    .table-checkout-banner p { font-size: 0.75rem; color: #388e3c; margin-top: 0.2rem; }

    /* Demo toggle (preview only) */
    .demo-bar {
      background: rgba(232,101,10,0.12);
      border-bottom: 1px solid rgba(232,101,10,0.25);
      padding: 0.4rem 1rem;
      display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
      font-size: 0.68rem; color: var(--mm-muted);
    }
    .demo-bar button {
      background: var(--mm-card); border: 1px solid var(--mm-border);
      color: var(--mm-text); font-size: 0.68rem; font-weight: 600;
      padding: 0.25rem 0.55rem; border-radius: 6px; cursor: pointer; font-family: inherit;
    }
    .demo-bar button.active { border-color: var(--mm-accent); color: var(--mm-accent); }

    .checkout-signed-in {
      display: none; align-items: center; gap: 0.65rem;
      padding: 0.65rem 0; margin-bottom: 0.25rem;
    }
    .checkout-signed-in.visible { display: flex; }
    .checkout-signed-in-avatar {
      width: 36px; height: 36px; border-radius: 50%;
      background: var(--mm-accent); color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
    }
    .checkout-signed-in-info { flex: 1; min-width: 0; }
    .checkout-signed-in-name { font-size: 0.88rem; font-weight: 600; }
    .checkout-signed-in-email { font-size: 0.72rem; color: var(--mm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .checkout-switch-link {
      background: none; border: none; color: var(--mm-accent);
      font-size: 0.72rem; font-weight: 600; cursor: pointer; font-family: inherit;
    }
  