:root {
  color-scheme: dark;
  --bg: #0f1115;
  --surface: #171a20;
  --surface-2: #1d2129;
  --surface-3: #252a33;
  --surface-soft: rgba(255,255,255,.055);
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.15);
  --text: #f7f8fa;
  --muted: #9ca3af;
  --muted-2: #747b86;
  --accent: #ff7a1a;
  --accent-rgb: 255,122,26;
  --accent-text: #111111;
  --danger: #ff5c66;
  --success: #35c98a;
  --warning: #ffb648;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-lg: 0 26px 70px rgba(0,0,0,.42);
  --safe-bottom: max(14px, env(safe-area-inset-bottom));
  --tg-viewport-height: 100dvh;
  --tg-viewport-stable-height: 100dvh;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: var(--tg-viewport-stable-height, 100dvh);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% -10%, rgba(var(--accent-rgb), .15), transparent 30%),
    linear-gradient(180deg, #11141a 0%, var(--bg) 32%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button, [role="button"] { touch-action: manipulation; }
svg { display: block; }

h1,h2,h3,p { margin: 0; }
h1 { font-size: 26px; line-height: 1.05; letter-spacing: -.6px; }
h2 { font-size: 22px; line-height: 1.15; letter-spacing: -.35px; }
h3 { font-size: 16px; line-height: 1.3; }

.app {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px calc(104px + var(--safe-bottom));
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.brand-mini { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cafe-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px var(--line);
}
.brand-copy { min-width: 0; }
.subtitle,.eyebrow {
  color: rgba(var(--accent-rgb), .92);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}
.header-note { margin-top: 3px; color: var(--muted); font-size: 13px; }
.icon-label-btn {
  min-width: 68px;
  height: 52px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text);
  display: grid;
  place-items: center;
  gap: 2px;
  cursor: pointer;
}
.icon-label-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-label-btn span { font-size: 10px; font-weight: 700; font-size: 14px; }
.icon-label-btn:active { transform: scale(.97); }

.shop-status-banner {
  margin: 3px 2px 10px;
  border: 0;
  /* Invisible circular crop normalizes the outer silhouette of source pizzas.
     There is no visible ring/border. */
  border-radius: 50%;
  background: transparent;
  overflow: visible;
}
.shop-status-banner[hidden] { display: none; }
.status-banner-inner { display: flex; gap: 9px; align-items: center; padding: 2px 0; min-width: 0; }
.status-dot { width: 8px; height: 8px; border-radius: 999px; flex: 0 0 8px; background: var(--warning); box-shadow: 0 0 0 4px rgba(255,182,72,.1); }
.shop-status-banner.open .status-dot { background: var(--success); box-shadow: 0 0 0 4px rgba(53,201,138,.1); }
.shop-status-banner.closed .status-dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(255,92,102,.1); }
.status-banner-line { margin: 0; min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-banner-line strong { color: var(--text); font-size: 12.5px; font-weight: 800; }
.status-separator { margin: 0 5px; color: var(--muted); }

.menu-toolbar { display: flex; align-items: end; justify-content: space-between; margin: 0 2px 12px; }
.menu-toolbar h2 { margin-top: 3px; font-size: 17px; }
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px 18px;
  padding: 0 16px 2px;
  scroll-padding-inline: 16px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 7px 13px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
  transition: .18s ease;
}
.tab-icon { width: 27px; height: 27px; object-fit: contain; border-radius: 999px; }
.tab.active { color: var(--text); border-color: rgba(var(--accent-rgb), .36); background: rgba(var(--accent-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .05); }
.tab:active { transform: scale(.97); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  column-gap: 12px;
  row-gap: 16px;
  align-items: start;
}

/* Product card: the visual card starts halfway behind the image. */
.card {
  position: relative;
  min-width: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  padding: 0 8px 8px;
  background: transparent;
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  isolation: isolate;
  animation: cardIn .28s ease both;
  animation-delay: calc(var(--i,0) * 28ms);
}
.card::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 46px;
  bottom: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.025));
  box-shadow: 0 8px 20px rgba(0,0,0,.13);
}
.card:active { transform: scale(.985); }

.food-icon {
  position: relative;
  z-index: 1;
  height: 92px;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  pointer-events: none;
}
.food-icon img {
  width: 90px;
  height: 90px;
  max-width: 92%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.28));
}

.card-content {
  position: relative;
  z-index: 1;
  padding: 4px 2px 7px;
  min-height: 49px;
}
.food-name {
  font-size: 13px;
  font-weight: 780;
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.food-price {
  margin-top: 3px;
  color: rgba(var(--accent-rgb), .98);
  font-size: 14px;
  font-weight: 850;
}
.menu-card-tags {
  position: absolute;
  z-index: 3;
  top: 49px;
  right: 9px;
  left: auto;
}
.menu-popular-tag {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15,17,21,.86);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .62px;
}
.ordering-closed { opacity: .62; }

