/* ══ Design tokens ════════════════════════════════════════════════════════════
   One place for colour roles, spacing, radius, shadow, type, touch size and motion.
   Contrast pairs are enforced by apps/kiosks/tests_design_tokens.py (WCAG AA).
   Older rules keep their legacy names (--ink, --accent, ...), which now point here. */
:root {
  /* colour: primary (actions). White text on --c-primary / --c-primary-2 is >= 4.5:1 */
  --c-primary: #c2410c;
  --c-primary-2: #d04a0b;
  --c-primary-rgb: 232, 93, 4;
  --c-primary-bright: #e85d04;      /* decoration only (glows, rings): never behind text */
  --c-primary-bright-2: #f48c06;
  --c-primary-bright-2-rgb: 244, 140, 6;
  --c-primary-strong-rgb: 194, 65, 12;
  --c-primary-soft: rgba(var(--c-primary-rgb), 0.10);
  --c-primary-ink: #7c2d12;         /* text on warm/cream surfaces */
  --c-primary-ink-2: #9a3412;
  --c-on-primary: #ffffff;
  /* colour: status */
  --c-success: #15803d;
  --c-success-strong: #166534;
  --c-danger: #dc2626;
  /* colour: neutrals (warm) */
  --c-white: #ffffff;
  --c-ink: #12141a;
  --c-ink-warm: #1f1a15;
  --c-ink-soft: #6b5d4f;
  --c-ink-muted: #5b6475;
  --c-ink-subtle: #6f6152;
  --c-warm-50: #fff7ed;
  --c-warm-100: #f1ebe4;
  --c-line-warm: #eee4d9;
  /* spacing (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  /* radius */
  --r-sm: 14px; --r-md: 20px; --r-lg: 26px; --r-xl: 32px; --r-pill: 999px;
  /* shadow */
  --sh-1: 0 10px 30px rgba(60, 40, 20, 0.07);
  --sh-2: 0 18px 44px rgba(60, 40, 20, 0.14);
  /* type scale */
  --fs-xs: 12px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 19px; --fs-xl: 22px; --fs-2xl: 28px; --fs-3xl: 44px;
  /* touch targets: minimum / comfortable / primary action */
  --touch-min: 48px; --touch-comfort: 56px; --touch-primary: 64px;
  /* motion */
  --dur-fast: 0.12s; --dur: 0.2s; --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* legacy names used by older rules (kept, now aliases) */
  --ink: var(--c-ink);
  --muted: var(--c-ink-muted);
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: var(--c-white);
  --line: rgba(18, 20, 26, 0.09);
  --accent: var(--c-primary-bright);
  --accent-2: var(--c-primary-bright-2);
  --brand: #151a24;
  --brand-2: #1e3a5f;
  --ok: var(--c-success);
  --danger: var(--c-danger);
  --radius-lg: var(--r-lg);
  --radius-md: var(--r-md);
  --radius-sm: var(--r-sm);
  --shadow: var(--sh-1);
  --shadow-lg: var(--sh-2);
  --accent-soft: var(--c-primary-soft);
  --accent-strong: var(--c-primary);
  --accent-strong-2: var(--c-primary-2);
}

*, *::before, *::after,
body, html,
input, select, textarea, button {
  font-family: 'Vazirmatn', sans-serif !important;
}

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

.kiosk-root-shell {
  height: 100dvh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

body.kiosk-body {
  margin: 0;
  font-family: 'Vazirmatn', sans-serif;
  background:
    radial-gradient(ellipse 70% 45% at 95% -5%, rgba(var(--c-primary-bright-2-rgb), 0.12), transparent 55%),
    radial-gradient(ellipse 55% 40% at -5% 15%, rgba(30, 58, 95, 0.1), transparent 50%),
    linear-gradient(168deg, #f4f6f9 0%, #eef1f6 48%, #f7f3ee 100%);
  color: var(--ink);
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

body.drawer-open {
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

.kiosk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 20px 6px;
}

.kiosk-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(21, 26, 36, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.brand-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--ink);
}

.brand-subtitle {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.sep {
  opacity: 0.5;
}

.kiosk-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}



.cart-fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(21, 26, 36, 0.18);
}

.icon {
  width: 22px;
  height: 22px;
}

.count-badge {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.kiosk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(460px, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  padding: 6px 16px 12px;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.menu-panel,
.cart-panel,
.side-rail {
  min-width: 0;
  min-height: 0;
}

.menu-panel {
  overflow: auto;
}

.side-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: static;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}





/* Voice needs room, but cart must keep a usable block — never crush the form. */




.side-rail .cart-shell {
  flex: 1 1 auto;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 12px 10px;
  gap: 0;
}

.side-rail .cart-head {
  flex: 0 0 auto;
  margin-bottom: 8px;
}

.side-rail .cart-empty {
  flex: 0 0 auto;
  min-height: 0;
  padding: 12px 8px;
  margin-bottom: 10px;
  gap: 4px;
  border-radius: 16px;
}

.side-rail .cart-empty-icon {
  font-size: 28px;
}

.side-rail .cart-empty-title {
  font-size: 14px;
}

.side-rail .cart-empty-text {
  font-size: 12px;
}

.side-rail .cart-items {
  flex: 1 1 auto;
  min-height: 48px;
  max-height: none;
  overflow: auto;
  margin-bottom: 10px;
  gap: 6px;
}

.side-rail .cart-form,
.side-rail .cart-summary,
.side-rail .primary-cta {
  flex: 0 0 auto;
}

.side-rail .cart-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.side-rail .form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.side-rail .form-label {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
}

.side-rail .form-input {
  padding: 8px 10px;
  font-size: 13px;
  min-height: 40px;
  box-sizing: border-box;
}

.side-rail .form-textarea {
  min-height: 52px;
  max-height: 80px;
  resize: none;
  line-height: 1.35;
  overflow: auto;
}

.side-rail .pay-opt {
  min-height: 44px;
  padding: 8px 10px;
}

.side-rail .pay-opt-sub {
  display: none;
}

.side-rail .cart-item {
  padding: 8px;
  border-radius: 14px;
  gap: 8px;
}

.side-rail .cart-item-image,
.side-rail .cart-item-image-fallback {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.side-rail .cart-summary {
  margin-bottom: 8px;
}

.side-rail .primary-cta {
  padding: 12px 14px;
  font-size: 15px;
}

.side-rail .panel-title {
  font-size: 18px;
}

.side-rail .panel-subtitle {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.side-rail .cart-item-name {
  font-size: 13px;
}

.side-rail .cart-item-price {
  font-size: 12px;
}

.panel-shell {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero-shell {
  padding: 18px 22px 16px;
  margin-bottom: 14px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-title {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  color: var(--ink);
}

.panel-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
}

.soft-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(var(--c-primary-rgb), 0.1);
  color: var(--accent);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}

.soft-chip.dark {
  background: var(--brand);
  color: #fff;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-chip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
  border-radius: 20px;
  background: rgba(21, 26, 36, 0.03);
  border: 1px solid var(--line);
  padding: 14px 16px;
}

.meta-chip.success {
  background: #ecfdf5;
  border-color: #d1fae5;
}

.meta-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meta-value {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.category-strip-wrap {
  overflow: hidden;
}

.category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-chip:hover {
  border-color: rgba(var(--c-primary-rgb), 0.35);
  transform: translateY(-1px);
}

.category-chip.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(21, 26, 36, 0.22);
}

.category-chip-thumb {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 999px;
}

.category-chip-emoji {
  font-size: 18px;
  line-height: 1;
}

.menu-sections {
  display: grid;
  gap: 20px;
}
/* A grid item defaults to min-width:auto, so a wide child (the featured strip) stretched the whole
   menu and made every product card gigantic. */
.menu-sections > * { min-width: 0; max-width: 100%; }

.category-section {
  padding: 18px 20px 20px;
}

.category-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.category-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.category-section-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(21, 26, 36, 0.05);
  display: grid;
  place-items: center;
  font-size: 24px;
}

.category-section-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
}

.category-section-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin-top: 6px;
}

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

.product-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(18, 20, 26, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--c-primary-rgb), 0.28);
}

.product-card.product-card-launch {
  animation: product-launch 0.5s ease;
}

@keyframes product-launch {
  0% { transform: scale(1); filter: brightness(1); }
  35% { transform: scale(0.96); filter: brightness(1.08); }
  100% { transform: scale(1); filter: brightness(1); }
}

