/**
 * QRmenu — mobile-first guest food UI.
 * Loaded after ec-frontend-inapp.css.
 * Guest menu is phone-width only (never stretches like a desktop site).
 */

/* Phone shell — always, even on wide monitors */
html:has(body.ec-mnu-app:not(.ec-saas-landing)) {
  background: #1a120c;
}

body.ec-mnu-app:not(.ec-saas-landing) {
  --ec-food-cream: #faf6f0;
  --ec-food-warm: #fff8f1;
  --ec-food-spice: #e85d2c;
  --ec-food-herb: color-mix(in srgb, var(--ec-front-primary) 88%, #2d5016);
  --ec-food-card-shadow: 0 8px 28px rgba(42, 28, 18, 0.08);
  --ec-food-radius: 1rem;
  --ec-phone-max: 430px;
  --ec-dock-h: 0px;
  max-width: var(--ec-phone-max);
  margin-left: auto;
  margin-right: auto;
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--ec-food-cream) 0%, #f5f0e8 100%) !important;
  background-attachment: fixed !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 48px rgba(0, 0, 0, 0.35);
  overflow-x: hidden !important;
}

body.ec-mnu-app:not(.ec-saas-landing):has(.ec-mnu-dock) {
  --ec-dock-h: calc(3.65rem + env(safe-area-inset-bottom, 0px));
  padding-bottom: calc(var(--ec-dock-h) + 0.25rem);
}

/* Sticky top bar */
body.ec-mnu-app .ec-mnu-navbar.ec-top-nav {
  background: rgba(255, 252, 248, 0.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(62, 45, 28, 0.08);
  box-shadow: 0 4px 18px rgba(42, 28, 18, 0.06);
  padding-top: max(0.3rem, env(safe-area-inset-top, 0px));
  padding-bottom: 0;
  width: 100%;
}

body.ec-mnu-app .ec-mnu-nav-shell {
  max-width: 100%;
  display: block !important;
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
}

body.ec-mnu-app .ec-mnu-nav-row--brand {
  padding: 0.35rem 0 0.3rem;
  min-height: 44px;
  gap: 0.4rem !important;
}

body.ec-mnu-app .ec-mnu-navbar .navbar-brand {
  max-width: min(48%, 150px);
}

body.ec-mnu-app .ec-mnu-navbar .ec-nav-logo {
  max-height: 30px;
}

/* Smart seat pill: Marwell-style T: 01 */
body.ec-mnu-app .ec-seat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 2rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: #1a120c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(26, 18, 12, 0.2);
}

body.ec-mnu-app .ec-seat-pill .ti {
  display: none;
}

body.ec-mnu-app .ec-seat-pill__txt {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #fff;
}

body.ec-mnu-app .ec-seat-pill__unit,
body.ec-mnu-app .ec-seat-pill__sep,
body.ec-mnu-app .ec-seat-pill__num {
  color: #fff;
}

body.ec-mnu-app .ec-seat-pill__sep {
  margin: 0 0.12rem;
  opacity: 0.85;
}

body.ec-mnu-app .ec-seat-pill__num {
  font-variant-numeric: tabular-nums;
}

/* Kill legacy oversized table chip if any remain */
body.ec-mnu-app .ec-table-chip,
body.ec-mnu-app .ec-mnu-navbar .ec-table-chip {
  display: none !important;
}

/* Slim status strip — one shared pill language */
body.ec-mnu-app .ec-mnu-nav-row--status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body.ec-mnu-app .ec-mnu-nav-row--status::-webkit-scrollbar {
  display: none;
}