.btn {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform .16s ease, opacity .16s ease, background .16s ease;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { cursor: not-allowed; opacity: .5; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 8px 22px rgba(var(--accent-rgb), .18); }
.btn-secondary { background: var(--surface-3); color: var(--text); border: 1px solid var(--line); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-disabled { background: var(--surface-3); color: var(--muted); }
.btn-full { width: 100%; }
.btn-large { min-height: 50px; font-size: 15px; border-radius: 15px; }
.card .btn { position: relative; z-index: 1; width: 100%; min-height: 35px; border-radius: 11px; padding: 7px 9px; font-size: 11.5px; }

.cart-bar {
  position: fixed;
  z-index: 30;
  left: max(12px, calc((100vw - 760px)/2 + 12px));
  right: max(12px, calc((100vw - 760px)/2 + 12px));
  bottom: var(--safe-bottom);
  min-height: 70px;
  padding: 9px 9px 9px 12px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  background: rgba(25,28,34,.92);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-bar-copy { display: flex; align-items: center; min-width: 0; gap: 10px; }
.cart-bag { width: 34px; height: 34px; border-radius: 12px; background: rgba(var(--accent-rgb), .12); color: var(--accent); display: grid; place-items: center; }
.cart-bag svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-bar-copy strong { display: block; font-size: 13px; }
.cart-bar-copy #cartTotal { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; }
.cart-open-btn { min-width: 122px; }
.cart-open-btn svg { width: 17px; }

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding-top: max(24px, env(safe-area-inset-top));
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.modal.open { display: flex; animation: fadeIn .18s ease both; }
.sheet {
  width: min(720px, 100%);
  max-height: min(92dvh, 920px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: #15181e;
  box-shadow: var(--shadow-lg);
  animation: sheetUp .26s cubic-bezier(.2,.8,.2,1) both;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet-flex { display: flex; flex-direction: column; }
.sheet-handle { width: 34px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.18); margin: 7px auto 2px; }
.sheet-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 15px 7px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin-top: 2px; }
.sheet-close { width: 34px; height: 34px; flex: 0 0 34px; padding: 0; border: 1px solid var(--line); border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.sheet-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sheet-content { min-height: 0; overflow-y: auto; padding: 13px 15px 19px; overscroll-behavior: contain; }
.sheet-footer { flex: 0 0 auto; padding: 9px 15px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(21,24,30,.95); backdrop-filter: blur(18px); }
.sheet-footer > .btn-primary { width: 100%; }

.total-row { margin-top: 11px; padding: 12px 2px 2px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.total-row span { color: var(--muted); }
.total-row strong { font-size: 18px; }
.cart-receipt { display: grid; gap: 10px; }
.cart-row { border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); padding: 10px 11px; }
.cart-receipt-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; }
.cart-item-info { min-width: 0; }
.cart-item-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.cart-item-top strong { font-size: 14px; }
.cart-item-top span { color: var(--text); font-weight: 800; white-space: nowrap; }
.cart-item-actions { display: grid; justify-items: end; align-content: center; gap: 9px; }
.cart-item-price { color: var(--text); font-size: 14px; font-weight: 800; line-height: 1.2; white-space: nowrap; text-align: right; }
.small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.cart-item-options, .cart-item-calc { display: block; margin-top: 4px; }
.cart-item-calc { color: var(--muted-2); }
.qty { display: grid; grid-template-columns: 34px 22px 34px; align-items: center; justify-items: center; gap: 4px; }
.qty .btn { width: 34px; min-height: 34px; height: 34px; padding: 0; border-radius: 11px; font-size: 18px; }
.qty strong { font-size: 13px; }

.checkout-section { padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.checkout-section + .checkout-section { margin-top: 9px; }
.checkout-section-head { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; }
.step-badge { width: 25px; height: 25px; flex: 0 0 25px; border-radius: 9px; display: grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb), .11); font-size: 11px; font-weight: 900; }
.checkout-section-title { font-size: 15px; }
.checkout-section-note { margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.order-type-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.order-type-btn { min-height: 64px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; font-size: 12px; font-weight: 750; cursor: pointer; }
.order-type-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.order-type-btn.active { color: var(--text); border-color: rgba(var(--accent-rgb), .42); background: rgba(var(--accent-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .06); }
.preferred-time-wrap { margin-top: 14px; }
.field-grid { display: grid; gap: 12px; }
.field-group + .field-group { margin-top: 12px; }
.field-group label, .preferred-time-wrap > label, .section-label-row label, .note-box > label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 750; color: #d9dde3; }
.optional { color: var(--muted-2); font-weight: 600; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--text);
  padding: 12px 13px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input { min-height: 46px; }
textarea { min-height: 90px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6f7782; }
input:focus, textarea:focus { border-color: rgba(var(--accent-rgb), .5); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .09); background: #21252d; }
.time-input-shell { position: relative; display: flex; align-items: center; }
.time-input-shell svg { position: absolute; left: 12px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.time-input-shell input { padding-left: 39px; color-scheme: dark; }
.field-hint { margin-top: 5px; color: var(--muted-2); font-size: 10.5px; }
.delivery-packing-notice { margin-top: 10px; padding: 10px 11px; border: 1px solid rgba(var(--accent-rgb), .24); border-radius: 14px; background: rgba(var(--accent-rgb), .07); display: flex; align-items: flex-start; gap: 9px; }
.delivery-packing-notice svg { width: 19px; height: 19px; flex: 0 0 19px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.delivery-packing-notice strong { display: block; font-size: 12px; color: var(--text); }
.delivery-packing-notice p { margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.delivery-checkout-summary { padding: 10px 11px; margin-bottom: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); gap: 6px; }
.delivery-checkout-summary > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 11.5px; }
.delivery-checkout-summary > div span { color: var(--muted); }
.delivery-checkout-summary > div strong { font-size: 12px; }
.delivery-checkout-summary .pending-charge { color: var(--accent); }
.delivery-checkout-summary .checkout-current-total { padding-top: 6px; margin-top: 1px; border-top: 1px solid var(--line); }
.delivery-checkout-summary .checkout-current-total strong { font-size: 14px; color: var(--text); }
.delivery-checkout-summary p { margin-top: 2px; color: var(--muted-2); font-size: 10px; line-height: 1.4; }
.checkout-footer { display: grid; gap: 4px; }


/* Telegram iOS keyboard handling.
   Keep focused fields visible and remove footer controls while the software
   keyboard is using the lower part of the visual viewport. */
.modal.keyboard-open {
  inset: auto 0 auto 0;
  top: var(--keyboard-offset-top, 0px);
  height: var(--keyboard-visible-height, 100dvh);
  padding-top: 0;
  align-items: flex-end;
}
.modal.keyboard-open .sheet {
  width: min(720px, 100%);
  height: 100%;
  max-height: 100%;
  border-radius: 22px 22px 0 0;
  padding-bottom: 0;
}
.modal.keyboard-open .sheet-content {
  scroll-padding-top: 18px;
  scroll-padding-bottom: 120px;
  padding-bottom: 120px;
}
.modal.keyboard-open .sheet-footer {
  display: none;
}
.modal .sheet-content input,
.modal .sheet-content textarea {
  scroll-margin-top: 20px;
  scroll-margin-bottom: 120px;
}

/* iOS/WKWebView zooms form fields smaller than 16px when focused. This causes
   the apparent jump/typing zoom inside Telegram Mini Apps. */
@media (hover: none) and (pointer: coarse) {
  .modal input,
  .modal textarea {
    font-size: 16px;
  }
}

.customize-section + .customize-section, .customize-section + .note-box { margin-top: 20px; }
.section-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.section-label-row label { margin: 0; }
.section-label-row span { color: var(--muted-2); font-size: 10.5px; }
.spicy-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.spicy-btn { min-width: 0; min-height: 40px; padding: 0 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 11px; line-height: 1.1; white-space: nowrap; cursor: pointer; }
.spicy-btn.active { color: var(--text); border-color: rgba(var(--accent-rgb), .42); background: rgba(var(--accent-rgb), .1); }
.option-group { display: grid; gap: 8px; }
.option-card { min-height: 48px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); display: flex; align-items: center; gap: 12px; cursor: pointer; }
.option-text { min-width: 0; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.option-title { font-size: 13px; font-weight: 750; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card:has(input:checked) {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), .42);
  background: rgba(var(--accent-rgb), .1);
}
.option-card:has(input:checked) .option-title { color: var(--text); }
.option-card:has(input:checked) .small { color: var(--text); }

.custom-check { width: 21px; height: 21px; flex: 0 0 21px; border: 1.5px solid var(--line-strong); border-radius: 7px; display: grid; place-items: center; }
.option-card input:checked + .custom-check { border-color: var(--accent); background: var(--accent); }
.option-card input:checked + .custom-check::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg) translateY(-1px); }

.orders-sheet { display: flex; flex-direction: column; }
.orders-scroll { min-height: 0; overflow-y: auto; padding: 11px 15px calc(18px + env(safe-area-inset-bottom)); }
.order-summary-card { border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); padding: 11px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; cursor: pointer; }
.order-summary-card + .order-summary-card { margin-top: 7px; }
.order-summary-topline { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.order-summary-topline strong { font-size: 14px; }
.order-summary-total { text-align: right; }
.order-summary-total strong { display: block; font-size: 14px; }
.order-summary-total .small { margin-top: 3px; display: block; color: var(--accent); font-weight: 700; }
.order-status-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 999px; background: rgba(255,182,72,.12); color: #ffc363; font-size: 10px; font-weight: 850; white-space: nowrap; }
.status-completed { background: rgba(53,201,138,.12); color: #63dda8; }
.status-cancelled { background: rgba(255,92,102,.12); color: #ff858c; }
.status-ready { background: rgba(53,201,138,.12); color: #63dda8; }
.status-preparing { background: rgba(164,126,255,.13); color: #baa1ff; }
.status-accepted { background: rgba(91,160,255,.13); color: #8abaff; }
.order-back-btn { min-height: 38px; padding: 6px 2px; margin-bottom: 8px; border: 0; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.order-detail-card { padding-bottom: 10px; }
.order-top-row { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.order-label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .8px; font-weight: 800; }
.order-top-row h2 { margin-top: 2px; font-size: 24px; }
.order-total-card { margin-top: 11px; padding: 13px; border-radius: 15px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .07)); border: 1px solid rgba(var(--accent-rgb), .2); display: flex; justify-content: space-between; align-items: center; }
.order-total-card span { color: var(--muted); font-size: 12px; }
.order-total-card strong { font-size: 20px; }
.order-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 8px; }
.order-info-box { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.order-info-box.full { margin-top: 8px; }
.order-info-box span { display: block; color: var(--muted); font-size: 10.5px; }
.order-info-box strong { display: block; margin-top: 3px; font-size: 12.5px; overflow-wrap: anywhere; }
.order-timeline { display: flex; justify-content: space-between; gap: 0; margin: 17px 0 16px; position: relative; }
.timeline-step { flex: 1; min-width: 0; text-align: center; position: relative; color: var(--muted-2); }
.timeline-step::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--surface-3); }
.timeline-step:first-child::before { left: 50%; }
.timeline-step:last-child::before { right: 50%; }
.timeline-step span { position: relative; z-index: 1; width: 14px; height: 14px; margin: 0 auto 6px; border-radius: 999px; border: 2px solid var(--surface-3); background: #15181e; display: block; }
.timeline-step.done::before { background: rgba(var(--accent-rgb), .55); }
.timeline-step.done span { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .08); }
.timeline-step.current span { box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .12); }
.timeline-step small { font-size: 8.5px; white-space: nowrap; }
.timeline-step.done small { color: #d8dce2; }
.order-section-title { margin: 2px 0 9px; }
.saved-order-items { display: grid; gap: 8px; }
.saved-order-item { padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.saved-order-item > * { display: block; }
.saved-order-item strong { font-size: 13px; }
.saved-order-item .small { margin-top: 3px; }
.order-action-grid { display: grid; gap: 7px; margin-top: 12px; }
.cancel-order-btn { margin-top: 8px; background: rgba(255,92,102,.08); color: #ff858c; border-color: rgba(255,92,102,.18); }
.cancel-note { text-align: center; margin-top: 10px; }

.success-sheet { padding: 22px 15px calc(13px + env(safe-area-inset-bottom)); text-align: center; }
.success-icon-wrap { display: grid; place-items: center; margin-bottom: 14px; }
.success-icon { width: 56px; height: 56px; border-radius: 19px; display: grid; place-items: center; background: rgba(53,201,138,.12); color: #58dba4; border: 1px solid rgba(53,201,138,.18); }
.success-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.success-eyebrow { display: block; margin-bottom: 4px; color: #58dba4; }
.success-text { max-width: 460px; margin: 8px auto 18px; color: var(--muted); font-size: 13px; }
.success-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.success-card { padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); text-align: left; }
.success-card span { display: block; color: var(--muted); font-size: 10.5px; }
.success-card strong { display: block; margin-top: 4px; font-size: 15px; }
.success-note-box { margin-top: 9px; padding: 11px 12px; border-radius: 13px; background: var(--surface-soft); color: var(--muted); font-size: 11.5px; }
.success-actions { margin: 18px -18px -16px; display: grid; gap: 4px; }

.empty { grid-column: 1/-1; color: var(--muted); text-align: center; padding: 30px 10px; }
.empty-state { padding: 34px 12px; text-align: center; }
.empty-state-badge { display: inline-flex; min-height: 24px; align-items: center; padding: 4px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .6px; text-transform: uppercase; }
.empty-state h3 { margin-top: 9px; font-size: 17px; }
.empty-state p { max-width: 330px; margin: 5px auto 14px; color: var(--muted); font-size: 12px; }
.empty-state .btn { max-width: 260px; margin: 0 auto; }

.skeleton-card, .order-summary-skeleton { pointer-events: none; }
.skeleton-circle, .skeleton-line, .skeleton-button { background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.1), rgba(255,255,255,.05)); background-size: 220% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton-line { height: 10px; border-radius: 999px; margin-top: 8px; }
.skeleton-line-title { width: 70%; }
.skeleton-line-price { width: 42%; }
.skeleton-line-text { width: 82%; }
.skeleton-line.short { width: 52%; }
.skeleton-line.tiny { width: 34%; }
.skeleton-button { height: 39px; border-radius: 12px; }
.skeleton-block-right { text-align: right; }

body.theme-light {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --surface-3: #eceef1;
  --surface-soft: rgba(0,0,0,.025);
  --line: rgba(0,0,0,.08);
  --line-strong: rgba(0,0,0,.14);
  --text: #14171c;
  --muted: #686f79;
  --muted-2: #8a919b;
  background: linear-gradient(180deg, rgba(var(--accent-rgb),.08), transparent 230px), var(--bg);
}
body.theme-light .sheet { background: #fff; }
body.theme-light .sheet-footer { background: rgba(255,255,255,.94); }
body.theme-light .timeline-step span { background: #fff; }
body.theme-light .cart-bar { background: rgba(255,255,255,.92); }
body.theme-light .menu-popular-tag { background: rgba(255,255,255,.88); }

@media (min-width: 560px) {
  .app { padding-left: 20px; padding-right: 20px; }
  .menu-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
  .tabs { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .field-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field-grid .field-group + .field-group { margin-top: 0; }
}

@media (max-width: 360px) {
  .app { padding-left: 12px; padding-right: 12px; }
  .header { gap: 8px; }
  .cafe-logo { width: 48px; height: 48px; flex-basis: 48px; }
  .icon-label-btn { min-width: 60px; }
  .food-icon { height: 96px; }
  .food-icon img { width: 94px; height: 94px; }
  .card { padding: 0 9px 9px; }
  .cart-bar { left: 8px; right: 8px; }
  .cart-open-btn { min-width: 108px; }
  .timeline-step small { font-size: 7.6px; }
}

@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(22px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
@keyframes shimmer { 0% { background-position: 220% 0; } 100% { background-position: -220% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.card .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.order-back-btn { display: inline-flex; align-items: center; gap: 4px; }
.order-back-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   V26 FINAL MENU CARD LAYOUT
   Rebuilt from the actual food-main 5 project.
   No absolute positioning for product copy or CTA.
   ========================================================= */

/* Compact category row */
.tabs {
  gap: 6px;
  margin-bottom: 0;
}
.tab {
  flex: 0 0 auto;
  min-height: 34px;
  height: 34px;
  padding: 0 10px;
  gap: 6px;
  font-size: 13px;
  border-radius: 999px;
  white-space: nowrap;
}
.tab-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

/* Product grid — canonical layout.
   Keep this as the single source of truth for menu cards. */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 26px;
  align-items: start;
  margin-top: 28px;
  padding-bottom: calc(138px + env(safe-area-inset-bottom));
}

/* v234.15.13 keeps category panels mounted. display:contents preserves the grid,
   while these selectors target the real DOM path instead of the old direct-card path. */
.menu-category-panel { display: contents; }
.menu-category-panel[hidden] { display: none !important; }

.menu-grid > .menu-category-panel > .card {
  position: relative;
  min-width: 0;
  height: 170px;
  min-height: 170px;
  box-sizing: border-box;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 66px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.025));
  box-shadow: 0 8px 20px rgba(0,0,0,.13);
  isolation: isolate;
}
.menu-grid > .menu-category-panel > .card.is-preorder {
  height: 170px;
  min-height: 170px;
}
.menu-grid > .menu-category-panel > .card::before { display: none; }

.menu-grid > .menu-category-panel > .card .food-icon {
  position: absolute;
  z-index: 3;
  top: -27px;
  left: 50%;
  width: 90px;
  height: 90px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  overflow: visible;
  pointer-events: none;
}
.menu-grid > .menu-category-panel > .card .food-icon img {
  display: block;
  width: 90px;
  height: 90px;
  max-width: none;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.28));
}

.menu-grid > .menu-category-panel > .card .menu-card-tags {
  position: absolute;
  z-index: 4;
  top: 8px;
  right: 8px;
}
.menu-grid > .menu-category-panel > .card .menu-popular-tag {
  min-height: 18px;
  padding: 2px 7px;
  font-size: 7.5px;
  letter-spacing: .6px;
}

.menu-grid > .menu-category-panel > .card .card-footer-stack {
  width: 100%;
  min-width: 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.menu-grid > .menu-category-panel > .card .card-content {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 2px;
  box-sizing: border-box;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.menu-grid > .menu-category-panel > .card.is-preorder .card-content {
  height: 62px;
}
.menu-grid > .menu-category-panel > .card .food-name {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0 2px;
  box-sizing: border-box;
  display: block;
  text-align: center;
  overflow: hidden;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.18;
  overflow-wrap: normal;
  word-break: normal;
}
.menu-grid > .menu-category-panel > .card .food-price {
  width: 100%;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  box-sizing: border-box;
  display: block;
  text-align: center;
  color: rgba(var(--accent-rgb), .98);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.1;
}
.menu-grid > .menu-category-panel > .card .schedule-available-note,
.menu-grid > .menu-category-panel > .card .preorder-card-note {
  width: 100%;
  margin: 4px 0 0;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.menu-grid > .menu-category-panel > .card .card-footer-stack > .btn {
  position: static;
  z-index: 2;
  width: 100%;
  min-height: 36px;
  height: 36px;
  margin: 8px 0 0;
  padding: 7px 8px;
  border-radius: 11px;
  font-size: 11.5px;
  flex: 0 0 auto;
}
.menu-grid > .menu-category-panel > .card.is-preorder .card-footer-stack > .btn {
  margin-top: 4px;
}

@media (max-width: 360px) {
  .menu-grid { column-gap: 7px; row-gap: 24px; margin-top: 27px; }
  .menu-grid > .menu-category-panel > .card,
  .menu-grid > .menu-category-panel > .card.is-preorder { height: 170px; min-height: 170px; padding-top: 64px; padding-bottom: 10px; }
  .menu-grid > .menu-category-panel > .card .food-icon,
  .menu-grid > .menu-category-panel > .card .food-icon img { width: 86px; height: 86px; }
  .menu-grid > .menu-category-panel > .card .food-icon { top: -26px; }
}

@media (min-width: 560px) {
  .menu-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}



/* Update 30: stronger light-theme text contrast */
body.theme-light .field-group label,
body.theme-light .preferred-time-wrap > label,
body.theme-light .section-label-row label,
body.theme-light .note-box > label {
  color: #374151;
}
body.theme-light .section-label-row span,
body.theme-light .optional,
body.theme-light .field-hint {
  color: #6b7280;
}
body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
  color: #7b8491;
}
body.theme-light .product-description {
  color: #374151;
  background: #f4f5f7;
}

/* Update 35: in-app pizza half picker (replaces native browser select) */
.pizza-half-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pizza-half-picker { width: 100%; min-height: 58px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.pizza-half-copy { min-width: 0; display: grid; gap: 3px; }
.pizza-half-copy small { color: var(--muted-2); font-size: 11px; font-weight: 700; }
.pizza-half-copy strong { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.25; font-size: 14px; }
.pizza-half-price { color: var(--muted); font-size: 10.5px; font-weight: 750; line-height: 1.2; }
.pizza-half-picker > svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.custom-pizza-summary { margin-top: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--surface-2) 82%, transparent); display: grid; gap: 5px; }
.custom-pizza-summary[hidden] { display: none; }
.custom-pizza-summary > div:first-child { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.custom-pizza-summary-label { color: var(--muted-2); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; flex: 0 0 auto; }
.custom-pizza-summary strong { color: var(--text); font-size: 12px; line-height: 1.35; }
.custom-pizza-price-line { color: var(--muted); font-size: 10.5px; line-height: 1.35; }
.custom-pizza-price-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 5px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.custom-pizza-price-total strong { color: var(--accent); font-size: 13px; }
body.theme-light .custom-pizza-summary-label, body.theme-light .custom-pizza-price-line, body.theme-light .custom-pizza-price-total { color: #6b7280; }
.pizza-choice-sheet[hidden] { display: none !important; }
.pizza-choice-sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; }
.pizza-choice-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.48); }
.pizza-choice-panel { position: relative; width: 100%; max-height: min(58vh, 430px); padding: 6px 14px calc(12px + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 24px 24px 0 0; background: var(--surface); box-shadow: 0 -16px 44px rgba(0,0,0,.24); overflow: auto; }
.pizza-choice-handle { width: 40px; height: 4px; margin: 0 auto 9px; border-radius: 99px; background: var(--line); }
.pizza-choice-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.pizza-choice-head small { color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.pizza-choice-head h3 { margin: 2px 0 0; font-size: 20px; }
.pizza-choice-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; }
.pizza-choice-close svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pizza-choice-list { display: grid; gap: 7px; }
.pizza-choice-option { width: 100%; min-height: 46px; padding: 8px 10px 8px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; font-weight: 750; }
.pizza-choice-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.pizza-choice-check { width: 24px; height: 24px; border: 2px solid var(--line); border-radius: 9px; display: grid; place-items: center; }
.pizza-choice-option.selected .pizza-choice-check { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.pizza-choice-check svg { display: none; width: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pizza-choice-empty { padding: 20px 12px; text-align: center; color: var(--muted); }
body.theme-light .pizza-half-copy small { color: #6b7280; }

.pizza-choice-option.selected .pizza-choice-check svg { display: block; }

/* Update 38: compact product customization density for Telegram Mini Apps */
.option-sheet .sheet-head { min-height: 52px; padding: 6px 15px 6px; }
.option-sheet .sheet-head h2 { font-size: clamp(22px, 5.4vw, 24px); line-height: 1.08; font-weight: 750; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.option-sheet .sheet-head .eyebrow { font-size: 9px; letter-spacing: .16em; }
.option-sheet .sheet-close { width: 32px; height: 32px; flex-basis: 32px; border-radius: 12px; }
.option-sheet .sheet-content { padding: 11px 15px 15px; }
.option-sheet .product-description { padding: 10px 12px; font-size: 12.5px; line-height: 1.45; border-radius: 12px; }
.option-sheet .customize-section + .customize-section,
.option-sheet .customize-section + .note-box { margin-top: 15px; }
.option-sheet .section-label-row { margin-bottom: 6px; }
.option-sheet .section-label-row label { font-size: 13px; }
.option-sheet .section-label-row span { font-size: 10px; }
.option-sheet .option-group { gap: 6px; }
.option-sheet .option-card { min-height: 44px; padding: 7px 10px; border-radius: 13px; }
.option-sheet .option-title { font-size: 12.5px; }
.option-sheet .custom-check { width: 20px; height: 20px; flex-basis: 20px; border-radius: 7px; }
.option-sheet .spicy-btn { min-height: 38px; font-size: 10.5px; border-radius: 11px; }
.option-sheet .pizza-half-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.option-sheet .pizza-half-picker { min-height: 50px; padding: 8px 12px; border-radius: 13px; }
.option-sheet .pizza-half-copy { gap: 1px; }
.option-sheet .pizza-half-copy small { font-size: 9.5px; }
.option-sheet .pizza-half-copy strong { font-size: 13px; }
.option-sheet .pizza-half-picker > svg { width: 18px; height: 18px; }
.option-sheet .note-box textarea { min-height: 86px; }
.option-sheet .sheet-footer { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }

/* Pizza half picker is intentionally denser than the parent customization sheet. */
.pizza-choice-panel { max-height: min(62vh, 460px); padding: 5px 12px calc(10px + env(safe-area-inset-bottom)); border-radius: 21px 21px 0 0; }
.pizza-choice-handle { width: 36px; height: 4px; margin-bottom: 6px; }
.pizza-choice-head { margin-bottom: 7px; }
.pizza-choice-head small { font-size: 9px; }
.pizza-choice-head h3 { font-size: 18px; line-height: 1.1; }
.pizza-choice-close { width: 31px; height: 31px; border-radius: 11px; }
.pizza-choice-close svg { width: 18px; }
.pizza-choice-list { gap: 5px; }
.pizza-choice-option { min-height: 42px; padding: 6px 8px 6px 11px; border-radius: 12px; font-size: 13px; }
.pizza-choice-check { width: 21px; height: 21px; border-radius: 7px; }
.pizza-choice-check svg { width: 12px; }


/* Update 43: compact order history detail layout */
.orders-scroll.order-detail-mode { overflow: hidden; padding-bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.order-detail-mode .order-back-btn { flex: 0 0 auto; min-height: 32px; margin-bottom: 4px; padding: 3px 2px; font-size: 12px; }
.order-detail-mode .order-detail-card { min-height: 0; flex: 1; display: flex; flex-direction: column; padding-bottom: 0; }
.order-detail-summary { flex: 0 0 auto; }
.order-detail-mode .order-top-row h2 { font-size: 21px; }
.order-detail-mode .order-total-card { margin-top: 7px; padding: 10px 12px; }
.order-detail-mode .order-total-card strong { font-size: 18px; }
.order-detail-mode .order-info-grid { margin-top: 6px; gap: 6px; }
.order-detail-mode .order-info-box { padding: 8px 9px; }
.order-detail-mode .order-timeline { margin: 12px 0 10px; }
.order-detail-mode .timeline-step small { font-size: 8px; }
.order-items-panel { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.order-detail-mode .order-section-title { flex: 0 0 auto; margin: 0 0 6px; font-size: 17px; }
.order-detail-mode .saved-order-items { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; gap: 6px; padding-right: 2px; }
.order-detail-mode .saved-order-item { padding: 8px 9px; border-radius: 12px; }
.saved-order-item-head { display: flex !important; align-items: baseline; justify-content: space-between; gap: 10px; }
.saved-order-item-head > strong:first-child { min-width: 0; }
.saved-order-line-total { flex: 0 0 auto; color: var(--text); font-size: 13px !important; }
.saved-order-halves { margin-top: 3px; color: var(--text); font-size: 11.5px; font-weight: 750; }
.saved-order-details { color: var(--muted); }
.saved-order-math { color: var(--muted); font-weight: 700; }
.order-detail-actions { flex: 0 0 auto; padding-top: 7px; background: var(--surface); }
.order-detail-mode .order-action-grid { margin-top: 0; gap: 5px; }
.order-detail-mode .order-action-grid .btn, .order-detail-mode .cancel-order-btn { min-height: 42px; }
.order-detail-mode .cancel-order-btn { margin-top: 5px; }
/* Customer UI v2 intentionally keeps this file as a compatibility layer.
   New customer styles live in base.css; avoid accumulating versioned overrides here. */

/* V129 — True compact checkout using the actual checkout selectors */
@media (max-width: 700px) {
  #checkoutModal .checkout-sheet {
    width: min(96vw, 460px) !important;
    max-width: 460px !important;
    max-height: 88dvh !important;
    border-radius: 22px 22px 0 0 !important;
  }

  #checkoutModal .sheet-handle {
    width: 30px !important;
    height: 3px !important;
    margin: 6px auto 1px !important;
  }

  #checkoutModal .sheet-head {
    min-height: 48px !important;
    padding: 6px 12px 6px !important;
  }

  #checkoutModal .sheet-head h2 {
    font-size: 20px !important;
    line-height: 1.05 !important;
    margin-top: 1px !important;
  }

  #checkoutModal .eyebrow {
    font-size: 9px !important;
    letter-spacing: .17em !important;
  }

  #checkoutModal .sheet-close {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
    border-radius: 11px !important;
  }

  #checkoutModal .sheet-close svg {
    width: 15px !important;
    height: 15px !important;
  }

  #checkoutModal .sheet-content {
    padding: 9px 10px 12px !important;
  }

  #checkoutModal .checkout-section {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  #checkoutModal .checkout-section + .checkout-section {
    margin-top: 7px !important;
  }

  #checkoutModal .checkout-section-head {
    gap: 7px !important;
    margin-bottom: 8px !important;
  }

  #checkoutModal .step-badge {
    width: 22px !important;
    height: 22px !important;
    flex-basis: 22px !important;
    border-radius: 7px !important;
    font-size: 10px !important;
  }

  #checkoutModal .checkout-section-title {
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  #checkoutModal .checkout-section-note {
    margin-top: 1px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  #checkoutModal .order-type-options {
    gap: 6px !important;
  }

  #checkoutModal .order-type-btn {
    min-height: 54px !important;
    padding: 6px 4px !important;
    border-radius: 12px !important;
    gap: 4px !important;
    font-size: 10.5px !important;
  }

  #checkoutModal .order-type-btn svg {
    width: 17px !important;
    height: 17px !important;
  }

  #checkoutModal .delivery-packing-notice {
    margin-top: 7px !important;
    padding: 7px 8px !important;
    border-radius: 11px !important;
    gap: 7px !important;
  }

  #checkoutModal .delivery-packing-notice svg {
    width: 16px !important;
    height: 16px !important;
    flex-basis: 16px !important;
  }

  #checkoutModal .delivery-packing-notice strong {
    font-size: 10.5px !important;
  }

  #checkoutModal .delivery-packing-notice p {
    margin-top: 2px !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
  }

  #checkoutModal .preferred-time-wrap {
    margin-top: 9px !important;
  }

  #checkoutModal .field-group + .field-group {
    margin-top: 8px !important;
  }

  #checkoutModal .field-grid {
    gap: 8px !important;
  }

  #checkoutModal .field-group label,
  #checkoutModal .preferred-time-wrap > label {
    margin-bottom: 4px !important;
    font-size: 10.5px !important;
  }

  #checkoutModal input {
    min-height: 40px !important;
    height: 40px !important;
    padding: 8px 10px !important;
    border-radius: 11px !important;
    font-size: 16px !important; /* prevent iOS auto-zoom */
  }

  #checkoutModal textarea {
    min-height: 68px !important;
    padding: 9px 10px !important;
    border-radius: 11px !important;
    font-size: 16px !important; /* prevent iOS auto-zoom */
    line-height: 1.25 !important;
  }

  #checkoutModal #specialRequest {
    min-height: 62px !important;
  }

  #checkoutModal .time-input-shell svg {
    left: 10px !important;
    width: 15px !important;
    height: 15px !important;
  }

  #checkoutModal .time-input-shell input {
    padding-left: 31px !important;
  }

  #checkoutModal .field-hint {
    margin-top: 3px !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
  }

  #checkoutModal .sheet-footer.checkout-footer {
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom)) !important;
    gap: 3px !important;
  }

  /* Large price breakdown is removed from the sticky area on mobile.
     The checkout button remains immediately visible. */
  #checkoutModal .checkout-footer .delivery-checkout-summary {
    display: none !important;
  }

  #checkoutModal #placeOrderBtn {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 14px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
  }

  #checkoutModal #backToCartBtn {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }

  #checkoutModal #backToCartBtn svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Preserve the V126 keyboard behavior. */
  #checkoutModal.keyboard-open .checkout-sheet {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }

  #checkoutModal.keyboard-open .sheet-content {
    padding-bottom: 96px !important;
    scroll-padding-bottom: 96px !important;
  }

  #checkoutModal.keyboard-open .checkout-footer {
    display: none !important;
  }
}