.product-card.voice-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--c-primary-rgb), 0.28), 0 18px 36px rgba(var(--c-primary-rgb), 0.16);
  transform: translateY(-2px);
  animation: voice-card-pulse 1.6s ease-in-out 2;
}

@keyframes voice-card-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(var(--c-primary-rgb), 0.28), 0 18px 36px rgba(var(--c-primary-rgb), 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(var(--c-primary-rgb), 0.14), 0 18px 36px rgba(var(--c-primary-rgb), 0.2); }
}

.product-image-wrap {
  padding: 12px 12px 0;
}

.product-image-wrap {
  position: relative;
}

/* Marks an illustrative stock photo (the product has no photo of its own). */
.stock-badge {
  position: absolute;
  inset-inline-start: 8px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(21, 26, 36, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: #eef1f6;
}

.product-image-fallback {
  display: grid;
  place-items: center;
  font-size: 42px;
  background: #f4f6f9;
  border-radius: 14px;
}

.product-body {
  padding: 12px 14px 6px;
  min-width: 0;
}

.product-title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
  color: var(--ink);
}

.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}

.product-footer {
  margin-top: auto;
  padding: 10px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
}

.add-btn {
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 14px 24px;
  min-width: 120px;
  min-height: 56px; /* comfortable touch target on a kiosk screen */
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(21, 26, 36, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(var(--c-primary-rgb), 0.22);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.cart-shell {
  padding: 24px;
}

.side-rail .cart-shell {
  position: static;
  top: auto;
}

.cart-head {
  margin-bottom: 18px;
}

.cart-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  border: 2px dashed var(--line);
  background: rgba(21, 26, 36, 0.03);
  border-radius: 24px;
  padding: 34px 18px;
  margin-bottom: 18px;
}

.cart-empty.compact {
  margin: 0;
}

.cart-empty-icon {
  font-size: 42px;
}

.cart-empty-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

.cart-empty-text {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  max-height: 340px;
  overflow: auto;
  padding-left: 2px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 12px;
  transform-origin: center top;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}

.cart-item.cart-item-enter {
  animation: cart-item-in 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(var(--c-primary-rgb), 0.2);
}

.cart-item.cart-item-bump {
  animation: cart-item-bump 0.45s ease;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(var(--c-primary-bright-2-rgb), 0.28);
}

.cart-item.cart-item-exit {
  animation: cart-item-out 0.4s ease forwards;
  pointer-events: none;
}

.cart-shell.cart-flash {
  animation: cart-shell-flash 0.75s ease;
}

@keyframes cart-item-in {
  0% { opacity: 0; transform: translateX(-28px) scale(0.86); }
  60% { opacity: 1; transform: translateX(4px) scale(1.03); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes cart-item-bump {
  0% { transform: scale(1); }
  30% { transform: scale(1.06); }
  60% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

@keyframes cart-item-out {
  0% { opacity: 1; transform: translateX(0) scale(1); max-height: 140px; margin-bottom: 0; }
  100% { opacity: 0; transform: translateX(36px) scale(0.88); max-height: 0; margin-bottom: -12px; padding-top: 0; padding-bottom: 0; border-width: 0; }
}

@keyframes cart-shell-flash {
  0% { box-shadow: 0 16px 44px rgba(18, 20, 26, 0.08); }
  40% { box-shadow: 0 0 0 8px rgba(var(--c-primary-rgb), 0.22), 0 20px 48px rgba(var(--c-primary-rgb), 0.18); }
  100% { box-shadow: 0 16px 44px rgba(18, 20, 26, 0.08); }
}

.cart-fly-ghost {
  position: fixed;
  z-index: 2147483000;
  border-radius: 20px;
  background: #fff center/cover no-repeat;
  box-shadow:
    0 22px 48px rgba(18, 20, 26, 0.28),
    0 0 0 3px rgba(var(--c-primary-rgb), 0.22);
  display: grid;
  place-items: center;
  pointer-events: none;
  will-change: transform, opacity;
  /* JS drives motion via WAAPI; keep CSS keyframes as fallback only */
  animation: none;
}

.cart-fly-ghost.cart-fly-css {
  animation: cart-fly-arc 0.95s cubic-bezier(0.22, 0.82, 0.2, 1) forwards;
}

.cart-fly-emoji {
  font-size: 42px;
  line-height: 1;
}

@keyframes cart-fly-arc {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  45% {
    opacity: 1;
    transform:
      translate(calc(var(--fly-x) * 0.45), calc(var(--fly-y) * 0.35 + var(--fly-arc)))
      scale(0.78)
      rotate(-8deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--fly-x), var(--fly-y)) scale(0.22) rotate(12deg);
  }
}

.cart-shell.cart-catch,
#mobileCartButton.cart-catch {
  animation: cart-catch-pop 0.45s ease;
}

@keyframes cart-catch-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.cart-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cart-item-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(21, 26, 36, 0.05);
  flex-shrink: 0;
}

.cart-item-image-fallback {
  display: grid;
  place-items: center;
  font-size: 26px;
}

.cart-item-copy {
  min-width: 0;
}

.cart-item-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 6px;
}

.cart-item-mods {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: -2px 0 6px;
}

.cart-shell.cart-flash {
  outline: 3px solid var(--accent-2);
  box-shadow: 0 0 0 6px rgba(var(--c-primary-bright-2-rgb), 0.2);
  transition: outline 0.2s ease, box-shadow 0.2s ease;
}

.mobile-cart-form {
  margin-bottom: 12px;
}

.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 20, 26, 0.55);
  padding: 20px;
}

.checkout-overlay.hidden {
  display: none !important;
}

.checkout-modal {
  width: min(440px, 100%);
  border-radius: 28px;
  background: #fff;
  padding: 28px 22px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
  text-align: center;
}

.checkout-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.checkout-state.hidden {
  display: none !important;
}

.checkout-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

.checkout-amount {
  font-size: 34px;
  font-weight: 900;
  color: var(--ink);
}