/* Reset every status chip to the same capsule (beats legacy .ec-session-pill) */
body.ec-mnu-app .ec-mnu-nav-row--status .ec-mnu-chip,
body.ec-mnu-app .ec-mnu-navbar .ec-mnu-chip.ec-session-pill {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  height: 2.15rem !important;
  min-height: 2.15rem !important;
  padding: 0 0.65rem !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(62, 45, 28, 0.12) !important;
  background: #fff !important;
  background-image: none !important;
  color: #2c1810 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: default;
  text-align: center;
  line-height: 1 !important;
  font-size: 0.82rem !important;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

button.ec-mnu-chip {
  cursor: pointer;
}

body.ec-mnu-app .ec-mnu-nav-row--status .ec-mnu-chip:active {
  transform: scale(0.98);
}

body.ec-mnu-app .ec-mnu-nav-row--status .ec-mnu-chip__ico {
  flex-shrink: 0;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  color: var(--ec-front-primary) !important;
  font-size: 0.95rem !important;
  line-height: 1;
}

body.ec-mnu-app .ec-mnu-nav-row--status .ec-mnu-chip__text {
  display: contents;
}

body.ec-mnu-app .ec-mnu-nav-row--status .ec-mnu-chip__kicker {
  display: none !important;
}

body.ec-mnu-app .ec-mnu-nav-row--status .ec-mnu-chip__value,
body.ec-mnu-app .ec-mnu-nav-row--status .ec-session-countdown {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #2c1810 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

body.ec-mnu-app .ec-mnu-nav-row--status .ec-mnu-chip--join .ec-mnu-chip__value {
  letter-spacing: 0.08em;
}

body.ec-mnu-app .ec-mnu-nav-row--status .ec-mnu-chip--session.ec-session-pill--paused {
  background: #fffbeb !important;
  border-color: #f0c96a !important;
}

body.ec-mnu-app .ec-mnu-nav-row--status .ec-mnu-chip--join.is-copied {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
}

body.ec-mnu-app .ec-mnu-nav-row--status .ec-mnu-chip__copied {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.ec-mnu-app .ec-mnu-nav-row--status .ec-mnu-chip--join.is-copied .ec-mnu-chip__value {
  display: none;
}

body.ec-mnu-app .ec-mnu-nav-row--status .ec-mnu-chip--join.is-copied .ec-mnu-chip__copied {
  display: inline !important;
}

/* Kill hover shadow from legacy session pill */
body.ec-mnu-app .ec-mnu-navbar .ec-mnu-chip.ec-session-pill--interactive:hover {
  border-color: rgba(62, 45, 28, 0.18) !important;
  box-shadow: none !important;
  background: #fff !important;
}

/* Bottom dock — Help / Orders / Bill */
body.ec-mnu-app .ec-mnu-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--ec-phone-max, 430px);
  z-index: 1040;
  padding: 0;
  background: rgba(255, 252, 248, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(62, 45, 28, 0.1);
  box-shadow: 0 -8px 28px rgba(42, 28, 18, 0.1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.ec-mnu-app .ec-mnu-dock__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 0.15rem;
  min-height: 3.65rem;
  padding: 0.25rem 0.35rem 0.35rem;
}

body.ec-mnu-app .ec-mnu-dock__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3.15rem;
  padding: 0.35rem 0.25rem;
  border: 0;
  border-radius: 0.85rem;
  background: transparent;
  color: #5c4a3a;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

body.ec-mnu-app .ec-mnu-dock__item:active {
  transform: scale(0.96);
  background: color-mix(in srgb, var(--ec-front-primary) 10%, #fff);
}

body.ec-mnu-app .ec-mnu-dock__item.is-active,
body.ec-mnu-app .ec-mnu-dock__item[aria-current="page"] {
  color: var(--ec-front-primary);
  background: color-mix(in srgb, var(--ec-front-primary) 12%, #fff);
}

body.ec-mnu-app .ec-mnu-dock__ico {
  font-size: 1.35rem;
  line-height: 1;
  color: inherit;
}

body.ec-mnu-app .ec-mnu-dock__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

body.ec-mnu-app .ec-mnu-dock__item--help.ec-call-waiter-btn--sent,
body.ec-mnu-app .ec-mnu-dock__item--help:active {
  color: #fff;
  background: var(--ec-front-primary);
}

/* Cart bar sits above dock */
body.ec-mnu-app:has(.ec-mnu-dock) .fixed-button.ec-cart-bar {
  bottom: var(--ec-dock-h);
  left: 50%;
  right: auto;
  width: min(var(--ec-phone-max, 430px), 100%);
  transform: translateX(-50%);
  max-width: var(--ec-phone-max, 430px);
  z-index: 1035;
  border-radius: 1rem 1rem 0 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.03) 28%),
    color-mix(in srgb, var(--ec-front-primary) 18%, #2a2420);
}

body.ec-mnu-app:has(.ec-mnu-dock):has(#ecCartBar) {
  padding-bottom: calc(var(--ec-dock-h) + 4.6rem);
}

/* Modals / sheets stay inside phone frame */
body.ec-mnu-app .modal-dialog {
  max-width: min(420px, calc(100vw - 1rem));
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991.98px) {
  /* keep nested rules below for categories / cards */

  /* ── Search ── */
  body.ec-mnu-app .ec-mnu-search-outer {
    padding-top: 0.65rem !important;
    padding-bottom: 0.35rem !important;
  }

  body.ec-mnu-app .ec-mnu-search.ec-mnu-search--pill {
    border-radius: 1rem !important;
    border: 1px solid rgba(62, 45, 28, 0.1) !important;
    background: #fff;
    box-shadow: var(--ec-food-card-shadow);
    min-height: 3.1rem;
  }

  body.ec-mnu-app .ec-mnu-search__icon {
    color: #a08b72 !important;
  }

  body.ec-mnu-app .ec-mnu-search__btn.btn-primary {
    border-radius: 0 1rem 1rem 0 !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* ── Category rail ── */
  body.ec-mnu-app .ec-cat-rail-wrap {
    margin: 0 -0.25rem;
  }

  body.ec-mnu-app .ec-cat-rail-scroll {
    min-height: 7.5rem;
    padding-bottom: 4px;
  }

  body.ec-mnu-app .category-inner.ec-cat-rail {
    gap: 0.65rem !important;
    padding-left: 0.15rem !important;
    padding-right: 0.15rem !important;
  }

  body.ec-mnu-app .category-inner.ec-cat-rail li a.ec-cat-card {
    width: 5.5rem;
    min-width: 5.5rem;
    max-width: 5.5rem;
    min-height: 6.5rem !important;
    padding: 0.5rem 0.35rem 0.45rem !important;
    border-radius: 1rem !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(42, 28, 18, 0.06) !important;
    border: 1px solid rgba(62, 45, 28, 0.06) !important;
    scroll-snap-align: start;
  }

  body.ec-mnu-app .category-inner.ec-cat-rail li a.ec-cat-card--photo {
    width: 5.5rem;
    min-width: 5.5rem;
    max-width: 5.5rem;
  }

  body.ec-mnu-app .category-inner.ec-cat-rail li a.ec-cat-card--photo .ec-cat-card__visual {
    width: 100%;
    min-width: 100%;
    height: 3.2rem;
    min-height: 3.2rem;
    border-radius: 0.65rem;
    overflow: hidden;
  }

  body.ec-mnu-app .ec-cat-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.ec-mnu-app .category-inner.ec-cat-rail .ec-cat-card__icon i {
    font-size: 1.65rem !important;
    color: var(--ec-front-primary);
  }

  body.ec-mnu-app .category-inner.ec-cat-rail li a.ec-cat-card .ec-cat-card__name {
    font-size: 0.72rem !important;
    line-height: 1.2;
    -webkit-line-clamp: 2;
    min-height: 2.4em;
    color: #3d2c20 !important;
    font-weight: 600;
  }

  body.ec-mnu-app .category-inner.ec-cat-rail li.active a.ec-cat-card {
    background: var(--ec-front-primary) !important;
    border-color: var(--ec-front-primary) !important;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--ec-front-primary) 35%, transparent) !important;
  }

  body.ec-mnu-app .category-inner.ec-cat-rail li.active a.ec-cat-card .ec-cat-card__name,
  body.ec-mnu-app .category-inner.ec-cat-rail li.active a.ec-cat-card .ec-cat-card__icon i {
    color: #fff !important;
  }

  body.ec-mnu-app .category-inner.ec-cat-rail li.active a.ec-cat-card .ec-cat-card__visual {
    background: rgba(255, 255, 255, 0.2);
  }

  /* ── Smart recommendations ── */
  body.ec-mnu-app .ec-smart-rail {
    padding: 0 0.15rem;
  }

  body.ec-mnu-app .ec-smart-section {
    border-radius: var(--ec-food-radius);
    background: #fff;
    border: 1px solid rgba(62, 45, 28, 0.08);
    box-shadow: var(--ec-food-card-shadow);
    padding: 0.85rem 0.65rem 0.65rem;
    margin-bottom: 0.85rem !important;
    overflow: hidden;
  }

  body.ec-mnu-app .ec-smart-section--top {
    background: linear-gradient(165deg, #fff 0%, #fff9f0 100%);
  }

  body.ec-mnu-app .ec-smart-section--top::before {
    content: "";
    display: block;
    height: 3px;
    margin: -0.85rem -0.65rem 0.65rem;
    background: linear-gradient(90deg, var(--ec-food-spice), #f4b942);
  }

  body.ec-mnu-app .ec-smart-section--group {
    background: linear-gradient(165deg, #fff 0%, #f0f9ff 100%);
  }

  body.ec-mnu-app .ec-smart-section--group::before {
    content: "";
    display: block;
    height: 3px;
    margin: -0.85rem -0.65rem 0.65rem;
    background: linear-gradient(90deg, var(--ec-front-primary), #60a5fa);
  }

  body.ec-mnu-app .ec-smart-section__head {
    margin-bottom: 0.65rem !important;
  }

  body.ec-mnu-app .ec-smart-section__title {
    font-size: 0.95rem !important;
    color: #2c1810;
    letter-spacing: -0.01em;
  }

  body.ec-mnu-app .ec-smart-section__sub {
    font-size: 0.78rem !important;
    color: #8b7355 !important;
    line-height: 1.35;
  }

  body.ec-mnu-app .ec-smart-ai-pill {
    font-size: 0.62rem;
    background: #fff7ed !important;
    border-color: #fed7aa !important;
    color: #c2410c !important;
  }

  /* Horizontal dish carousel for smart picks (narrow viewports) */
  body.ec-mnu-app .ec-smart-section .ec-mnu-product-grid--smart {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0.65rem !important;
    scrollbar-width: none;
  }

  body.ec-mnu-app .ec-smart-section .ec-mnu-product-grid--smart::-webkit-scrollbar {
    display: none;
  }

  body.ec-mnu-app .ec-smart-section .ec-mnu-product-grid--smart > .ec-smart-slide,
  body.ec-mnu-app .ec-smart-section .ec-mnu-product-grid--smart > .col {
    flex: 0 0 78% !important;
    max-width: 78% !important;
    width: 78% !important;
    min-width: 78% !important;
    scroll-snap-align: start;
  }

  body.ec-mnu-app .ec-mnu-product-card--smart {
    border-radius: var(--ec-food-radius) !important;
    box-shadow: 0 6px 20px rgba(42, 28, 18, 0.1) !important;
    border: 1px solid rgba(62, 45, 28, 0.06);
  }

  body.ec-mnu-app .ec-mnu-product-card--smart .ec-mnu-product-card__img {
    transition: transform 0.25s ease;
  }

  body.ec-mnu-app .ec-mnu-product-card--smart:active .ec-mnu-product-card__img {
    transform: scale(1.03);
  }

  body.ec-mnu-app .ec-smart-badge {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
  }

  /* ── Menu notice (subtle) ── */
  body.ec-mnu-app .ec-menu-notice {
    margin: 0.5rem 0.05rem 0.75rem;
    border-radius: 1rem;
  }

  body.ec-mnu-app .ec-menu-notice__toggle {
    padding: 0.7rem 0.85rem;
  }

  body.ec-mnu-app .ec-menu-notice-keys {
    grid-template-columns: 1fr 1fr;
  }

  /* ── Product grid (main menu) — always 2 cols inside phone shell ── */
  body.ec-mnu-app .ec-mnu-product-grid:not(.ec-mnu-product-grid--smart) {
    --bs-columns: 2;
  }

  body.ec-mnu-app .ec-mnu-product-grid:not(.ec-mnu-product-grid--smart) > .col {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }

  body.ec-mnu-app .ec-mnu-product-card--grid {
    border-radius: var(--ec-food-radius) !important;
    box-shadow: 0 4px 16px rgba(42, 28, 18, 0.07) !important;
    border: 1px solid rgba(62, 45, 28, 0.05);
    background: #fff;
  }

  body.ec-mnu-app .ec-mnu-product-card--grid .card-body {
    padding: 0.65rem 0.7rem 0.75rem !important;
  }

  body.ec-mnu-app .ec-mnu-product-card--grid .ec-mnu-product-card__title {
    font-size: 0.9rem !important;
    color: #2c1810;
    word-break: normal !important;
    overflow-wrap: anywhere;
    hyphens: none;
    -webkit-line-clamp: 2;
    min-height: 2.4em;
  }

  body.ec-mnu-app .ec-mnu-product-card--grid .ec-mnu-product-card__desc {
    display: none !important; /* less clutter on phone cards */
  }

  body.ec-mnu-app .ec-mnu-product-card--grid .ec-mnu-product-card__footer {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.35rem !important;
    margin-top: 0.5rem !important;
  }

  body.ec-mnu-app .ec-mnu-product-card--grid .ec-mnu-product-card__price {
    color: var(--ec-front-primary);
    font-size: 0.92rem !important;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
  }

  body.ec-mnu-app .ec-mnu-product-card--grid .ec-mnu-card-add {
    border-radius: 999px !important;
    width: 2.15rem !important;
    height: 2.15rem !important;
    min-width: 2.15rem !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1rem !important;
    font-weight: 700;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--ec-front-primary) 30%, transparent);
    flex-shrink: 0;
  }

  body.ec-mnu-app .ec-mnu-product-card--grid .ec-mnu-card-add .ti {
    margin: 0 !important;
  }

  /* Hide "Add" text — icon only on phone cards */
  body.ec-mnu-app .ec-mnu-product-card--grid .ec-mnu-card-add {
    font-size: 0 !important;
  }
  body.ec-mnu-app .ec-mnu-product-card--grid .ec-mnu-card-add .ti {
    font-size: 1.05rem !important;
  }

  /* ── Cart bar ── */
  body.ec-mnu-app .fixed-button.ec-cart-bar {
    padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  }

  body.ec-mnu-app #cart-button {
    border-radius: 1.1rem !important;
    min-height: 3.35rem;
    box-shadow: 0 8px 28px rgba(42, 28, 18, 0.22) !important;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  /* ── Welcome modal ── */
  body.ec-mnu-app .ec-session-welcome-sheet {
    border-radius: 1.25rem 1.25rem 0 0 !important;
    background: linear-gradient(180deg, #fff 0%, #faf6f0 100%);
  }

  body.ec-mnu-app .ec-session-welcome-icon {
    background: linear-gradient(135deg, color-mix(in srgb, var(--ec-front-primary) 15%, #fff), #fff8f1);
    color: var(--ec-front-primary);
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
    font-size: 1.75rem;
  }

  body.ec-mnu-app .ec-session-join-panel {
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
    background: color-mix(in srgb, #16a34a 8%, #fff);
    border: 1px solid color-mix(in srgb, #16a34a 18%, transparent);
  }

  body.ec-mnu-app .ec-session-join-panel__lead {
    font-size: 0.9rem;
    color: #3d2c20;
    line-height: 1.35;
  }

  body.ec-mnu-app .ec-session-join-panel__or {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8b7355;
  }

  body.ec-mnu-app .ec-session-join-main {
    min-height: 3.1rem;
    border-radius: 0.9rem;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.22);
  }

  body.ec-mnu-app .ec-session-join-code > summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ec-front-primary);
    text-align: center;
    padding: 0.35rem 0;
    user-select: none;
  }

  body.ec-mnu-app .ec-session-join-code > summary::-webkit-details-marker {
    display: none;
  }

  body.ec-mnu-app .ec-session-join-code__row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
  }

  body.ec-mnu-app .ec-session-join-code__input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 3rem;
    border-radius: 0.85rem !important;
    border: 1px solid rgba(62, 45, 28, 0.14) !important;
    font-size: 1.15rem !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    background: #fff !important;
    box-shadow: none !important;
  }

  body.ec-mnu-app .ec-session-join-code__input:focus {
    border-color: var(--ec-front-primary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ec-front-primary) 18%, transparent) !important;
  }

  body.ec-mnu-app .ec-session-join-code__btn {
    flex: 0 0 auto;
    min-width: 4.5rem;
    min-height: 3rem;
    border-radius: 0.85rem !important;
    font-weight: 700;
  }

  body.ec-mnu-app .ec-session-guest-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  body.ec-mnu-app .ec-session-guest-chip {
    border-radius: 0.85rem;
    min-height: 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-color: rgba(62, 45, 28, 0.12);
    background: #fff;
  }

  body.ec-mnu-app .ec-session-guest-chip.is-selected {
    background: var(--ec-front-primary);
    border-color: var(--ec-front-primary);
    color: #fff;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--ec-front-primary) 35%, transparent);
  }

  body.ec-mnu-app .ec-session-start-btn {
    border-radius: 1rem;
    min-height: 3.1rem;
    font-weight: 700;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--ec-front-primary) 35%, transparent);
  }

  /* ── Product detail (view.php) ── */
  body.ec-mnu-app .ec-view-hero-card {
    border-radius: var(--ec-food-radius);
    box-shadow: var(--ec-food-card-shadow);
  }

  body.ec-mnu-app .ec-view-title {
    color: #2c1810;
  }

  /* ── Checkout / bill ── */
  body.ec-mnu-app .ec-cart-modal__sheet {
    border-radius: 1.25rem 1.25rem 0 0;
  }

  body.ec-mnu-app.ec-bill-page .ec-checkout-main {
    padding-bottom: calc(var(--ec-dock-h, 0px) + 1.5rem) !important;
  }

  body.ec-mnu-app.ec-bill-page .ec-checkout-receipt {
    border-radius: 1rem;
    border: 1px solid rgba(62, 45, 28, 0.08);
    box-shadow: var(--ec-food-card-shadow);
    overflow: hidden;
  }
}

/* Smart picks: horizontal swipe carousel (phone shell — always on) */
body.ec-mnu-app:not(.ec-saas-landing) .ec-smart-scroll {
  margin: 0 -0.15rem;
  padding: 0;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-smart-section .ec-mnu-product-grid--smart,
body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-product-grid.ec-mnu-product-grid--smart {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 0.75rem !important;
  margin: 0 !important;
  padding: 0.2rem 0.85rem 0.55rem 0.15rem !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.15rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-product-grid--smart::-webkit-scrollbar {
  display: none !important;
  height: 0 !important;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-product-grid--smart > .ec-smart-slide,
body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-product-grid--smart > .col {
  flex: 0 0 78% !important;
  width: 78% !important;
  max-width: 78% !important;
  min-width: 78% !important;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-product-card--smart {
  border-radius: var(--ec-food-radius, 1rem) !important;
  box-shadow: 0 6px 20px rgba(42, 28, 18, 0.1) !important;
  border: 1px solid rgba(62, 45, 28, 0.06);
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-product-card--smart .ec-mnu-product-card__desc {
  display: none !important;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-product-card--smart .ec-mnu-card-add {
  width: 2.15rem !important;
  height: 2.15rem !important;
  min-width: 2.15rem !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0 !important;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-product-card--smart .ec-mnu-card-add .ti {
  font-size: 1.05rem !important;
  margin: 0 !important;
}

/* Main menu: always 2 columns inside phone shell (ignore Bootstrap md/xl) */
body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-product-grid:not(.ec-mnu-product-grid--smart) > .col {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  width: 50% !important;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-product-card--grid .card-body {
  padding: 0.65rem 0.7rem 0.75rem !important;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-product-card--grid .ec-mnu-product-card__title {
  font-size: 0.9rem !important;
  word-break: normal !important;
  overflow-wrap: break-word;
  hyphens: manual;
  -webkit-line-clamp: 2;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-product-card--grid .ec-mnu-product-card__desc {
  display: none !important;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-product-card--grid .ec-mnu-product-card__footer {
  flex-wrap: nowrap !important;
  gap: 0.35rem !important;
  margin-top: 0.45rem !important;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-product-card--grid .ec-mnu-product-card__price {
  white-space: nowrap;
  font-size: 0.92rem !important;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-product-card--grid .ec-mnu-card-add {
  width: 2.15rem !important;
  height: 2.15rem !important;
  min-width: 2.15rem !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0 !important;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-product-card--grid .ec-mnu-card-add .ti {
  font-size: 1.05rem !important;
  margin: 0 !important;
}

body.ec-mnu-app .category-inner.ec-cat-rail li a.ec-cat-card {
  width: 5.15rem;
  min-width: 5.15rem;
  max-width: 5.15rem;
}

/* ── Product detail (view.php): always stack in phone shell ── */
body.ec-mnu-app:not(.ec-saas-landing) .ec-view-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  margin: 0 !important;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-view-layout > [class*="col-"] {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-view-hero-card {
  position: relative;
  border-radius: 1rem !important;
  overflow: hidden;
  box-shadow: var(--ec-food-card-shadow, 0 8px 28px rgba(42, 28, 18, 0.08));
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-view-back {
  top: 0.65rem;
  left: 0.65rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.7rem 0.35rem 0.5rem;
  background: rgba(255, 252, 248, 0.94) !important;
  border-color: rgba(62, 45, 28, 0.1) !important;
  box-shadow: 0 6px 18px rgba(42, 28, 18, 0.18) !important;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-view-hero-img {
  width: 100% !important;
  height: auto !important;
  max-height: 42vh !important;
  min-height: 180px !important;
  aspect-ratio: 4 / 3;
  object-fit: cover !important;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-view-detail-card {
  border-radius: 1rem !important;
  padding: 1rem !important;
  box-shadow: var(--ec-food-card-shadow, 0 8px 28px rgba(42, 28, 18, 0.08));
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-view-title {
  font-size: 1.45rem !important;
  color: #2c1810 !important;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-view-price-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
}

/* Customise rows: checkbox | label | price — never overlap */
body.ec-mnu-app:not(.ec-saas-landing) .ec-view-option-row {
  display: grid !important;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 0.65rem !important;
  width: 100% !important;
  position: relative !important;
  float: none !important;
  padding: 0.7rem 0.75rem !important;
  margin: 0.15rem 0 !important;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-view-option-check {
  position: static !important;
  float: none !important;
  margin: 0 !important;
  margin-left: 0 !important;
  transform: none !important;
  flex-shrink: 0;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-view-option-label {
  position: static !important;
  display: block !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: #2c1810 !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow-wrap: break-word;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-view-option-price {
  position: static !important;
  float: none !important;
  margin: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  justify-self: end;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #6b7280 !important;
  white-space: nowrap !important;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-view-options-card {
  border-radius: 0.9rem !important;
  overflow: hidden;
}

body.ec-mnu-app:not(.ec-saas-landing) .ec-view-add-btn {
  min-height: 3.1rem;
  border-radius: 1rem !important;
}

body.ec-mnu-app:not(.ec-saas-landing).ec-view-page,
body.ec-mnu-app:not(.ec-saas-landing) .ec-view-page {
  padding-bottom: calc(var(--ec-dock-h, 0px) + 5.5rem) !important;
}

/* Keep phone shell on wide screens — do not stretch guest UI */
@media (min-width: 992px) {
  body.ec-mnu-app:not(.ec-saas-landing) .ec-mnu-nav-shell {
    display: block !important;
    max-width: 100%;
  }

  body.ec-mnu-app:not(.ec-saas-landing) .fixed-button {
    left: 50%;
    right: auto;
    width: min(var(--ec-phone-max, 430px), 100%);
    transform: translateX(-50%);
  }

  body.ec-mnu-app:not(.ec-saas-landing):has(.ec-mnu-dock) .fixed-button.ec-cart-bar {
    bottom: var(--ec-dock-h);
  }
}