@media (max-width: 390px) {
  #checkoutModal .checkout-sheet {
    width: 98vw !important;
  }

  #checkoutModal .sheet-content {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  #checkoutModal .checkout-section {
    padding: 9px !important;
  }
}

/* V130 — in-app notices/dialogs */
.app-notice-host{position:fixed;z-index:5000;top:calc(14px + env(safe-area-inset-top));left:50%;width:min(92vw,420px);transform:translateX(-50%);display:grid;gap:8px;pointer-events:none}.app-notice{display:flex;align-items:center;gap:10px;padding:11px 12px 11px 14px;border:1px solid var(--border,rgba(255,255,255,.12));border-radius:14px;background:rgba(23,26,32,.96);box-shadow:0 16px 40px rgba(0,0,0,.28);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);opacity:0;transform:translateY(-8px) scale(.98);transition:opacity .18s ease,transform .18s ease;pointer-events:auto}.app-notice.is-visible{opacity:1;transform:none}.app-notice.is-leaving{opacity:0;transform:translateY(-6px) scale(.98)}.app-notice-text{flex:1;font-size:13px;line-height:1.35;font-weight:650}.app-notice-success{border-color:rgba(63,211,137,.34)}.app-notice-warning{border-color:rgba(245,158,11,.38)}.app-notice-error{border-color:rgba(248,113,113,.4)}.app-notice-close{width:28px;height:28px;border:0;border-radius:9px;background:rgba(255,255,255,.06);color:inherit;display:grid;place-items:center}.app-notice-close svg{width:15px;height:15px;stroke-width:2}.app-dialog-overlay{position:fixed;z-index:5100;inset:0;padding:18px;display:grid;place-items:center;background:rgba(0,0,0,.58);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}.app-dialog-overlay[hidden]{display:none!important}.app-dialog{width:min(100%,360px);padding:18px;border:1px solid var(--border,rgba(255,255,255,.12));border-radius:20px;background:var(--surface,#171a20);box-shadow:0 24px 70px rgba(0,0,0,.42)}.app-dialog-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:var(--accent,#f47b2a);background:rgba(var(--accent-rgb,244,123,42),.13);margin-bottom:12px}.app-dialog-icon svg{width:20px;height:20px;stroke-width:1.8}.app-dialog-copy h3{margin:0;font-size:18px}.app-dialog-copy p{margin:7px 0 0;color:var(--muted,#9ca3af);font-size:13px;line-height:1.45}.app-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px}.app-dialog-btn{min-height:44px;border-radius:12px;font:inherit;font-weight:750;border:1px solid var(--border,rgba(255,255,255,.12))}.app-dialog-cancel{background:transparent;color:inherit}.app-dialog-confirm{background:var(--accent,#f47b2a);color:var(--accent-text,#fff);border-color:transparent}.app-dialog[data-tone="danger"] .app-dialog-confirm{background:#d64d4d;color:#fff}body.app-dialog-open{overflow:hidden}


/* V144 — Telegram Mini App contained menu scrolling
   Categories stay fixed at the top of the menu area.
   Only the product list scrolls vertically beneath them. */
@media (max-width: 760px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body.modal-open {
    overflow: hidden;
  }

  .app {
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 0;
    overflow: hidden;
  }

  .header,
  .shop-status-banner,
  .menu-toolbar {
    flex: 0 0 auto;
  }

  .miniapp-menu-scroll {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0 -16px;
    overflow: hidden;
  }

  /* Categories are no longer inside the vertical scrolling surface.
     This prevents product images/cards from ever drawing over them. */
  .miniapp-menu-scroll > .tabs {
    position: relative;
    z-index: 30;
    flex: 0 0 auto;
    margin: 0;
    padding: 7px 16px 12px;
    background: var(--bg);
    box-shadow: 0 8px 16px rgba(15,17,21,.9);
  }

  .menu-items-viewport {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px calc(112px + var(--safe-bottom));
  }

  .menu-items-viewport::-webkit-scrollbar {
    display: none;
  }

  /* Product images float 40px above their cards. Keep enough internal
     clearance so the first row begins fully below Categories. */
  .menu-items-viewport > .menu-grid {
    /* 38px minus the 26px floating-image offset = ~12px visible gap. */
    margin-top: 38px;
    padding-top: 0;
  }

  .cart-bar {
    z-index: 60;
  }
}

body.modal-open .menu-items-viewport {
  overflow: hidden;
}


/* V151 — tighter menu-header rhythm */
@media (max-width: 760px) {
  .shop-status-banner {
    margin-bottom: 10px;
  }

  .menu-toolbar {
    margin-bottom: 4px;
  }

  .miniapp-menu-scroll > .tabs {
    padding-top: 3px;
  }
}


/* V157 — Checkout field alignment and spacing
   Keep the preferred-time control visually identical to text fields on iOS/Telegram. */
@media (max-width: 700px) {
  #checkoutModal .time-input-shell {
    width: 100% !important;
  }

  #checkoutModal .time-input-shell input[type="time"],
  #checkoutModal .time-input-shell input[type="datetime-local"] {
    width: 100% !important;
    min-height: 40px !important;
    height: 40px !important;
    max-height: 40px !important;
    box-sizing: border-box !important;
    padding: 8px 10px 8px 31px !important;
    margin: 0 !important;
    line-height: 22px !important;
    text-align: left !important;
  }

  /* iOS/Safari centers the native date/time value unless its internal value
     pseudo-element is explicitly aligned. */
  #checkoutModal input[type="time"]::-webkit-date-and-time-value,
  #checkoutModal input[type="datetime-local"]::-webkit-date-and-time-value {
    text-align: left !important;
    margin: 0 !important;
  }

  #checkoutModal input[type="time"]::-webkit-datetime-edit,
  #checkoutModal input[type="datetime-local"]::-webkit-datetime-edit {
    text-align: left !important;
    padding: 0 !important;
  }

  /* field-grid already owns the vertical gap; prevent the sibling rule from
     adding a second gap between Name and Phone. */
  #checkoutModal .field-grid > .field-group + .field-group {
    margin-top: 0 !important;
  }

  #checkoutModal .field-grid {
    gap: 6px !important;
  }
}