.checkout-meta {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.checkout-hint {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.ghost-cta {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--ink);
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.cart-item-price {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cart-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(21, 26, 36, 0.03);
  padding: 6px;
  border-radius: 16px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.qty-value {
  min-width: 20px;
  text-align: center;
  font-weight: 900;
  font-size: 15px;
}

.cart-form {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 14px;
  color: var(--ink);
  font-weight: 900;
}

.form-input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 52px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

.form-textarea {
  min-height: 96px;
  padding-top: 14px;
  resize: vertical;
}

.cart-summary {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 18px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.summary-row strong {
  font-size: 18px;
  font-weight: 900;
}

.summary-row.muted {
  color: var(--muted);
  font-size: 13px;
}

.primary-cta {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--ok), #10b981);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 20px 40px rgba(21, 128, 61, 0.24);
}

.mobile-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 26, 0.48);
  backdrop-filter: blur(4px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mobile-cart-sheet {
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 18px 18px 32px;
  max-height: 88vh;
  overflow: auto;
}

.mobile-cart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mobile-cart-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.mobile-cart-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.mobile-cart-items {
  max-height: none;
}

.mobile-cart-footer {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ghost-icon-btn {
  border: 0;
  background: rgba(21, 26, 36, 0.05);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 20px;
  color: var(--ink);
}

.home-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid rgba(21, 26, 36, 0.1);
  background: rgba(21, 26, 36, 0.05);
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.home-header-btn:hover {
  background: rgba(21, 26, 36, 0.09);
  transform: translateY(-1px);
}

.home-header-btn:active {
  transform: translateY(0);
}

.home-header-btn .home-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  flex-shrink: 0;
}

@media (max-width: 1279px) {
  .kiosk-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(400px, 1fr);
  }

  .product-title {
    font-size: 18px;
  }

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

@media (max-width: 1024px) {
  .kiosk-header {
    padding: 10px 16px 6px;
  }

  .kiosk-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr);
    padding: 6px 12px 10px;
  }

  .brand-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-title {
    font-size: 15px;
  }

  .product-desc {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .product-price {
    font-size: 14px;
  }

  .add-btn {
    padding: 9px 12px;
    min-width: 72px;
    font-size: 13px;
  }

  .panel-title {
    font-size: 24px;
  }

  .category-section-title {
    font-size: 22px;
  }

  .kiosk-brand {
    align-items: flex-start;
  }

  .brand-title {
    font-size: 24px;
  }

  .brand-subtitle {
    flex-wrap: wrap;
  }

  .kiosk-header {
    flex-direction: column;
    align-items: stretch;
  }

  .kiosk-header-actions {
    justify-content: space-between;
  }
}

@media (min-width: 1025px) {
  .mobile-cart-backdrop {
    display: none !important;
  }
}

/* ── Voice Button ── */
.voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 12px 20px;
  border-radius: 18px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(var(--c-primary-rgb), 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.voice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(var(--c-primary-rgb), 0.4);
}

.voice-btn.listening {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  animation: voice-pulse 1.4s ease-in-out infinite;
}

.voice-btn-icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .voice-btn-label {
    display: none;
  }
  .voice-btn {
    padding: 12px 14px;
  }
}

@keyframes voice-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70%  { box-shadow: 0 0 0 18px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* legacy overlay styles kept unused / neutralized */
.voice-overlay {
  display: none !important;
}

.voice-modal {
  position: relative;
  background: #fff;
  border-radius: 32px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.28);
  text-align: center;
}

.voice-overlay-close {
  position: absolute;
  top: 18px;
  left: 18px;
  border: 0;
  background: rgba(21, 26, 36, 0.05);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.voice-state.hidden {
  display: none !important;
}

/* ── Waveform ── */
.voice-waveform {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 72px;
}
.voice-waveform-inline {
  height: 24px;
}

.voice-waveform.is-live .wave-bar {
  animation: none;
  transform-origin: center bottom;
}

.wave-bar {
  display: block;
  width: 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  animation: wave-dance 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s;    height: 20px; }
.wave-bar:nth-child(2) { animation-delay: 0.1s;  height: 36px; }
.wave-bar:nth-child(3) { animation-delay: 0.2s;  height: 56px; }
.wave-bar:nth-child(4) { animation-delay: 0.3s;  height: 72px; }
.wave-bar:nth-child(5) { animation-delay: 0.2s;  height: 56px; }
.wave-bar:nth-child(6) { animation-delay: 0.1s;  height: 36px; }
.wave-bar:nth-child(7) { animation-delay: 0s;    height: 20px; }

@keyframes wave-dance {
  0%, 100% { transform: scaleY(0.5); opacity: 0.7; }
  50%       { transform: scaleY(1);   opacity: 1;   }
}

/* ── Spinner ── */
.voice-spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 5px solid #e2e8f0;
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Status text ── */
.voice-status-text {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
}

.voice-hint {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.8;
}

/* ── Stop button ── */
.voice-stop-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 900;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 18px;
  cursor: pointer;
}

.voice-stop-icon {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #dc2626;
}

/* ── Result / Error icon ── */
.voice-result-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ok), #10b981);
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.28);
}

.voice-result-icon.error {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.28);
}



/* ── دکمه‌های جدید suggestions ── */
.voice-suggest-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.voice-suggest-retry-btn,
.voice-suggest-confirm-btn,
.voice-suggest-continue-btn {
  flex: 1;
  border: 0;
  border-radius: 16px;
  padding: 14px 10px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: opacity 0.15s;
}

.voice-suggest-retry-btn {
  background: rgba(21, 26, 36, 0.05);
  color: var(--muted);
}

.voice-suggest-confirm-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(var(--c-primary-rgb), 0.28);
}

.voice-suggest-continue-btn {
  background: rgba(21, 26, 36, 0.06);
  color: var(--brand);
}

/* ── Suggestions ── */
.voice-suggestions-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

.voice-suggestions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-height: min(48vh, 420px);
  overflow-y: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
}

.voice-suggestion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 14px 10px;
  background: var(--surface-solid);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.voice-suggestion-card:hover {
  border-color: rgba(var(--c-primary-rgb), 0.4);
  background: #fff7ed;
}

.voice-suggestion-card.selected {
  border-color: var(--accent);
  background: #fff7ed;
  box-shadow: 0 0 0 3px rgba(var(--c-primary-rgb), 0.14);
}

.voice-suggestion-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.vsq-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}

.vsq-num {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  min-width: 20px;
  text-align: center;
}

.voice-suggestion-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  background: #e2e8f0;
}

.voice-suggestion-name {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.4;
}

.voice-suggestion-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

.voice-assistant-message {
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
  background: rgba(21, 26, 36, 0.05);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.voice-assistant-message:empty {
  display: none;
}

.voice-prefs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
  margin: 8px 0 4px;
}

.voice-prefs-chips:empty {
  display: none;
}

.voice-pref-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.voice-pref-chip span {
  opacity: 0.55;
  font-size: 14px;
  line-height: 1;
}

.voice-reset-session-btn {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.voice-result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ==========================================================================
   [DORMANT CSS: Kept for future re-enablement of Personalize Panel Modal]
   ========================================================================== */
.personalize-btn {
  background: var(--brand);
}

.personalize-panel {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(18, 20, 26, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
}

.personalize-panel.hidden {
  display: none;
}

.personalize-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.personalize-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  margin: 0;
}

.personalize-copy,
.personalize-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.personalize-voice-status {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  min-height: 1.4em;
  margin: 0;
}

.personalize-fields .pref-step-active {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--c-primary-rgb), 0.16);
}

.personalize-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.personalize-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.personalize-fields.hidden {
  display: none;
}

/* ── Toast ── */
.voice-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  padding: 16px 28px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 800;
  z-index: 200;
  box-shadow: 0 20px 44px rgba(21, 26, 36, 0.22);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  text-overflow: ellipsis;
  overflow: hidden;
  animation: toast-in 0.25s ease;
}

.voice-toast.hidden {
  display: none !important;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Locked State while Voice Assistant is Busy ── */
body[data-voice-busy="true"] .product-card .add-btn,
body[data-voice-busy="true"] #submitOrderBtn,
body[data-voice-busy="true"] #mobileSubmitOrderBtn,
body[data-voice-busy="true"] .attract-link-btn {
  opacity: 0.68;
  cursor: wait;
}

body[data-voice-busy="true"] .category-chip {
  cursor: wait;
}

/* ── Attract landing ── */
.attract-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 15%, rgba(var(--c-primary-rgb), 0.22), transparent 58%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(30, 58, 95, 0.35), transparent 60%),
    linear-gradient(165deg, #0c0f14 0%, #151a24 45%, #1a2438 100%);
  color: #f8fafc;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.attract-screen.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.attract-glow {
  position: absolute;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--c-primary-bright-2-rgb), 0.28), transparent 68%);
  filter: blur(8px);
  animation: attract-pulse 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes attract-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.attract-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.attract-brand {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-shadow: 0 8px 40px rgba(var(--c-primary-rgb), 0.25);
}

.attract-headline {
  margin: 0;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  font-weight: 700;
  color: #e2e8f0;
}

.attract-sub {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.attract-mic-btn {
  position: relative;
  margin-top: 12px;
  width: min(220px, 56vw);
  height: min(220px, 56vw);
  border: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--accent-2), var(--accent) 55%, var(--c-primary));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 24px 60px rgba(var(--c-primary-rgb), 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.attract-mic-btn:active {
  transform: scale(0.96);
}

.attract-mic-btn * {
  pointer-events: none;
}

.attract-mic-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(var(--c-primary-bright-2-rgb), 0.5);
  animation: attract-ring 2.4s ease-out infinite;
}

@keyframes attract-ring {
  0% { transform: scale(0.92); opacity: 0.9; }
  100% { transform: scale(1.18); opacity: 0; }
}

.attract-mic-icon {
  width: 48px;
  height: 48px;
}

.attract-mic-label {
  font-size: 15px;
  font-weight: 800;
  max-width: 9em;
  line-height: 1.3;
}

/* ==========================================================================
   [DORMANT CSS: Kept for future re-enablement of Attract Secondary Buttons]
   ========================================================================== */
.attract-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  margin-top: 8px;
}

.attract-link-btn {
  background: transparent;
  border: 0;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 8px 4px;
}

.attract-link-btn:hover {
  color: #fff;
}

.kiosk-header-slim {
  padding-top: 10px;
  padding-bottom: 4px;
}

.brand-subtitle-slim {
  font-size: 13px;
}



.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.voice-result-actions,
.voice-suggest-actions {
  justify-content: center;
}
/* ── Payment toggle (replaces clipped <select>) ── */
.pay-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.pay-opt {
  min-height: 52px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  text-align: right;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.pay-opt:hover {
  border-color: rgba(var(--c-primary-rgb), 0.4);
}

.pay-opt.active {
  border-color: var(--accent);
  background: #fff7ed;
  box-shadow: 0 0 0 3px rgba(var(--c-primary-rgb), 0.14);
}

.pay-opt.is-disabled,
.pay-opt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pay-opt-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.pay-opt-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.form-optional {
  font-weight: 600;
  color: var(--muted);
}

/* denser, zoom-safe side rail */
.kiosk-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(460px, 1fr);
}

.side-rail .panel-title {
  font-size: 17px;
}

.side-rail .primary-cta {
  min-height: 48px;
  font-size: 15px;
  border-radius: 14px;
}

.side-rail .qty-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  font-size: 18px;
}

.voice-dock-shell {
  padding: 10px 10px 8px;
  border-radius: 18px;
}

.voice-dock-title {
  font-size: 14px;
}

.voice-dock-mic {
  padding: 10px 8px;
  border-radius: 14px;
  font-size: 12px;
  gap: 4px;
}

.voice-dock .voice-result-actions,
.voice-dock .voice-suggest-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex-wrap: nowrap;
}



/* Suggestion picker is a popup — never inflate the cart-side dock. */
.voice-suggest-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
}
.voice-suggest-modal.hidden {
  display: none !important;
}
.voice-suggest-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}
.voice-suggest-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface-solid, #fff);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  padding: 16px 16px 14px;
}
.voice-suggest-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.voice-suggest-modal-kicker {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}
.voice-suggest-modal .voice-assistant-message {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--ink);
  margin-top: 6px;
  margin-bottom: 14px;
}
.voice-suggest-listening-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 6px 12px;
  margin: 6px 0 2px;
  color: #15803d;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.voice-suggest-listening-bar.is-speaking {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}
.voice-suggest-listening-bar.is-processing {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.listening-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 1.5s infinite;
  flex-shrink: 0;
}
.voice-suggest-listening-bar.is-speaking .listening-pulse-dot {
  background: #94a3b8;
  animation: none;
  box-shadow: none;
}
.voice-suggest-listening-bar.is-processing .listening-pulse-dot {
  background: #3b82f6;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: pulseBlue 1.5s infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes pulseBlue {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(59, 130, 246, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}
.voice-suggest-modal .voice-state {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1 1 auto;
}
.voice-suggest-modal .voice-suggestions-title {
  font-size: 14px;
  font-weight: 800;
}
.voice-suggest-modal .voice-suggestions-grid {
  flex: 1 1 auto;
  min-height: 120px;
}
.voice-suggest-modal .voice-suggest-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.voice-suggest-modal.confirm-ask .voice-suggestions-title {
  display: none;
}
.voice-suggest-modal.confirm-ask .voice-suggest-actions {
  grid-template-columns: 1fr 1fr;
}
.voice-suggest-modal.confirm-ask #voiceSuggestConfirmBtn,
.voice-suggest-modal.confirm-ask #voiceSuggestContinueBtn,
.voice-suggest-modal.confirm-ask #voiceSuggestRetryBtn {
  display: none !important;
}
.voice-suggest-modal.confirm-ask #voiceSuggestTalkBtn {
  grid-column: 1 / -1;
}
.voice-suggest-modal .voice-suggestion-card.confirm-mode.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--c-primary-rgb), 0.2);
  background: #fff7ed;
}

.voice-dock .voice-suggest-retry-btn,
.voice-dock .voice-suggest-confirm-btn,
.voice-dock .voice-suggest-continue-btn,
.voice-dock .voice-stop-btn,
.voice-dock .voice-reset-session-btn {
  min-height: 38px;
  border-radius: 12px;
  padding: 8px 8px;
  font-size: 12px;
  white-space: nowrap;
}

.voice-suggest-modal .voice-suggest-retry-btn,
.voice-suggest-modal .voice-suggest-confirm-btn,
.voice-suggest-modal .voice-suggest-continue-btn {
  min-height: 48px;
  border-radius: 16px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.voice-suggest-modal #voiceSuggestNoBtn {
  background: #f1f5f9;
  color: #475569;
  border: 1.5px solid #cbd5e1;
}

.voice-suggest-modal #voiceSuggestNoBtn:hover,
.voice-suggest-modal #voiceSuggestNoBtn:active {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.voice-suggest-modal #voiceSuggestYesBtn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(var(--c-primary-rgb), 0.28);
}

.voice-suggest-modal #voiceSuggestYesBtn:hover,
.voice-suggest-modal #voiceSuggestYesBtn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(var(--c-primary-rgb), 0.4);
}

@media (max-height: 900px) {
  .kiosk-layout {
    padding-top: 4px;
    gap: 8px;
  }
  .side-rail {
    gap: 6px;
  }
  
  
  .side-rail .cart-shell {
    padding: 10px;
    min-height: 240px;
  }
  .side-rail .form-textarea {
    min-height: 48px;
    max-height: 72px;
  }
  .side-rail .pay-opt {
    min-height: 40px;
    padding: 6px 8px;
  }
  .side-rail .summary-row.muted {
    display: none;
  }
}

@media (min-width: 769px) {
  #mobileCartButton {
    display: none !important;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .kiosk-layout {
    grid-template-columns: 1fr;
  }

  .desktop-cart .cart-shell {
    display: none;
  }

  .side-rail.desktop-cart {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    height: auto;
    max-height: min(42vh, 380px);
    padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.92) 18%);
  }

  
}

/* ── ChatGPT Style Voice UI ── */
.ai-voice-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 16px 8px;
  background: transparent;
  width: 100%;
}

.ai-voice-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  animation: fadeIn 0.3s ease-out;
}

.ai-voice-state.hidden {
  display: none !important;
}

.ai-voice-orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #111, #333);
  color: white;
  position: relative;
}

.ai-voice-orb.idle:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.ai-voice-orb.listening {
  background: linear-gradient(135deg, #10b981, #059669);
  animation: orbPulse 1.5s infinite alternate;
  width: 80px;
  height: 80px;
  gap: 5px;
}

.ai-voice-orb .wave-bar {
  width: 5px;
  height: 28px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.08s ease-out;
}

.ai-voice-orb.is-live .wave-bar,
.voice-waveform.is-live .wave-bar {
  animation: none !important;
  transform-origin: center center;
}

.ai-voice-orb.processing {
  background: linear-gradient(135deg, #3f3f3f, #1a1a1a);
}

/* ── Production Voice State Machine Body Indicators (Deterministic Observability) ── */
body[data-voice-state="ready"] .ai-voice-orb {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 0 24px rgba(2, 132, 199, 0.35);
}

body[data-voice-state="greeting"] .ai-voice-orb.listening {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 0 28px rgba(14, 165, 233, 0.45);
}

body[data-voice-state="listening"] .ai-voice-orb.listening {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.4);
}

body[data-voice-state="speech_candidate"] .ai-voice-orb.listening {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.55);
  transform: scale(1.04);
}

body[data-voice-state="speech_detected"] .ai-voice-orb.listening {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 0 36px rgba(245, 158, 11, 0.6);
  transform: scale(1.06);
}

body[data-voice-state="speech_active"] .ai-voice-orb.listening,
body[data-voice-state="recording"] .ai-voice-orb.listening {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 0 40px rgba(5, 150, 105, 0.65);
  transform: scale(1.08);
}

body[data-voice-state="endpointing"] .ai-voice-orb.listening {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.55);
  transform: scale(1.03);
}

body[data-voice-state="processing"] .ai-voice-orb.processing,
body[data-voice-state="processing"] .ai-voice-orb.listening {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.45);
}

body[data-voice-state="responding"] .ai-voice-message {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.08);
}

body[data-voice-state="error"] .ai-voice-orb {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 0 32px rgba(239, 68, 68, 0.55);
}

.ai-voice-orb.small {
  width: 48px;
  height: 48px;
}
.ai-voice-orb.small svg {
  width: 20px;
  height: 20px;
}

.orb-icon {
  width: 28px;
  height: 28px;
  stroke: white;
}

.ai-voice-tooltip {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  opacity: 0.8;
  margin-top: 6px;
}
.ai-voice-tooltip.small {
  font-size: 12px;
  opacity: 0.6;
}
.ai-voice-tooltip.error {
  color: #dc2f02;
}

.ai-voice-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  width: 100%;
}

.ai-voice-btn {
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  background: var(--surface-2);
  color: var(--ink);
}

.ai-voice-btn.secondary {
  background: rgba(0,0,0,0.05);
}