/* V161 — Editable cart items */
.cart-item-edit {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cart-item-edit .cart-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-edit-label {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent, #f97316);
  opacity: .95;
}

.cart-item-edit:active {
  opacity: .72;
}


/* V162 — Cleaner cart interactions */
.cart-item-edit .cart-item-top { display: block; }
.cart-item-edit {
  border-radius: 10px;
  transition: opacity .12s ease, transform .12s ease, background-color .12s ease;
}
.cart-item-edit:active {
  opacity: .78;
  transform: scale(.992);
  background: rgba(255,255,255,.025);
}
.cart-edit-label { display: none !important; }

.cart-add-more {
  appearance: none;
  -webkit-appearance: none;
  margin: 8px 0 0;
  padding: 8px 2px 2px;
  border: 0;
  background: transparent;
  color: var(--accent, #f97316);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.cart-add-more svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.cart-add-more:active { opacity: .68; }

/* V172 — Consolidated Telegram Mini App top-area + cart rhythm.
   Replaces V167–V170 so spacing/font/logo rules have one owner. */
@media (max-width: 760px) {
  .header { gap: 9px; margin-bottom: 3px; }
  .brand-mini { gap: 8px; }

  .cafe-logo {
    width: 54px !important;
    height: 54px !important;
    flex: 0 0 54px !important;
    object-fit: contain;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  .brand-copy .subtitle,
  #miniHeaderEyebrow {
    font-size: 8px;
    line-height: 1.05;
    letter-spacing: .95px;
  }

  .brand-copy h1,
  #miniHeaderTitle {
    font-size: 21px;
    line-height: 1.02;
    letter-spacing: -.35px;
  }

  .brand-copy .header-note,
  #miniHeaderSubtitle {
    margin-top: 1px;
    font-size: 11px;
    line-height: 1.15;
  }

  .shop-status-banner { margin-top: 0; margin-bottom: 5px; }
  .status-banner-inner { padding: 8px 10px; gap: 9px; }
  
  
  .menu-toolbar { margin: 0 2px 1px; }

  .menu-toolbar h2,
  #miniGreetingTitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.16;
    font-weight: 720;
    letter-spacing: -.12px;
  }

  .miniapp-menu-scroll > .tabs {
    padding-top: 2px;
    padding-bottom: 7px;
  }

  .menu-items-viewport > .menu-grid { margin-top: 40px; }

  .cart-bar {
    min-height: 56px;
    padding: 6px 6px 6px 9px;
    border-radius: 18px;
    gap: 8px;
  }

  .cart-bar-copy { gap: 8px; }
  .cart-bag { width: 32px; height: 32px; border-radius: 10px; }
  .cart-bag svg { width: 17px; height: 17px; }
  .cart-bar-copy strong { font-size: 12.5px; }
  .cart-bar-copy #cartTotal { font-size: 11.5px; }
  .cart-open-btn { min-width: 104px; min-height: 38px; padding: 7px 12px; border-radius: 13px; }

  .menu-items-viewport {
    padding-bottom: calc(80px + var(--safe-bottom));
  }

  body.theme-light .miniapp-menu-scroll > .tabs {
    box-shadow: 0 1px 0 rgba(0,0,0,.07), 0 5px 12px rgba(0,0,0,.035);
  }
}