.ai-user-transcript {
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  width: 100%;
  line-height: 1.4;
  margin-top: 6px;
  margin-bottom: 6px;
  border: 1px dashed rgba(var(--c-primary-rgb), 0.25);
  animation: fadeIn 0.25s ease-out;
}

.ai-voice-message {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  background: white;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 100%;
  line-height: 1.5;
  margin-top: 10px;
  margin-bottom: 22px;
}

/* Spinner for processing */
.spinner-ring {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes orbPulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--c-primary-rgb), 0.4); transform: scale(0.95); }
  100% { box-shadow: 0 0 0 20px rgba(var(--c-primary-rgb), 0); transform: scale(1.05); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.voice-waveform {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.voice-waveform .wave-bar {
  width: 4px;
  height: 12px;
  background: white;
  border-radius: 2px;
  transition: height 0.1s ease;
}
.voice-waveform-inline .wave-bar {
  background: var(--accent);
}
.voice-result-icon { display: none !important; }

/* ── Silence / Mute Toggle Button ── */
.ai-silence-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 14px;
}

.ai-silence-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--surface, #ffffff);
  border: 1.5px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  user-select: none;
}

.ai-silence-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.ai-silence-toggle:active {
  transform: translateY(0);
}

.ai-silence-toggle.muted {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.15);
}

.ai-silence-toggle.muted .ai-silence-icon {
  stroke: #b91c1c;
}

/* ── Muted / Disabled Voice State ── */
.ai-voice-container.is-muted .ai-voice-orb,
.ai-voice-orb.muted,
body[data-voice-muted="true"] .ai-voice-orb {
  background: #cbd5e1 !important;
  color: #475569 !important;
  border: 2px solid #94a3b8 !important;
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2) !important;
  animation: none !important;
  transform: scale(0.94) !important;
  cursor: pointer !important;
  position: relative;
}

.ai-voice-container.is-muted .ai-voice-orb svg,
.ai-voice-orb.muted svg,
body[data-voice-muted="true"] .ai-voice-orb svg {
  stroke: #475569 !important;
  color: #475569 !important;
  opacity: 0.7;
}

.ai-voice-container.is-muted .ai-voice-orb::after,
.ai-voice-orb.muted::after,
body[data-voice-muted="true"] .ai-voice-orb::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 4px;
  background: #ef4444;
  border-radius: 2px;
  transform: rotate(-45deg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.ai-voice-container.is-muted .ai-voice-tooltip,
body[data-voice-muted="true"] .ai-voice-tooltip {
  color: #64748b !important;
  font-weight: 700;
  font-size: 13px;
}

/* Inline AI Suggestions Menu Section */
.ai-suggestions-section {
  border: 2px solid #86efac !important;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%) !important;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.12) !important;
  position: relative;
  margin-bottom: 24px;
  animation: fadeInDown 0.35s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-suggestion-hint {
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #bbf7d0;
}

.ai-suggest-card {
  position: relative;
  border: 2px solid #bbf7d0 !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.08) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ai-suggest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.18) !important;
  border-color: #4ade80 !important;
}

.ai-card-index-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.category-chip.ai-suggest-chip {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #15803d !important;
  font-weight: 800;
}
.category-chip.ai-suggest-chip.active {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
}



/* ── Modifier picker (sauce / size / extras) ─────────────────────────────── */
.modpick-overlay {
  direction: rtl; text-align: right;
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: rgba(18, 20, 26, 0.55); padding: 16px;
}
.modpick-card {
  width: min(560px, 100%); max-height: 90vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 20px; box-shadow: 0 24px 64px rgba(18, 20, 26, 0.3); overflow: hidden;
}
.modpick-card header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #eee; }
.modpick-card h2 { margin: 0; font-size: 20px; }
.modpick-close { width: 48px; height: 48px; border: 0; border-radius: 12px; background: #f3f3f3; font-size: 28px; line-height: 1; cursor: pointer; }
.modpick-body { padding: 8px 20px; overflow-y: auto; }
.modpick-group h3 { margin: 14px 0 8px; font-size: 16px; }
.modpick-group h3 small { color: #777; font-weight: 400; margin-inline-start: 6px; }
.modpick-opts { display: grid; gap: 8px; }
.modpick-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px;
  border: 2px solid #e4e4e4; border-radius: 14px; background: #fff; font: inherit; font-size: 16px; cursor: pointer; text-align: start;
}
.modpick-opt.is-on { border-color: var(--accent, #e85d04); background: rgba(var(--c-primary-rgb), 0.08); font-weight: 700; }
.modpick-delta { color: #666; font-size: 14px; white-space: nowrap; }
.modpick-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid #eee; }
.modpick-total { font-weight: 800; font-size: 18px; unicode-bidi: plaintext; }
.modpick-ok { min-height: 56px; padding: 0 28px; border: 0; border-radius: 14px; background: var(--c-primary); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.modpick-ok:disabled { background: #cfcfcf; cursor: not-allowed; }
.cart-item-mods { font-size: 12px; color: #777; margin-top: 2px; direction: rtl; text-align: right; }

/* Touch-only fallback banner (health-monitor) */
.touch-only-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 16px; background: #b45309; color: #fff; font-weight: 600; font-size: 15px;
}
.touch-only-banner.hidden { display: none; }
.touch-only-banner .touch-only-retry {
  border: 1px solid rgba(255,255,255,.7); background: transparent; color: #fff;
  border-radius: 8px; padding: 4px 12px; font-size: 14px; cursor: pointer;
}
body[data-voice-mode="TOUCH_ONLY"] #voiceOverlay { opacity: .45; pointer-events: none; }

/* Combo: parts list and savings badge on a product card */
.combo-info { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: 12px; color: #555; direction: rtl; text-align: right; }
.combo-saving { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: rgba(22, 163, 74, 0.12); color: #15803d; font-weight: 700; }

/* Featured items (chef's pick / daily special) */
.product-image-wrap { position: relative; }
.feature-badge {
  position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: #fff3e0; color: #b45309; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.featured-section { border: 2px solid rgba(var(--c-primary-rgb), 0.35); }
.featured-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.featured-card {
  flex: 0 0 200px; scroll-snap-align: start; display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px rgba(18, 20, 26, 0.12);
}
.featured-card .product-footer { margin-top: auto; }

/* ── Accessibility options (ui/accessibility.js) ───────────────────────────── */
.a11y-toggle {
  position: fixed; inset-inline-start: 14px; bottom: 14px; z-index: 1900;
  min-width: 56px; min-height: 56px; border: 0; border-radius: 999px; cursor: pointer;
  background: #1f2937; color: #fff; font: inherit; font-size: 20px; font-weight: 800; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.a11y-panel {
  position: fixed; inset-inline-start: 14px; bottom: 84px; z-index: 1901; width: min(320px, calc(100vw - 28px));
  display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px;
  background: #fff; color: #111; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); direction: rtl; text-align: right;
}
.a11y-panel.hidden { display: none; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; font-size: 16px; }
.a11y-sizes { display: grid; grid-template-columns: repeat(3, 1fr); }
.a11y-size, .a11y-reset, .a11y-close {
  min-height: 48px; border: 2px solid #d1d5db; border-radius: 12px; background: #f9fafb; font: inherit; cursor: pointer;
}
.a11y-size[aria-pressed="true"] { border-color: var(--c-primary-bright); background: rgba(var(--c-primary-rgb), 0.12); font-weight: 800; }
.a11y-close { min-width: 48px; font-size: 24px; }
.a11y-row input[type="checkbox"] { width: 28px; height: 28px; }

/* Larger text: the kiosk content scales (Chromium `zoom`); its height is divided by the same factor so it
   still fills exactly one screen (the root has a fixed 100dvh height and hides overflow). The option button/panel sit outside the scaled
   area on purpose: zoom on <body> moved the fixed button off-screen, so the customer could not undo it. */
html[data-a11y-text="large"] #kiosk-root { zoom: 1.2; height: calc(100dvh / 1.2); max-height: calc(100dvh / 1.2); }
html[data-a11y-text="xlarge"] #kiosk-root { zoom: 1.3; height: calc(100dvh / 1.3); max-height: calc(100dvh / 1.3); }
/* Bigger text can make the side column taller than the screen: let it scroll so checkout stays reachable. */
html[data-a11y-text="large"] .side-rail, html[data-a11y-text="xlarge"] .side-rail { overflow-y: auto; }

/* High contrast: stronger edges and focus, punchier colours. A filter on <body> would make it the
   containing block of every fixed overlay, so it is applied on <html>. */
html[data-a11y-contrast="high"] { filter: contrast(1.3) saturate(1.1); }
html[data-a11y-contrast="high"] button, html[data-a11y-contrast="high"] .product-card, html[data-a11y-contrast="high"] .category-chip {
  outline: 2px solid #000; outline-offset: -2px;
}
html[data-a11y-contrast="high"] :focus-visible { outline: 4px solid #0044ff; outline-offset: 2px; }

/* Reduced motion: customer option, or the device asks for it. */
html[data-a11y-motion="reduce"] *, html[data-a11y-motion="reduce"] *::before, html[data-a11y-motion="reduce"] *::after {
  animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Options chips on a product card */
.options-hint { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; direction: rtl; }
.options-chip {
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(var(--c-primary-rgb), 0.10); color: #b45309; border: 1px solid rgba(var(--c-primary-rgb), 0.25);
}

/* ── Portrait kiosk (tall screen, e.g. 1080x1920) ─────────────────────────────
   The menu gets the full width and scrolls top-to-bottom; voice + cart become a dock under it.
   Before this, tall screens got the landscape two-column layout and the menu was squeezed. */
@media (orientation: portrait) and (min-width: 769px) {
  .kiosk-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 6px 20px 14px;
  }
  .menu-panel { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .side-rail {
    height: auto;
    max-height: 32vh;
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    align-items: stretch;
    gap: 12px;
  }
  .side-rail > * { min-width: 0; min-height: 0; }
  .side-rail .ai-voice-container { align-self: center; }
  .side-rail .cart-shell { width: 100%; height: 100%; overflow-y: auto; }
}

/* ══ Design refresh (warm, soft, large touch targets) ═══════════════════════════
   Appended last on purpose: overrides earlier rules without touching them. */
body.kiosk-body {
  background:
    radial-gradient(ellipse 80% 40% at 100% -5%, rgba(var(--c-primary-bright-2-rgb), 0.16), transparent 60%),
    radial-gradient(ellipse 60% 35% at -5% 10%, rgba(var(--c-primary-rgb), 0.07), transparent 55%),
    linear-gradient(170deg, #fbf8f4 0%, #f6f1ea 55%, #fbf8f4 100%);
}
.panel-shell { border: 0; box-shadow: var(--shadow); border-radius: var(--radius-lg); background: var(--c-white); }

/* Category chips: accent when active, roomy for fingers */
.category-chip { min-height: 52px; border: 1.5px solid rgba(60, 40, 20, 0.10); background: var(--c-white); font-weight: 700; }
.category-chip.active {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-strong-2));
  box-shadow: 0 10px 24px rgba(var(--c-primary-rgb), 0.32);
}

/* Product cards */
.product-card {
  border: 0; border-radius: var(--radius-md); background: var(--c-white);
  box-shadow: 0 6px 22px rgba(60, 40, 20, 0.08);
}
.product-card:active { transform: scale(0.985); }
.product-image-wrap { padding: 10px 10px 0; }
.product-image { border-radius: 16px; aspect-ratio: 16 / 11; }
.product-title { font-size: var(--fs-lg); font-weight: 800; margin-bottom: 4px; }
.product-desc { font-size: 13px; }
.product-price { font-size: 18px; font-weight: 800; color: var(--accent-strong); }
.add-btn {
  min-width: 0; padding: 0 22px; min-height: 52px; border-radius: var(--r-pill); font-size: var(--fs-md); font-weight: 800;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-strong-2));
  box-shadow: 0 8px 18px rgba(var(--c-primary-rgb), 0.32);
}
.add-btn:hover { box-shadow: 0 10px 22px rgba(var(--c-primary-rgb), 0.4); }
.add-btn:active { transform: scale(0.96); }
.feature-badge { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: var(--c-primary-ink-2); border: 1px solid rgba(var(--c-primary-rgb), 0.25); }
.stock-badge { background: rgba(20, 20, 20, 0.72); backdrop-filter: blur(4px); }
.options-chip { background: var(--accent-soft); border: 0; color: var(--c-primary-ink-2); }
.featured-section { border: 0; background: linear-gradient(180deg, var(--c-warm-50), var(--c-white)); }
.featured-card { box-shadow: 0 6px 18px rgba(60, 40, 20, 0.10); }

/* Options modal: bottom-sheet feel, two-column choice tiles with a check mark */
.modpick-overlay { align-items: end; background: rgba(30, 20, 10, 0.55); backdrop-filter: blur(3px); animation: modpick-fade 0.18s ease-out; }
.modpick-card {
  width: min(680px, 100%); max-height: 88vh; border-radius: 28px 28px 22px 22px;
  box-shadow: 0 -10px 50px rgba(30, 20, 10, 0.3); animation: modpick-rise 0.22s ease-out;
}
.modpick-card header { padding: 18px 24px; border-bottom: 0; background: linear-gradient(180deg, var(--c-warm-50), var(--c-white)); }
.modpick-card h2 { font-size: var(--fs-xl); font-weight: 800; }
.modpick-close { border-radius: 50%; background: var(--c-warm-100); }
.modpick-body { padding: 4px 24px 12px; }
.modpick-prompt { margin: 4px 24px 0; padding: 10px 14px; border-radius: var(--r-md, 12px); background: var(--c-warm-100); font-size: 16px; font-weight: 700; }
.modpick-group h3 { margin: 18px 0 10px; font-size: 17px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; }
.modpick-group h3 small { background: var(--c-warm-100); border-radius: var(--r-pill); padding: 2px 10px; font-size: var(--fs-xs); font-weight: 600; color: var(--c-ink-soft); }
.modpick-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.modpick-opt {
  position: relative; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  min-height: var(--touch-primary); padding: 10px 16px; border: 2px solid var(--c-line-warm); border-radius: 18px; background: #fffdfb; font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.modpick-opt:active { transform: scale(0.97); }
.modpick-delta { font-size: 13px; color: var(--c-ink-subtle); }
.modpick-opt.is-on { border-color: var(--accent); background: var(--accent-soft); }
.modpick-opt.is-on .modpick-delta { color: var(--c-primary-ink-2); }
.modpick-opt.is-on::after {
  content: "\2713"; position: absolute; inset-block-start: 8px; inset-inline-end: 10px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent-strong); color: var(--c-white); font-size: 13px; line-height: 22px; text-align: center;
}
.modpick-card footer { padding: 14px 24px 20px; border-top: 1px solid var(--c-warm-100); }
.modpick-total { font-size: 20px; color: var(--accent-strong); }
.modpick-ok { min-height: 58px; border-radius: var(--r-pill); padding: 0 36px; background: linear-gradient(135deg, var(--accent-strong), var(--accent-strong-2)); box-shadow: 0 8px 18px rgba(var(--c-primary-rgb), 0.32); }
.modpick-ok:disabled { background: #d9d2ca; box-shadow: none; }
@keyframes modpick-rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes modpick-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modpick-card, .modpick-overlay { animation: none; } }

/* ══ Design refresh 2: attract screen, header, compact menu head, cart dock ═════ */
/* Attract: food-photo backdrop (decorative: if the photos are not cached offline it falls back to the dark gradient) */
.attract-screen { background: #0c0f14; overflow: hidden; }
.attract-screen::before {
  content: ""; position: absolute; inset: -4%; z-index: 0;
  background-image: url("/static/img/menu/burger-1.jpg"), url("/static/img/menu/pizza-2.jpg"), url("/static/img/menu/chicken-1.jpg");
  background-size: 34% 100%, 34% 100%, 34% 100%; background-position: left center, center center, right center; background-repeat: no-repeat;
  filter: blur(10px) saturate(1.15); opacity: 0.55; transform: scale(1.06);
}
.attract-screen::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 52%, rgba(12, 15, 20, 0.35), rgba(12, 15, 20, 0.88) 78%),
    linear-gradient(180deg, rgba(12, 15, 20, 0.7), rgba(12, 15, 20, 0.25) 40%, rgba(12, 15, 20, 0.85));
}
.attract-glow, .attract-inner { z-index: 1; }
.attract-inner { max-width: 760px; gap: 22px; }
.attract-brand { font-size: clamp(2.8rem, 9vw, 5.2rem); }
.attract-headline { font-size: clamp(1.6rem, 4.6vw, 2.6rem); font-weight: 800; color: var(--c-white); }
.attract-sub { font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: #dbe4ee; max-width: 22em; line-height: 1.7; }
.attract-mic-btn {
  width: min(300px, 62vw); height: min(300px, 62vw); margin-top: 22px;
  background: linear-gradient(160deg, #e2570a, var(--c-primary) 70%); box-shadow: 0 28px 70px rgba(var(--c-primary-rgb), 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}
.attract-mic-icon { width: 76px; height: 76px; }
.attract-mic-label { font-size: 20px; max-width: 8em; }
.attract-mic-ring { inset: -14px; border-width: 3px; }

/* Header: light glass bar */
.kiosk-header-slim { background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(60, 40, 20, 0.07); }
.brand-title { font-weight: 800; letter-spacing: -0.01em; }
.brand-title::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-inline-end: 10px; border-radius: 50%; background: var(--accent-strong); vertical-align: middle; }

/* Menu head: only the sticky category bar (the "Menu / pick a category" text duplicated the voice hint) */
.hero-top { display: none; }
.hero-shell { position: sticky; top: 0; z-index: 6; padding: 12px 16px; margin-bottom: 12px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); }
.category-strip { padding-bottom: 0; }

/* Cart dock */
.side-rail .primary-cta {
  min-height: var(--touch-primary); border-radius: var(--r-pill); font-size: var(--fs-lg); font-weight: 800; border: 0;
  background: linear-gradient(135deg, var(--c-success-strong), var(--c-success)); box-shadow: 0 10px 24px rgba(21, 128, 61, 0.32);
}
.side-rail .primary-cta:disabled { background: #cfd6cf; box-shadow: none; }
.side-rail .cart-shell { border-radius: var(--radius-lg); border: 0; box-shadow: var(--shadow-lg); background: var(--c-white); }
@media (orientation: portrait) and (min-width: 769px) {
  .side-rail .cart-empty { padding: 8px 12px; gap: 2px; }
  .side-rail .cart-empty-icon { display: none; }
}

/* ══ Design refresh 3: photo-first cards with a floating "+", hero strip for featured items ═════ */
.add-fab {
  position: absolute; z-index: 3; inset-inline-end: 12px; bottom: 12px; width: 60px; height: 60px; min-width: 0; min-height: 0; padding: 0;
  display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--c-white);
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-strong-2)); color: var(--c-white);
  font-size: 36px; font-weight: 500; line-height: 1; box-shadow: 0 8px 20px rgba(60, 30, 10, 0.35);
}
.add-fab span { display: block; transform: translateY(-2px); }
.add-fab:active { transform: scale(0.92); }
.product-card .product-footer { padding: 2px 16px 14px; }
.product-card .product-body { padding: 12px 16px 4px; }
.product-card .product-desc { -webkit-line-clamp: 1; }
.product-card .product-price { font-size: var(--fs-lg); }

/* Featured strip: wide photo cards with the text on the picture */
.featured-section { padding: 16px 0 14px; background: transparent; box-shadow: none; }
.featured-section .category-section-head { padding: 0 20px; }
.featured-row { gap: 16px; padding: 6px 20px 14px; scroll-padding-inline: 20px; }
.featured-card {
  position: relative; flex: 0 0 min(82%, 520px); min-height: 250px; display: block; border-radius: 26px; overflow: hidden;
  background: var(--c-ink-warm); box-shadow: 0 12px 30px rgba(60, 30, 10, 0.22);
}
.featured-card .product-image-wrap { position: absolute; inset: 0; padding: 0; }
.featured-card .product-image, .featured-card .product-image-fallback { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: cover; }
.featured-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 6, 0.05) 30%, rgba(20, 12, 6, 0.82)); pointer-events: none; }
.featured-card .product-body, .featured-card .product-footer { position: absolute; z-index: 2; inset-inline-start: 18px; inset-inline-end: 86px; padding: 0; }
.featured-card .product-body { bottom: 52px; }
.featured-card .product-footer { bottom: 16px; }
.featured-card .product-title { color: var(--c-white); font-size: var(--fs-xl); font-weight: 800; margin: 0 0 6px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.featured-card .options-hint { display: none; }
.featured-card .product-price { color: #ffd9b8; font-size: 20px; }
.featured-card .feature-badge { top: 14px; inset-inline-start: 14px; }
.featured-card .stock-badge { display: none; }
.featured-card .add-fab { bottom: 16px; inset-inline-end: 16px; width: 64px; height: 64px; }

/* ══ Design refresh 4: voice orb card + cart rows ═════════════════════════════ */
.ai-voice-container {
  border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--c-warm-50), var(--c-white) 70%); box-shadow: var(--shadow); padding: 14px 12px 12px;
}
.ai-voice-orb.idle {
  width: 92px; height: 92px; background: linear-gradient(145deg, var(--accent-strong-2), var(--accent-strong));
  box-shadow: 0 14px 30px rgba(var(--c-primary-strong-rgb), 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}
.ai-voice-orb.idle::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid rgba(var(--c-primary-rgb), 0.35);
  animation: orb-halo 2.4s ease-out infinite; pointer-events: none;
}
.ai-voice-orb.idle .orb-icon { width: 40px; height: 40px; }
@keyframes orb-halo { 0% { transform: scale(0.94); opacity: 0.9; } 100% { transform: scale(1.22); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ai-voice-orb.idle::before { animation: none; opacity: 0.5; } }
.ai-voice-state { gap: 14px; }
.ai-voice-tooltip { font-size: var(--fs-md); font-weight: 800; opacity: 1; color: var(--c-primary-ink); }
.ai-silence-wrapper { margin-bottom: 8px; }

/* Cart rows */
.side-rail .cart-item { border: 0; border-bottom: 1px solid var(--c-warm-100); border-radius: 0; background: transparent; padding: 10px 2px; }
.side-rail .cart-item:last-child { border-bottom: 0; }
.side-rail .cart-item-name { font-weight: 800; font-size: var(--fs-md); }
.side-rail .cart-item-price { color: var(--accent-strong); font-weight: 700; }
.side-rail .qty-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 0; font-size: 26px; line-height: 1; font-weight: 500;
  background: #f4ede5; color: #3a2a1c;
}
.side-rail .qty-btn[data-qty-change="1"] { background: var(--accent-strong); color: var(--c-white); }
.side-rail .qty-btn:active { transform: scale(0.92); }
.side-rail .qty-value { min-width: 34px; text-align: center; font-weight: 800; font-size: 18px; }
.side-rail .summary-row strong { font-size: var(--fs-xl); font-weight: 800; color: var(--c-ink-warm); }
.side-rail .cart-head .soft-chip.dark { background: var(--accent-strong); color: var(--c-white); }
@media (orientation: portrait) and (min-width: 769px) {
  .side-rail { max-height: 38vh; }
  .side-rail .cart-items { max-height: 18vh; overflow-y: auto; }
}

/* ══ Design refresh 5: checkout sheet (payment choice, progress, done/failed) ═════ */
.checkout-overlay { align-items: end; background: rgba(30, 20, 10, 0.58); backdrop-filter: blur(4px); padding: 0; }
.checkout-modal {
  width: min(720px, 100%); border-radius: 32px 32px 0 0; padding: 34px 28px calc(30px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -16px 60px rgba(30, 20, 10, 0.35); animation: modpick-rise 0.24s ease-out;
}
@media (min-height: 700px) and (min-width: 900px) and (orientation: landscape) {
  .checkout-overlay { align-items: center; padding: 20px; }
  .checkout-modal { border-radius: 32px; }
}
.checkout-title { font-size: var(--fs-2xl); font-weight: 800; }
.checkout-hint { font-size: 17px; }
.checkout-amount { font-size: var(--fs-3xl); font-weight: 800; color: var(--accent-strong); }
.checkout-state { gap: 16px; }
.checkout-state .voice-result-icon { display: flex !important; width: 96px; height: 96px; font-size: 52px; }

/* Payment method: two big tiles with an icon (inline styles on the buttons are overridden on purpose) */
#checkoutStateMethod .checkout-actions { flex-direction: row !important; gap: 16px !important; margin-top: 18px !important; }
#checkoutChoosePosBtn, #checkoutChooseCashBtn {
  flex: 1 1 0 !important; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-radius: 24px !important; font-size: var(--fs-xl) !important; font-weight: 800 !important; box-shadow: var(--shadow) !important;
}
#checkoutChoosePosBtn { background: linear-gradient(135deg, var(--accent-strong), var(--accent-strong-2)) !important; color: var(--c-white) !important; border: 0 !important; }
#checkoutChooseCashBtn { background: var(--c-warm-50) !important; color: var(--c-primary-ink) !important; border: 2px solid rgba(var(--c-primary-strong-rgb), 0.45) !important; }
#checkoutChoosePosBtn::before { content: "\1F4B3"; font-size: 54px; line-height: 1; }
#checkoutChooseCashBtn::before { content: "\1F4B5"; font-size: 54px; line-height: 1; }
#checkoutChoosePosBtn:active, #checkoutChooseCashBtn:active { transform: scale(0.97); }
.checkout-actions .primary-cta, .checkout-actions .ghost-cta, #checkoutDoneBtn { min-height: var(--touch-primary); border-radius: var(--r-pill); font-size: var(--fs-lg); font-weight: 800; }
#checkoutMethodCancelBtn { min-height: var(--touch-comfort); font-size: 18px; font-weight: 700; color: var(--c-ink-soft); }
#checkoutDoneBtn { background: linear-gradient(135deg, var(--accent-strong), var(--accent-strong-2)); border: 0; color: var(--c-white); padding: 0 48px; }

/* ══ Accessibility: touch targets and low-reach mode ═════════════════════════ */
/* Every interactive control is at least --touch-min (48px) tall. */
.home-header-btn, .ai-silence-toggle { min-height: var(--touch-min); }
.ai-silence-toggle { padding-inline: 20px; }

/* Low reach: the interface moves into the lower ~60% of the screen so a seated or short customer can reach
   every control. The top part stays empty on purpose. The text-size options keep working: their height
   rules below divide by the zoom factor like the normal ones do. */
html[data-a11y-reach="low"] #kiosk-root {
  position: fixed; inset-inline: 0; bottom: 0; top: auto; height: 62dvh; max-height: 62dvh;
}
html[data-a11y-reach="low"][data-a11y-text="large"] #kiosk-root { height: calc(72dvh / 1.2); max-height: calc(72dvh / 1.2); }
html[data-a11y-reach="low"][data-a11y-text="xlarge"] #kiosk-root { height: calc(78dvh / 1.3); max-height: calc(78dvh / 1.3); }
/* big text + low reach: the cart/voice rail must not eat the whole reachable area, so drop the empty-cart placeholder (the total already says 0) */
html[data-a11y-reach="low"][data-a11y-text] .cart-empty { display: none; }
html[data-a11y-reach="low"] .attract-inner { margin-top: 34vh; }
html[data-a11y-reach="low"] .voice-suggest-modal { align-items: flex-end; }
html[data-a11y-reach="low"] .checkout-overlay { align-items: flex-end; padding: 0; }
html[data-a11y-reach="low"] .checkout-modal { border-radius: var(--r-xl) var(--r-xl) 0 0; }

/* ══ UX/a11y: focus ring, idle prompt, checkout summary, loading skeleton ═════ */
/* A visible focus ring for keyboard, switch and screen-reader users (touch users never see it). */
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: 6px; }

/* "Still there?" prompt */
.idle-warning {
  position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: var(--s-6);
  background: rgba(30, 20, 10, 0.72); backdrop-filter: blur(4px);
}
.idle-warning.hidden { display: none !important; }
.idle-warning-card {
  width: min(560px, 100%); text-align: center; background: var(--c-white); border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-6); box-shadow: var(--sh-2); animation: modpick-rise 0.22s ease-out;
}
.idle-warning-count {
  margin: 0 auto var(--s-3); width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  font-size: var(--fs-3xl); font-weight: 800; color: var(--c-white);
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
}
.idle-warning-card h2 { margin: 0 0 var(--s-2); font-size: var(--fs-2xl); font-weight: 800; color: var(--c-ink-warm); }
.idle-warning-card p { margin: 0 0 var(--s-6); font-size: var(--fs-lg); color: var(--c-ink-soft); line-height: 1.7; text-wrap: balance; }
.idle-warning-btn {
  min-height: var(--touch-primary); padding: 0 var(--s-10); border: 0; border-radius: var(--r-pill); cursor: pointer;
  font-size: var(--fs-xl); font-weight: 800; color: var(--c-white);
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2)); box-shadow: 0 8px 18px rgba(var(--c-primary-rgb), 0.32);
}