@media (max-width: 360px) {
  .cafe-logo {
    width: 54px !important;
    height: 54px !important;
    flex-basis: 54px !important;
  }

  .brand-copy h1,
  #miniHeaderTitle { font-size: 22px; }

  .menu-toolbar h2,
  #miniGreetingTitle { font-size: 14px; }

  .menu-items-viewport > .menu-grid { margin-top: 38px; }
  .cart-open-btn { min-width: 100px; }
}

/* Stability Update 2: keep light-mode overlays soft instead of producing a heavy black fade. */
body.theme-light .modal {
  background: rgba(32, 38, 46, .22);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
body.theme-light .app-dialog-overlay {
  background: rgba(32, 38, 46, .22);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
body.theme-light .app-dialog {
  background: #fff;
  box-shadow: 0 20px 55px rgba(20, 24, 32, .16);
}
body.theme-light .app-notice {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 34px rgba(20, 24, 32, .13);
}

/* V176 — Custom preferred-time picker for Telegram Mini App */
#checkoutModal .preorder-date-display {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

#checkoutModal .time-picker-trigger {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

#checkoutModal .time-picker-trigger:active {
  transform: scale(.995);
}

#checkoutModal .time-picker-trigger > svg:first-child {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}

#checkoutModal .time-picker-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted-2);
  stroke-width: 2;
}

#checkoutModal .time-picker-value {
  min-width: 0;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -.15px;
}

#checkoutModal .time-picker-value.is-placeholder {
  color: var(--muted);
  font-weight: 600;
}

.time-picker-sheet[hidden] {
  display: none !important;
}

.time-picker-sheet {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.time-picker-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.time-picker-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(76vh, 520px);
  padding: 8px 14px calc(14px + env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  box-shadow: 0 -18px 55px rgba(0,0,0,.38);
}

.time-picker-panel::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin: 0 auto 5px;
  border-radius: 999px;
  background: var(--line-strong);
}

.time-picker-head {
  min-height: 42px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.time-picker-head strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-picker-action {
  appearance: none;
  border: 0;
  padding: 9px 4px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.time-picker-done {
  color: var(--accent);
  text-align: right;
}

.time-picker-format-note {
  padding: 8px 0 2px;
  color: var(--muted-2);
  font-size: 10.5px;
  text-align: center;
}

.time-wheel-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 6px 2px;
}

.time-wheel-column {
  width: 88px;
  min-width: 0;
}

.time-period-column {
  width: 76px;
}

.time-period-column[hidden] {
  display: none !important;
}

.time-wheel-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.time-wheel {
  height: 206px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 82px 4px;
  border-radius: 14px;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to bottom,
      transparent 0,
      transparent 81px,
      rgba(var(--accent-rgb), .10) 81px,
      rgba(var(--accent-rgb), .10) 125px,
      transparent 125px,
      transparent 100%);
}

.time-wheel::-webkit-scrollbar {
  display: none;
}

.time-wheel-option {
  appearance: none;
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
  scroll-snap-align: center;
}

.time-wheel-option.is-selected {
  color: var(--text);
  font-size: 21px;
  font-weight: 850;
}

body.theme-light .time-picker-backdrop {
  background: rgba(18,24,34,.22);
}

body.theme-light .time-picker-panel {
  background: #fff;
  box-shadow: 0 -18px 45px rgba(20,30,45,.16);
}

@media (max-width: 380px) {
  .time-wheel-column { width: 78px; }
  .time-period-column { width: 68px; }
  .time-picker-panel { padding-inline: 10px; }
}

/* Update 23: compact, touch-friendly category rail + restored View Cart CTA size */
.miniapp-menu-scroll > .tabs {
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
}
.miniapp-menu-scroll > .tabs::-webkit-scrollbar { display: none; }
.miniapp-menu-scroll > .tabs .tab {
  min-height: 31px;
  height: 31px;
  padding: 0 9px;
  gap: 5px;
  white-space: nowrap;
}
.miniapp-menu-scroll > .tabs .tab-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
/* Restore the pre-Update-22 View Cart button dimensions while keeping the compact bar. */
.cart-bar .cart-open-btn {
  min-width: 122px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 13px;
}


/* Update 24: optional product description in customization sheet */
.product-description {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface, #171717) 88%, transparent);
  color: var(--text-muted, #a9a9a9);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.product-description[hidden] { display: none !important; }

/* Update 25: portion choices */
.portion-options .option-card:has(input:checked){border-color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,transparent)}
.portion-options input[type="radio"]{position:absolute;opacity:0;pointer-events:none}

/* Update 40: restore breathing room between the menu question and category rail. */
@media (max-width: 760px) {
  .menu-toolbar {
    margin-bottom: 7px;
  }
}


/* Update 41 — compact cart hierarchy and item-only scrolling */
#cartModal .sheet-head {
  min-height: 52px;
  padding-top: 5px;
  padding-bottom: 5px;
}
#cartModal .sheet-head h2 { font-size: 24px; line-height: 1.05; }
#cartModal .sheet-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 9px 13px 10px;
}
#cartModal #cartItems {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}
#cartModal .total-row {
  flex: 0 0 auto;
  margin-top: 7px;
  padding: 9px 2px 1px;
}
#cartModal .cart-receipt { gap: 7px; }
#cartModal .cart-row { padding: 8px 9px; border-radius: 14px; }
#cartModal .cart-receipt-row { gap: 9px; }
#cartModal .cart-item-top strong { font-size: 14.5px; font-weight: 850; line-height: 1.2; }
#cartModal .cart-item-price { font-size: 14.5px; font-weight: 850; }
#cartModal .cart-item-options,
#cartModal .cart-item-calc,
#cartModal .cart-pizza-halves { margin-top: 3px; }
#cartModal .cart-pizza-halves {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
#cartModal .cart-item-options { line-height: 1.35; }
#cartModal .cart-item-calc { font-weight: 700; }
#cartModal .cart-item-actions { gap: 6px; }
#cartModal .qty { grid-template-columns: 30px 18px 30px; gap: 2px; }
#cartModal .qty .btn {
  width: 30px;
  min-height: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 16px;
}
#cartModal .qty strong { font-size: 12.5px; }
#cartModal .cart-add-more { margin-top: 5px; padding-top: 6px; }

/* Update 45 — shared Telegram Mini App motion system */
:root {
  --motion-fast: 140ms;
  --motion-base: 190ms;
  --motion-sheet: 240ms;
  --motion-ease: cubic-bezier(.22,.8,.24,1);
}

/* Tactile controls without changing layout. */
.btn, .tab, .option-card, .spicy-btn, .pizza-half-picker, .pizza-choice-option,
.order-summary-card, .cart-item-edit, .cart-add-more, .sheet-close {
  transition-property: transform, opacity, background-color, border-color, box-shadow, color;
  transition-duration: var(--motion-base);
  transition-timing-function: var(--motion-ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active, .option-card:active, .spicy-btn:active, .pizza-half-picker:active,
.pizza-choice-option:active, .order-summary-card:active, .cart-item-edit:active,
.cart-add-more:active, .sheet-close:active { transform: scale(.975); }

/* Product cards enter softly; their CTA gets native-feeling press feedback. */
.menu-grid > .card { animation-duration: 220ms; animation-timing-function: var(--motion-ease); }
.menu-grid > .card > .btn:active { transform: scale(.975); }

/* Bottom sheets: short fade + restrained upward movement. */
.modal.open { animation: motionBackdropIn 170ms ease-out both; }
.modal.open > .sheet { animation: motionSheetIn var(--motion-sheet) var(--motion-ease) both; }

/* Selection changes should feel continuous instead of flashing. */
.custom-check, .pizza-choice-check, .spicy-btn,
.option-card, .pizza-choice-option, .pizza-half-picker {
  transition: background-color var(--motion-base) var(--motion-ease),
              border-color var(--motion-base) var(--motion-ease),
              color var(--motion-base) var(--motion-ease),
              transform var(--motion-fast) var(--motion-ease),
              box-shadow var(--motion-base) var(--motion-ease);
}
.option-card input:checked + .custom-check,
.pizza-choice-option.selected .pizza-choice-check {
  animation: motionCheckIn 180ms var(--motion-ease) both;
}

/* Price/quantity/status text updates stay visually stable. */
.cart-item-price, .cart-item-calc, #cartTotal, #modalTotal,
.order-total, .status-dot, .status-line {
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) var(--motion-ease),
              background-color var(--motion-base) ease, color var(--motion-base) ease;
}

@keyframes motionBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes motionSheetIn {
  from { opacity: .78; transform: translate3d(0, 18px, 0) scale(.995); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes motionCheckIn {
  0% { transform: scale(.82); }
  65% { transform: scale(1.06); }
  100% { transform: scale(1); }
}



/* Update 46 — refined native-feeling motion */
:root {
  --motion-fast: 150ms;
  --motion-base: 210ms;
  --motion-sheet: 260ms;
  --motion-page: 210ms;
  --motion-close: 170ms;
  --motion-ease: cubic-bezier(.2,.82,.24,1);
}

/* Make navigation/content changes visible without feeling slow. */
.menu-grid.motion-enter > .card,
.menu-grid.motion-enter > .empty {
  animation: motionContentIn var(--motion-page) var(--motion-ease) both;
}
.menu-grid.motion-enter > .card:nth-child(2) { animation-delay: 18ms; }
.menu-grid.motion-enter > .card:nth-child(3) { animation-delay: 32ms; }
.menu-grid.motion-enter > .card:nth-child(4) { animation-delay: 44ms; }
.menu-grid.motion-enter > .card:nth-child(n+5) { animation-delay: 52ms; }

/* A clearer sheet entrance and a deliberately faster exit. */
.modal.open { animation: motionBackdropIn 190ms ease-out both; }
.modal.open > .sheet { animation: motionSheetIn var(--motion-sheet) var(--motion-ease) both; }
.modal.motion-closing { display:flex; animation: motionBackdropOut var(--motion-close) ease-in both; pointer-events:none; }
.modal.motion-closing > .sheet { animation: motionSheetOut var(--motion-close) cubic-bezier(.4,0,1,1) both; }

/* Smooth selected-state feedback. */
.tab.active, .option-card:has(input:checked), .pizza-choice-option.selected, .spicy-btn.active {
  transition-duration: 220ms;
}
.tab.active { animation: motionSelectIn 190ms var(--motion-ease) both; }

/* Slight feedback on cart/order surfaces as they open. */
#cartModal.open .cart-item,
#ordersModal.open .order-summary-card,
#ordersModal.open .order-detail-card {
  animation: motionContentIn 210ms var(--motion-ease) both;
}

@keyframes motionContentIn {
  from { opacity: .25; transform: translate3d(0, 6px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes motionBackdropOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes motionSheetOut {
  from { opacity: 1; transform: translate3d(0,0,0) scale(1); }
  to { opacity: .88; transform: translate3d(0, 12px, 0) scale(.996); }
}
@keyframes motionSelectIn {
  0% { transform: scale(.985); }
  70% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

/* Accessibility + lower-powered WebViews. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* v209 — Telegram Mini App motion polish.
   Keep movement short so interaction feels responsive rather than decorative. */
:root {
  --motion-fast: 120ms;
  --motion-base: 170ms;
  --motion-sheet: 220ms;
  --motion-page: 180ms;
  --motion-close: 140ms;
  --motion-ease: cubic-bezier(.22,.78,.22,1);
}

/* Avoid animating every property; transforms/opacity stay compositor-friendly. */
.btn, .tab, .option-card, .spicy-btn, .pizza-half-picker, .pizza-choice-option,
.order-summary-card, .cart-item-edit, .cart-add-more, .sheet-close {
  transition-duration: var(--motion-base);
}
.btn:active, .option-card:active, .spicy-btn:active, .pizza-half-picker:active,
.pizza-choice-option:active, .order-summary-card:active, .cart-item-edit:active,
.cart-add-more:active, .sheet-close:active { transform: scale(.982); }

/* Keep list entrances subtle and do not stagger a long menu. */
.menu-grid.motion-enter > .card,
.menu-grid.motion-enter > .empty { animation-duration: var(--motion-page); }
.menu-grid.motion-enter > .card:nth-child(n+5) { animation-delay: 36ms; }

.modal.open { animation-duration: 150ms; }
.modal.open > .sheet { animation-duration: var(--motion-sheet); }
.modal.motion-closing,
.modal.motion-closing > .sheet { animation-duration: var(--motion-close); }

#cartModal.open .cart-item,
#ordersModal.open .order-summary-card,
#ordersModal.open .order-detail-card { animation-duration: 170ms; }

/* Prevent expensive motion from being triggered by hover emulation in touch WebViews. */
@media (hover: none) and (pointer: coarse) {
  .menu-grid > .card { animation-delay: 0ms !important; }
}

/* V220 — Pre-order card rhythm + status alignment */
@media (max-width: 760px) {
  .shop-status-banner { margin-left: 2px; margin-right: 2px; }
  .status-banner-inner { padding-left: 0; padding-right: 0; }
}

/* v223 checkout recovery / Telegram phone */
.checkout-inline-action {
  margin-top: 7px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line, rgba(127,127,127,.22));
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.checkout-inline-action:disabled { opacity: .62; cursor: wait; }

/* v234.5: My Orders detail revamp — one scroll, compact summary, dense item review */
.orders-scroll.order-detail-mode {
  overflow-y: auto;
  display: block;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.order-detail-mode .order-detail-card {
  display: block;
  min-height: auto;
  padding-bottom: 0;
}
.order-detail-v2345 .compact-order-top { align-items: flex-start; }
.order-detail-v2345 .compact-order-top h2 { margin: 0; font-size: 20px; line-height: 1.08; letter-spacing: -0.01em; }
.compact-order-total { display: block; margin-top: 5px; font-size: 22px; line-height: 1.08; letter-spacing: -0.01em; }
.compact-order-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 750; }
.compact-order-address, .compact-order-note { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.compact-order-address strong { color: var(--text); font-weight: 750; }
.compact-cancellation-info { display: grid; gap: 2px; margin-top: 9px; padding: 8px 10px; border-radius: 11px; background: rgba(255,92,102,.07); color: var(--text); font-size: 11.5px; }
.compact-cancellation-info small { color: var(--muted); }
.order-detail-v2345 .order-progress-wrap { margin: 11px 0 13px; padding: 9px 8px 8px; }
.order-detail-v2345 .order-progress-head { margin-bottom: 8px; }
.order-detail-v2345 .order-items-panel { display: block; min-height: auto; }
.order-detail-v2345 .saved-order-items { display: grid; overflow: visible; min-height: auto; padding-right: 0; gap: 7px; }
.order-detail-v2345 .order-section-title { margin: 0 0 7px; font-size: 17px; }
.order-item-count { color: var(--muted); font-weight: 700; }
.order-detail-v2345 .saved-order-item { padding: 9px 10px; }
.order-detail-v2345 .saved-order-math { display: none; }
.order-detail-v2345 .order-detail-actions { position: static; padding-top: 10px; background: transparent; }
.order-detail-v2345 .order-action-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
.order-detail-v2345 .order-action-grid .btn { min-height: 42px; padding-left: 8px; padding-right: 8px; }
@media (max-width: 360px) {
  .order-detail-v2345 .order-action-grid { grid-template-columns: 1fr; }
}

/* Cart item layout: one structural header row keeps product name/base and final total on the exact same baseline. */
#cartModal .cart-receipt-row {
  grid-template-columns: minmax(0, 1fr) 92px;
  grid-template-areas: "header header" "body actions";
  align-items: stretch;
  column-gap: 10px;
  row-gap: 3px;
}
#cartModal .cart-item-header {
  grid-area: header;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  text-align: left;
}
#cartModal .cart-item-header strong,
#cartModal .cart-item-price {
  font-size: 14.5px;
  font-weight: 850;
  line-height: 1.2;
}
#cartModal .cart-item-header strong { min-width: 0; }
#cartModal .cart-item-price {
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  text-align: right;
}
#cartModal .cart-item-base {
  color: var(--muted);
  font-weight: 750;
  white-space: nowrap;
}
#cartModal .cart-item-body {
  grid-area: body;
  min-width: 0;
  padding: 0;
}
#cartModal .cart-item-body .cart-pizza-halves,
#cartModal .cart-item-body .cart-item-options,
#cartModal .cart-item-body .cart-item-calc { display: block; }
#cartModal .cart-item-body .cart-item-options,
#cartModal .cart-item-body .cart-item-calc { margin-top: 3px; }
#cartModal .cart-item-actions {
  grid-area: actions;
  width: 92px;
  min-width: 92px;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
#cartModal .qty { margin-top: 0; align-self: flex-end; }
@media (max-width: 360px) {
  #cartModal .cart-receipt-row { grid-template-columns: minmax(0, 1fr) 88px; }
  #cartModal .cart-item-actions { width: 88px; min-width: 88px; }
}


/* v234.8 — Telegram iOS first-tap responsiveness */
button, [role="button"], [data-category], [data-customize], [data-qty],
.option-card, .spicy-btn, .pizza-half-picker, .pizza-choice-option,
.order-summary-card, .cart-item-edit, .cart-add-more {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
.modal:not(.open):not(.motion-closing) { pointer-events: none; }
.modal.open { pointer-events: auto; }

/* v234.9: My Orders summary typography refinement */
@media (max-width: 360px) {
  .order-detail-v2345 .compact-order-top h2 { font-size: 19px; }
  .order-detail-v2345 .compact-order-total { font-size: 21px; }
}

/* v234.12: scheduled availability label matches the compact pre-order note */
.schedule-available-note {
  margin-top: 4px;
  margin-bottom: 5px;
  width: 100%;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

/* v234.13 — Mini App motion & interaction polish
   One restrained motion layer for Telegram/iOS. No workflow or pricing changes. */
:root {
  --motion-tap: 110ms;
  --motion-fast: 140ms;
  --motion-base: 180ms;
  --motion-page: 190ms;
  --motion-sheet: 230ms;
  --motion-close: 150ms;
  --motion-ease: cubic-bezier(.22,.78,.22,1);
}

/* Keep touch feedback immediate and compositor-friendly. */
.btn, .tab, .icon-label-btn, .sheet-close, .order-type-btn, .qty .btn,
.option-card, .spicy-btn, .pizza-half-picker, .pizza-choice-option,
.order-summary-card, .cart-item-edit, .cart-add-more {
  transition: transform var(--motion-tap) var(--motion-ease),
              opacity var(--motion-fast) ease,
              background-color var(--motion-base) ease,
              border-color var(--motion-base) ease,
              color var(--motion-base) ease,
              box-shadow var(--motion-base) ease;
  will-change: auto;
}
.btn:active:not(:disabled), .tab:active, .icon-label-btn:active, .sheet-close:active,
.order-type-btn:active, .qty .btn:active:not(:disabled), .option-card:active,
.spicy-btn:active, .pizza-half-picker:active, .pizza-choice-option:active,
.order-summary-card:active, .cart-item-edit:active, .cart-add-more:active {
  transform: scale(.98);
}

/* Category switching is intentionally animation-free. Keeping mounted card/image
   layers untouched avoids Telegram iOS WebView image flashes during panel changes. */

/* Bottom sheets use the same entrance/exit language everywhere. */
.modal.open { animation: v23413BackdropIn var(--motion-fast) ease-out both; }
.modal.open > .sheet { animation: v23413SheetIn var(--motion-sheet) var(--motion-ease) both; }
.modal.motion-closing { display:flex; animation: v23413BackdropOut var(--motion-close) ease-in both; pointer-events:none; }
.modal.motion-closing > .sheet { animation: v23413SheetOut var(--motion-close) cubic-bezier(.4,0,1,1) both; }

/* Selection and cart/order feedback without moving layout. */
.tab.active, .order-type-btn.active, .spicy-btn.active,
.option-card:has(input:checked), .pizza-choice-option.selected {
  transition-duration: var(--motion-base);
}
.cart-bar {
  transition: border-color var(--motion-base) ease,
              background-color var(--motion-base) ease,
              box-shadow var(--motion-base) ease;
}
.cart-item-price, .cart-item-calc, #cartTotal, #modalTotal,
.order-total, .status-dot, .status-line, .order-status-badge {
  transition: opacity var(--motion-fast) ease,
              color var(--motion-base) ease,
              background-color var(--motion-base) ease;
}

/* Loading placeholders remain lightweight. */
.skeleton, .skeleton-line, .skeleton-block {
  animation-duration: 1.15s;
}

@keyframes v23413BackdropIn { from { opacity:0; } to { opacity:1; } }
@keyframes v23413BackdropOut { from { opacity:1; } to { opacity:0; } }
@keyframes v23413SheetIn {
  from { opacity:.82; transform:translate3d(0,16px,0) scale(.997); }
  to { opacity:1; transform:translate3d(0,0,0) scale(1); }
}
@keyframes v23413SheetOut {
  from { opacity:1; transform:translate3d(0,0,0) scale(1); }
  to { opacity:.9; transform:translate3d(0,10px,0) scale(.998); }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior:auto; }
  *, *::before, *::after {
    animation-duration:1ms !important;
    animation-delay:0ms !important;
    animation-iteration-count:1 !important;
    transition-duration:1ms !important;
    scroll-behavior:auto !important;
  }
}

/* v234.14 — Native sheet motion pass
   Telegram/iOS: synchronized backdrop + compositor-only sheet movement. */
:root {
  --motion-sheet: 260ms;
  --motion-close: 190ms;
  --motion-sheet-ease: cubic-bezier(.18,.86,.24,1);
}

/* Avoid animating/painting backdrop blur on the full viewport in iOS WebView. */
.modal {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.modal.open {
  animation: v23414BackdropIn 150ms ease-out both !important;
}
.modal.open > .sheet {
  animation: v23414SheetIn var(--motion-sheet) var(--motion-sheet-ease) both !important;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.modal.motion-closing {
  display: flex;
  animation: v23414BackdropOut var(--motion-close) ease-in both !important;
  pointer-events: none;
}
.modal.motion-closing > .sheet {
  animation: v23414SheetOut var(--motion-close) cubic-bezier(.4,0,.8,.2) both !important;
  will-change: transform, opacity;
}

/* Content is already rendered when the sheet moves; do not replay item entrances. */
#cartModal.open .cart-item,
#ordersModal.open .order-summary-card,
#ordersModal.open .order-detail-list,
#checkoutModal.open .checkout-step-card,
#optionModal.open .customize-section {
  animation: none !important;
}

/* Nested half-pizza picker moves over the parent sheet instead of popping in. */
.pizza-choice-sheet:not([hidden]) .pizza-choice-backdrop {
  animation: v23414NestedBackdropIn 140ms ease-out both;
}
.pizza-choice-sheet:not([hidden]) .pizza-choice-panel {
  animation: v23414NestedSheetIn 210ms var(--motion-sheet-ease) both;
  will-change: transform, opacity;
}

@keyframes v23414BackdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes v23414BackdropOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes v23414SheetIn {
  from { opacity: .96; transform: translate3d(0,24px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}
@keyframes v23414SheetOut {
  from { opacity: 1; transform: translate3d(0,0,0); }
  to { opacity: .98; transform: translate3d(0,14px,0); }
}
@keyframes v23414NestedBackdropIn { from { opacity:0; } to { opacity:1; } }
@keyframes v23414NestedSheetIn {
  from { opacity:.96; transform:translate3d(0,22px,0); }
  to { opacity:1; transform:translate3d(0,0,0); }
}


/* v234.14.1 — My Orders in-sheet navigation polish.
   Keep the Orders sheet mounted; only its content moves horizontally. */
#ordersList.orders-nav-forward {
  animation: v23414OrdersForward 210ms cubic-bezier(.22,1,.36,1) both;
}
#ordersList.orders-nav-back {
  animation: v23414OrdersBack 190ms cubic-bezier(.22,1,.36,1) both;
}
@keyframes v23414OrdersForward {
  from { opacity:.72; transform:translate3d(18px,0,0); }
  to { opacity:1; transform:translate3d(0,0,0); }
}
@keyframes v23414OrdersBack {
  from { opacity:.72; transform:translate3d(-14px,0,0); }
  to { opacity:1; transform:translate3d(0,0,0); }
}

/* v234.15 — Native sheet opening final fix.
   One compositor-only entrance, almost at rest from the first frame. */
:root {
  --motion-sheet: 195ms;
  --motion-close: 160ms;
  --motion-sheet-ease: cubic-bezier(.22,1,.36,1);
}
.modal.open { animation: v23415BackdropIn 120ms ease-out both !important; }
.modal.open > .sheet {
  animation: v23415SheetIn var(--motion-sheet) var(--motion-sheet-ease) both !important;
  will-change: transform, opacity;
}
.modal.motion-closing { animation: v23415BackdropOut var(--motion-close) ease-in both !important; }
.modal.motion-closing > .sheet {
  animation: v23415SheetOut var(--motion-close) cubic-bezier(.4,0,1,1) both !important;
}
@keyframes v23415BackdropIn { from { opacity:0; } to { opacity:1; } }
@keyframes v23415BackdropOut { from { opacity:1; } to { opacity:0; } }
@keyframes v23415SheetIn {
  from { opacity:.94; transform:translate3d(0,10px,0); }
  to { opacity:1; transform:translate3d(0,0,0); }
}
@keyframes v23415SheetOut {
  from { opacity:1; transform:translate3d(0,0,0); }
  to { opacity:.97; transform:translate3d(0,8px,0); }
}

/* My Orders is a persistent sheet. Only the inner view transitions. */
#ordersModal.open > .orders-sheet { contain: layout paint; }
#ordersList { min-width:0; transform:translateZ(0); backface-visibility:hidden; }
#ordersList.orders-nav-forward { animation:v23415OrdersForward 185ms var(--motion-sheet-ease) both !important; }
#ordersList.orders-nav-back { animation:v23415OrdersBack 175ms var(--motion-sheet-ease) both !important; }
@keyframes v23415OrdersForward {
  from { opacity:.88; transform:translate3d(12px,0,0); }
  to { opacity:1; transform:translate3d(0,0,0); }
}
@keyframes v23415OrdersBack {
  from { opacity:.9; transform:translate3d(-10px,0,0); }
  to { opacity:1; transform:translate3d(0,0,0); }
}

/* iOS keyboard/viewport changes must not replay or morph the sheet. */
.modal.keyboard-open > .sheet { animation:none !important; transition:none !important; transform:none !important; opacity:1 !important; }

@media (prefers-reduced-motion: reduce) {
  .modal.open, .modal.open > .sheet, .modal.motion-closing, .modal.motion-closing > .sheet,
  #ordersList.orders-nav-forward, #ordersList.orders-nav-back { animation:none !important; }
}
\n\n/* v234.15.1 — order detail data-ready navigation */\n.order-summary-card.is-loading-detail {\n  pointer-events: none;\n}\n.order-summary-card.is-loading-detail .order-summary-total .small {\n  opacity: .72;\n}\n
/* v234.15.2 — persistent My Orders list/detail panels.
   The sheet stays fixed; only inner panels move, eliminating hard content swaps. */
#ordersList {
  overflow: hidden !important;
  position: relative;
}
#ordersList > .orders-nav-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.orders-nav-panel {
  position: absolute;
  inset: 0;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: inherit;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition:
    transform 205ms cubic-bezier(.22,1,.36,1),
    opacity 165ms ease-out;
}
.orders-list-panel {
  transform: translate3d(0,0,0);
  opacity: 1;
  pointer-events: auto;
}
.orders-detail-panel {
  transform: translate3d(24px,0,0);
  opacity: 0;
  pointer-events: none;
}
.orders-nav-stage.show-detail .orders-list-panel {
  transform: translate3d(-20px,0,0);
  opacity: .28;
  pointer-events: none;
}
.orders-nav-stage.show-detail .orders-detail-panel {
  transform: translate3d(0,0,0);
  opacity: 1;
  pointer-events: auto;
}
/* Retire older one-node navigation animations; the two-panel stage owns motion. */
#ordersList.orders-nav-forward,
#ordersList.orders-nav-back { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .orders-nav-panel { transition: none !important; }
}