/* Order summary on the payment-method sheet */
.checkout-summary { width: 100%; text-align: right; background: var(--c-warm-50); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); }
.cs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.cs-list li { display: flex; gap: var(--s-3); align-items: baseline; font-size: var(--fs-lg); font-weight: 700; color: var(--c-ink-warm); }
.cs-qty { min-width: 2.2em; color: var(--c-primary); font-weight: 800; }
.cs-name small { display: block; font-size: var(--fs-sm); font-weight: 500; color: var(--c-ink-soft); }
.cs-more { margin-top: var(--s-2); color: var(--c-ink-soft); font-size: var(--fs-md); }
.cs-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--c-line-warm); font-size: var(--fs-xl); }
.cs-total strong { color: var(--c-primary); font-size: var(--fs-2xl); font-weight: 800; }

/* Loading skeleton while the menu has not rendered yet (the container is empty until then) */
.menu-sections:empty { min-height: 60vh; }
.menu-sections:empty::before, .menu-sections:empty::after {
  content: ""; display: block; border-radius: var(--r-lg);
  background: linear-gradient(90deg, var(--c-warm-100) 25%, var(--c-warm-50) 37%, var(--c-warm-100) 63%); background-size: 400% 100%;
  animation: sk-shimmer 1.4s ease infinite;
}
.menu-sections:empty::before { height: 250px; }
.menu-sections:empty::after { height: 420px; }
@keyframes sk-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ── Design refresh 6: voice suggestion modal ── */
.voice-suggest-modal-backdrop { background: rgba(28, 25, 23, 0.55); backdrop-filter: blur(3px); }
.voice-suggest-modal-card {
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
  padding: var(--s-5) var(--s-5) var(--s-4);
}
.voice-suggest-modal-kicker {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--c-primary-ink-2);
  background: var(--c-primary-soft);
  border-radius: var(--r-pill);
  padding: 4px 12px;
}
.voice-suggest-modal .voice-assistant-message { font-size: var(--fs-lg); }
.voice-suggest-modal .voice-suggestions-grid { gap: var(--s-3); }
.voice-suggest-modal .voice-suggestion-card {
  border-radius: var(--r-lg);
  border-color: var(--c-line-warm);
  min-height: var(--touch-comfort);
}
.voice-suggest-modal .voice-suggestion-card:hover,
.voice-suggest-modal .voice-suggestion-card.selected {
  border-color: var(--c-primary);
  background: var(--c-warm-50);
}
.voice-suggest-modal .voice-suggestion-card.selected { box-shadow: 0 0 0 3px var(--c-primary-soft); }
.voice-suggest-modal .voice-suggestion-img { width: 72px; height: 72px; border-radius: var(--r-md); }
.voice-suggest-modal .voice-suggestion-name { font-size: var(--fs-sm); }
.voice-suggest-modal .voice-suggestion-price { color: var(--c-primary-ink-2); font-weight: 800; }
.voice-suggest-modal .vsq-btn {
  width: var(--touch-min);
  height: var(--touch-min);
  background: var(--c-primary);
  font-size: 24px;
}
.voice-suggest-modal .vsq-num { font-size: var(--fs-md); min-width: 28px; }
.voice-suggest-modal .voice-suggest-retry-btn,
.voice-suggest-modal .voice-suggest-confirm-btn,
.voice-suggest-modal .voice-suggest-continue-btn {
  min-height: var(--touch-comfort);
  border-radius: var(--r-lg);
  font-size: var(--fs-md);
}
.voice-suggest-modal .voice-suggest-confirm-btn {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--sh-1);
}
.voice-suggest-modal .voice-suggest-retry-btn,
.voice-suggest-modal .voice-suggest-continue-btn {
  background: var(--c-warm-100);
  color: var(--c-primary-ink);
  border: 1.5px solid var(--c-line-warm);
}
.voice-suggest-modal .voice-suggest-confirm-btn:active,
.voice-suggest-modal .voice-suggest-retry-btn:active,
.voice-suggest-modal .voice-suggest-continue-btn:active { transform: scale(0.98); }
@media (max-width: 480px) {
  .voice-suggest-modal { align-items: flex-end; padding: 0; }
  .voice-suggest-modal-card {
    width: 100%;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    max-height: 88dvh;
  }
}