/* v234.15.2 — keep the Orders navigation viewport stable during panel motion. */
.orders-sheet { height: min(92dvh, 920px); }
.orders-scroll { flex: 1 1 auto; }
.modal.keyboard-open .orders-sheet { height: 100%; }

/* v234.15.3 — My Orders ghosting/compositing fix.
   Use a true clipped two-page viewport with opaque panels. No opacity cross-fade. */
#ordersList > .orders-nav-stage {
  isolation: isolate;
  overflow: hidden !important;
  contain: paint;
}
.orders-nav-panel {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: var(--surface);
  opacity: 1 !important;
  transition: transform 210ms cubic-bezier(.22,1,.36,1) !important;
  will-change: transform;
}
.orders-list-panel {
  z-index: 1;
  transform: translate3d(0,0,0);
  pointer-events: auto;
}
.orders-detail-panel {
  z-index: 2;
  transform: translate3d(100%,0,0);
  pointer-events: none;
}
.orders-nav-stage.show-detail .orders-list-panel {
  transform: translate3d(-100%,0,0);
  pointer-events: none;
}
.orders-nav-stage.show-detail .orders-detail-panel {
  transform: translate3d(0,0,0);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .orders-nav-panel { transition: none !important; }
}


/* v234.15.13: category panels stay mounted; only the active panel participates in the grid. */


/* v234.15.15: canvas-based live half-and-half preview for Customize Pizza. */
.custom-pizza-live-preview {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.custom-pizza-preview-disc {
  position: relative;
  width: clamp(176px, 52vw, 214px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
  border: 0;
  isolation: isolate;
}
.custom-pizza-preview-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.custom-pizza-preview-placeholder {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 50%;
  display: grid;
  place-content: center;
  gap: 2px;
  text-align: center;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}
.custom-pizza-preview-placeholder[hidden] { display: none; }
.custom-pizza-preview-placeholder-first { left: 0; }
.custom-pizza-preview-placeholder-second { right: 0; }
.custom-pizza-preview-placeholder small { font-size: 9px; font-weight: 650; color: var(--muted-2); }
.custom-pizza-preview-names {
  width: min(100%, 330px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
}
.custom-pizza-preview-names span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pizza-choice-product {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pizza-choice-product img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
  border-radius: 11px;
  background: var(--surface);
}
.pizza-choice-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.pizza-choice-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
}
.pizza-choice-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}
@media (max-width: 360px) {
  .custom-pizza-preview-disc { width: 176px; }
  .pizza-choice-product img { width: 42px; height: 42px; flex-basis: 42px; }
}
  .order-progress-wrap { padding-left: 7px; padding-right: 7px; }
  .order-progress-wrap .timeline-step small { font-size: 7.5px; }
}
/* V235 customer offer pricing */
.food-price:has(.offer-new-price){display:flex;align-items:center;justify-content:center;gap:6px}.offer-old-price{text-decoration:line-through;color:var(--muted);font-size:10px;font-weight:650}.offer-new-price{color:var(--accent);font-weight:850}.menu-offer-label{font-size:9px;line-height:1.1;color:var(--accent);font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.cart-item-offer,.saved-order-offer{display:block;color:var(--accent);font-weight:750}.cart-item-offer strong{font-weight:850}

/* V235.2 Combo Offers */
.combo-choice-group{margin-bottom:14px}.combo-choice-group .section-label-row{margin-bottom:8px}.combo-choice-select{width:100%;min-height:48px;border:1px solid var(--border);border-radius:12px;background:var(--card);color:var(--text);padding:0 12px;font:inherit}.cart-combo-lines{display:grid;gap:3px}.cart-combo-line{display:block;color:var(--muted);font-size:12px}.menu-offer-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* V235.2.1 fixed combo details */
.combo-included-list{display:grid;gap:10px}.combo-included-item{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid var(--border)}.combo-included-item img{width:56px;height:56px;object-fit:contain}.combo-included-item div{display:grid;gap:3px}.combo-included-item span{font-size:12px;color:var(--muted)}.combo-price-summary{display:grid;gap:8px;margin-top:14px;padding-top:12px}.combo-price-summary>div{display:flex;justify-content:space-between;gap:16px}.combo-price-total{padding-top:8px;border-top:1px solid var(--border);font-size:16px}

.menu-offer-end{font-size:9px;line-height:1.15;color:var(--muted);font-weight:650;text-align:center;white-space:nowrap}.cart-combo-expired{display:block;color:var(--danger,#b42318);font-weight:800;font-size:11px;margin-bottom:3px}
/* V235.2.3: combos use a dedicated one-card-per-row landscape layout. */
.menu-grid > .combo-category-panel > .combo-menu-card{grid-column:1/-1;width:100%;height:150px;min-height:150px;padding:12px;display:grid;grid-template-columns:118px minmax(0,1fr);gap:12px;align-items:center}.menu-grid > .combo-category-panel > .combo-menu-card .food-icon{position:static;width:118px;height:118px;transform:none}.menu-grid > .combo-category-panel > .combo-menu-card .food-icon img{width:100%;height:100%;object-fit:contain}.menu-grid > .combo-category-panel > .combo-menu-card .card-footer-stack{position:static;height:auto;min-height:0;align-self:stretch;justify-content:center}.menu-grid > .combo-category-panel > .combo-menu-card .card-content{min-height:0}.menu-grid > .combo-category-panel > .combo-menu-card .food-name,.menu-grid > .combo-category-panel > .combo-menu-card .food-price,.menu-grid > .combo-category-panel > .combo-menu-card .menu-offer-label,.menu-grid > .combo-category-panel > .combo-menu-card .menu-offer-end{text-align:left}.menu-grid > .combo-category-panel > .combo-menu-card .btn{margin-top:6px}@media(max-width:380px){.menu-grid > .combo-category-panel > .combo-menu-card{grid-template-columns:100px minmax(0,1fr)}.menu-grid > .combo-category-panel > .combo-menu-card .food-icon{width:100px;height:100px}}

.combo-choice-section{margin-top:16px;padding-top:12px;border-top:1px solid var(--border)}.combo-choice-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:9px}.combo-choice-head>div{display:grid;gap:2px}.combo-choice-head span{font-size:12px;color:var(--muted)}.combo-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.combo-choice{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:10px;padding:9px;min-width:0}.combo-choice input{accent-color:var(--primary)}.combo-spicy{display:grid;gap:5px;margin-top:5px}.combo-spicy>span{font-size:11px;color:var(--muted)}.combo-spicy-buttons{display:flex;gap:4px;flex-wrap:wrap}.combo-spicy-buttons button{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:5px 7px;font-size:11px;color:var(--text)}.combo-spicy-buttons button.active{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 12%,transparent)}@media(max-width:380px){.combo-choice-grid{grid-template-columns:1fr}}

/* V235.2.4.4 Combo UX */
.menu-grid>.combo-category-panel>.combo-menu-card{height:auto;min-height:210px;display:block;padding:0;overflow:hidden}.menu-grid>.combo-category-panel>.combo-menu-card .food-icon{width:100%;height:118px;border-radius:0}.menu-grid>.combo-category-panel>.combo-menu-card .food-icon img{object-fit:cover}.menu-grid>.combo-category-panel>.combo-menu-card .card-footer-stack{padding:10px 12px 12px}.combo-hero{height:150px;border-radius:14px;overflow:hidden;margin-bottom:14px;background:var(--surface)}.combo-hero img{width:100%;height:100%;object-fit:cover}.combo-product-picks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.combo-product-pick{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:8px;border:1px solid var(--border);border-radius:12px;padding:8px;min-width:0}.combo-product-pick:has(input:checked){border-color:var(--primary);background:color-mix(in srgb,var(--primary) 8%,transparent)}.combo-product-pick input{position:absolute;top:7px;right:7px}.combo-product-pick img{width:44px;height:44px;object-fit:contain}.combo-product-pick span{font-size:12px;font-weight:700}.combo-selected-spicy{margin-top:10px;padding:10px;border-radius:12px;background:var(--surface)}.combo-spicy>span{font-weight:700}.combo-spicy-buttons button{min-height:34px}.combo-spicy-buttons button.active{border-color:var(--primary);background:var(--primary);color:#fff}.combo-choice:has(input:checked){border-color:var(--primary);background:color-mix(in srgb,var(--primary) 8%,transparent)}#comboModal .sheet-footer{position:sticky;bottom:0;background:var(--card);z-index:3}#addComboBtn:disabled{opacity:.55}@media(max-width:380px){.combo-product-picks{grid-template-columns:1fr}}

/* V235.2.4.5 — compact Combo card + rebuilt Combo sheet */
.menu-grid>.combo-category-panel>.combo-menu-card{min-height:146px;height:146px;display:grid;grid-template-columns:112px minmax(0,1fr);gap:0;padding:0;overflow:hidden}.menu-grid>.combo-category-panel>.combo-menu-card .food-icon{width:112px;height:146px;position:static;transform:none;border-radius:0;background:var(--surface)}.menu-grid>.combo-category-panel>.combo-menu-card .food-icon img{width:100%;height:100%;object-fit:cover}.menu-grid>.combo-category-panel>.combo-menu-card .card-footer-stack{padding:10px 12px;min-height:0;height:auto;justify-content:center}.menu-grid>.combo-category-panel>.combo-menu-card .card-content{min-height:0;gap:2px}.menu-grid>.combo-category-panel>.combo-menu-card .food-name,.menu-grid>.combo-category-panel>.combo-menu-card .food-price,.menu-grid>.combo-category-panel>.combo-menu-card .menu-offer-label,.menu-grid>.combo-category-panel>.combo-menu-card .menu-offer-end{text-align:left}.menu-grid>.combo-category-panel>.combo-menu-card .btn{min-height:34px;margin-top:5px}
#comboModal .option-sheet{max-height:min(88vh,760px)}#comboModal .sheet-head{position:sticky;top:0;z-index:4;background:var(--card);padding-bottom:10px}#comboModal .sheet-content{padding-top:4px}.combo-hero-compact{height:104px;border-radius:13px;overflow:hidden;background:var(--surface);margin-bottom:10px}.combo-hero-compact img{width:100%;height:100%;object-fit:cover}.combo-section{margin-top:12px;padding-top:0;border-top:0}.combo-section+.combo-section{padding-top:12px;border-top:1px solid var(--border)}.combo-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:8px}.combo-section-head>div{display:grid;gap:2px}.combo-section-head strong{font-size:13px}.combo-section-head span{font-size:11px;color:var(--muted)}.combo-section-head>span{font-weight:750;white-space:nowrap}.combo-included-list{gap:0}.combo-included-row{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--border)}.combo-included-row:last-child{border-bottom:0}.combo-included-row img{width:52px;height:52px;object-fit:contain}.combo-included-info{min-width:0;display:grid;gap:6px}.combo-product-title{display:flex;justify-content:space-between;gap:10px;align-items:center}.combo-product-title strong{font-size:13px;min-width:0}.combo-product-title span{font-size:12px;color:var(--muted);font-weight:750}.combo-spicy-select{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px}.combo-spicy-select>span{font-size:10px;color:var(--muted);white-space:nowrap}.combo-spicy-select b{font-weight:750;color:var(--muted)}.combo-spicy-select select{min-width:0;width:100%;height:36px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);padding:0 30px 0 9px;font:inherit;font-size:12px}.combo-product-picks{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.combo-product-pick{grid-template-columns:38px minmax(0,1fr);min-height:58px;padding:7px 28px 7px 7px}.combo-product-pick input,.combo-side-option input{position:absolute;opacity:0;pointer-events:none}.combo-product-pick img{width:38px;height:38px}.combo-product-pick span{font-size:11px}.combo-check-svg{display:none;position:absolute;right:7px;top:7px;width:17px;height:17px;border-radius:50%;padding:3px;background:var(--primary);stroke:#fff;stroke-width:2.4;fill:none}.combo-product-pick:has(input:checked) .combo-check-svg,.combo-side-option:has(input:checked) .combo-check-svg{display:block}.combo-choice-spicy{display:grid;gap:6px;padding:8px 0}.combo-choice-spicy>strong{font-size:12px}.combo-side-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.combo-side-option{position:relative;display:flex;align-items:center;min-height:44px;padding:8px 30px 8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--card);font-size:12px;font-weight:700;line-height:1.2}.combo-side-option:has(input:checked){border-color:var(--primary);background:color-mix(in srgb,var(--primary) 8%,transparent)}.combo-price-summary{margin-top:14px;padding-top:10px;border-top:1px solid var(--border)}.combo-price-total{border-top:0;padding-top:0}#comboModal .sheet-footer{position:sticky;bottom:0;background:var(--card);z-index:5;border-top:1px solid var(--border);padding-top:10px}@media(max-width:360px){.menu-grid>.combo-category-panel>.combo-menu-card{grid-template-columns:96px minmax(0,1fr)}.menu-grid>.combo-category-panel>.combo-menu-card .food-icon{width:96px}.combo-spicy-select{grid-template-columns:1fr}.combo-spicy-select>span{white-space:normal}}
