.order-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: rgba(42, 50, 36, 0.94);
  color: #fffdf8;
  transform: translateY(110%);
  transition: transform 0.28s ease;
}

.order-bar.is-visible {
  transform: translateY(0);
}

.order-bar__inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.order-bar .btn--primary {
  flex: 0 0 auto;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
  animation: panel-in 0.35s ease both;
}

.review-list,
.review-meta {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.review-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.review-row:last-child {
  border-bottom: 0;
}

.review-row__name {
  font-weight: 650;
}

.review-row__price {
  color: var(--muted);
  font-size: 0.92rem;
}

.review-row__mods {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.25rem;
}

.review-row__mod {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.review-row__mod-price {
  font-weight: 650;
  color: var(--ink);
  opacity: 0.72;
}

.mod-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(42, 50, 36, 0.45);
}

.mod-backdrop[hidden],
.mod-sheet[hidden] {
  display: none !important;
}

.mod-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  box-sizing: border-box;
  /* Sits 4 px above the bottom edge (plus the iPhone home bar), so the rounded bottom edge still shows. */
  padding: 0 0.5rem calc(4px + env(safe-area-inset-bottom));
  max-height: min(calc(100vh - 0.75rem - env(safe-area-inset-top)), 41rem);
  max-height: min(calc(100dvh - 0.75rem - env(safe-area-inset-top)), 41rem);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.mod-sheet:not([hidden]) {
  pointer-events: auto;
}

.mod-sheet__inner {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  padding: 1.1rem 1.1rem 0;
  box-shadow: 0 -12px 40px rgba(42, 50, 36, 0.18);
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  width: min(100%, var(--max));
  margin-inline: auto;
  animation: panel-in 0.28s ease both;
}

.mod-sheet__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  flex: 0 0 auto;
  margin: 0 0 0.75rem;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--line);
}

.mod-sheet__header h2,
.mod-sheet__header #mod-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
  flex: 1 1 auto;
  min-width: min(100%, 8rem);
  line-height: 1.2;
}

.mod-sheet__price {
  font-weight: 750;
  font-size: 1.2rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

.mod-sheet__actions {
  display: flex;
  gap: 0.55rem;
  flex: 0 1 auto;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 11.5rem;
}

@media (max-width: 520px) {
  .mod-sheet__actions {
    flex: 1 1 100%;
    margin-left: 0;
    min-width: 0;
  }
}

.mod-body {
  display: grid;
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
}

.mod-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.mod-group legend {
  font-weight: 700;
  margin-bottom: 0.45rem;
  padding: 0;
}

.mod-optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85em;
}

.mod-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.4rem;
  cursor: pointer;
}

.mod-option--qty {
  grid-template-columns: 1fr auto auto;
  cursor: default;
}

.mod-option--qty .mod-option__name {
  font-weight: 550;
}

.mod-option--qty .qty {
  margin-left: 0.15rem;
}

.mod-option:has(input:checked),
.mod-option.is-active {
  border-color: var(--sage-dark);
  background: rgba(139, 154, 107, 0.14);
}

.mod-option input {
  accent-color: var(--sage-dark);
}

.mod-option__price {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.mod-sheet__inner > .mod-body {
  padding-bottom: 1.1rem;
}

/* Scrolling popup bodies: the scrollbar sits 8 px to the right of the tiles, out in the popup's right margin.
   The body grows 8 px into the popup padding and gets 8 px inner padding back, so the tiles keep their width. */
.mod-body,
.pay-qr__body {
  margin-right: -8px;
  padding-right: 8px;
}

body.has-mod-sheet,
body.has-quit-dialog {
  overflow: hidden;
}

.quit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(42, 50, 36, 0.45);
}

.quit-dialog {
  position: fixed;
  left: 50%;
  bottom: calc(4px + env(safe-area-inset-bottom));
  z-index: 71;
  width: min(calc(100% - 1rem), 22rem);
  transform: translateX(-50%);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(42, 50, 36, 0.22);
  padding: 1.25rem 1.2rem 1.15rem;
}

.quit-backdrop[hidden],
.quit-dialog[hidden] {
  display: none !important;
}

.quit-dialog__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
}

.quit-dialog__actions {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 1.15rem;
}

.photo-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(42, 50, 36, 0.72);
}

.photo-backdrop[hidden],
.photo-lightbox[hidden] {
  display: none !important;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3.5rem 1rem 1.5rem;
  pointer-events: none;
}

.photo-lightbox:not([hidden]) {
  pointer-events: auto;
}

.photo-lightbox__title {
  margin: 0;
  max-width: min(92vw, 40rem);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.5vw, 1.45rem);
  font-weight: 650;
  color: #fffdf8;
  text-align: center;
  text-shadow: 0 1px 8px rgba(42, 50, 36, 0.45);
}

.photo-lightbox__img {
  display: block;
  max-width: min(92vw, 1024px);
  max-height: min(78vh, 92vmin);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.55rem;
  box-shadow: 0 16px 48px rgba(42, 50, 36, 0.35);
  background: rgba(255, 253, 248, 0.08);
}

.photo-lightbox__close {
  position: absolute;
  top: max(0.65rem, env(safe-area-inset-top));
  right: max(0.65rem, env(safe-area-inset-right));
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 253, 248, 0.35);
  border-radius: 999px;
  background: rgba(42, 50, 36, 0.55);
  color: #fffdf8;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.photo-lightbox__close:hover,
.photo-lightbox__close:focus-visible {
  background: rgba(42, 50, 36, 0.8);
  outline: none;
}

body.has-photo-lightbox {
  overflow: hidden;
}

.service-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1rem 0;
}

.service-toggle label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-weight: 650;
}

.service-toggle label:has(input:checked) {
  border-color: var(--sage-dark);
  background: rgba(139, 154, 107, 0.18);
}

.service-toggle input {
  accent-color: var(--sage-dark);
}

.hint {
  color: var(--muted);
  font-size: 0.95rem;
}

.pay-callout {
  color: var(--danger);
  font-weight: 650;
  background: rgba(155, 59, 46, 0.14);
  border: 1px solid rgba(155, 59, 46, 0.4);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  margin: 0.75rem 0 0;
}

.success-card .pay-callout {
  color: #4a5c35;
  background: rgba(139, 154, 107, 0.18);
  border-color: rgba(139, 154, 107, 0.45);
}

.success-card {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: calc(var(--radius) + 0.2rem);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  max-width: 28rem;
  margin: 2rem auto;
}

.success-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.order-id {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(139, 154, 107, 0.18);
  font-weight: 750;
  letter-spacing: 0.06em;
  font-size: 1.2rem;
}

/* Order number block on the success screen (02/11/2026): big, for the cashier. */
.order-no {
  margin: 0.4rem 0 1rem;
  padding: 1rem 0.75rem;
  border-radius: var(--radius);
  background: var(--accent-soft, rgba(139, 154, 107, 0.18));
  border: 2px solid var(--accent, var(--sage-dark, currentColor));
  color: var(--fg, var(--ink, inherit));
}

.order-no[hidden] {
  display: none;
}

.order-no p {
  margin: 0;
}

.order-no__label {
  font-size: 0.95rem;
  opacity: 0.8;
}

.order-no__value {
  font-size: clamp(2.1rem, 11vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin: 0.15rem 0 0.25rem !important;
  word-break: break-all;
}

.order-no__hint {
  font-weight: 650;
}

.error-banner {
  background: rgba(155, 59, 46, 0.1);
  color: var(--danger);
  border: 1px solid rgba(155, 59, 46, 0.25);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}

/* Honeypot — off-screen; bots that fill "company" are rejected server-side */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.loading,
.empty-state {
  color: var(--muted);
  padding: 2rem 0;
}

body.has-order-bar {
  padding-bottom: 5.5rem;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@media (max-width: 720px) {
  .header-meta:not(.header-meta--table) {
    display: none;
  }

  .nav {
    display: none;
  }

  .photo-strip {
    grid-template-columns: 1fr 1fr;
  }

  .photo-strip figure:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .menu-item__media video {
    display: none;
  }
}

/* Payment choice on the review screen (only venues with QR_ORDER_CONFIG.paymentChoice, e.g. Dots).
   The QR screen reuses the .mod-sheet shell. */
.review-pay {
  margin-top: 1rem;
}

.review-pay[hidden] {
  display: none !important;
}

.review-pay__label {
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.pay-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.pay-option {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.15rem;
  width: 100%;
  min-height: 4.1rem;
  box-sizing: border-box;
  padding: 0.65rem 0.4rem;
  text-align: center;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pay-option:hover,
.pay-option:focus-visible {
  border-color: var(--sage-dark);
  outline: none;
}

.pay-option.is-selected {
  border-color: var(--sage-dark);
  box-shadow: inset 0 0 0 1px var(--sage-dark);
}

.pay-option:disabled {
  opacity: 0.55;
  cursor: default;
}

.pay-option.is-selected:disabled {
  opacity: 1;
}

.pay-option__title {
  font-weight: 750;
  font-size: 1.08rem;
}

.pay-option__note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.btn:disabled {
  cursor: default;
}

/* QR view: one compact header row so the QR, Save QR and "I paid" fit on small phones */
.mod-sheet.is-qr .mod-sheet__header {
  flex-wrap: nowrap;
  margin-bottom: 0.4rem;
  padding-bottom: 0.6rem;
}

.mod-sheet.is-qr .mod-sheet__header h2 {
  font-size: 1.05rem;
  min-width: 0;
}

.mod-sheet.is-qr .mod-sheet__actions {
  flex: 0 0 auto;
  min-width: 0;
  margin-left: 0;
}

/* QR screen inside the pay sheet: the body scrolls on short phones, "I paid" stays in view */
.pay-qr {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0.4rem;
  text-align: center;
}

.pay-qr__body {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pay-qr__paid {
  flex: none;
  margin-top: 0.7rem;
  margin-bottom: 1rem;
}

.pay-qr[hidden] {
  display: none !important;
}

.pay-qr__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.3rem;
  line-height: 1.05;
}

.pay-qr__frame {
  background: #fff;
  border-radius: 0.9rem;
  padding: 0.35rem;
  line-height: 0;
}

.pay-qr__canvas {
  display: block;
  width: min(15.5rem, 64vw, 30vh);
  height: auto;
  aspect-ratio: 1;
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
}

.pay-qr__scan {
  margin: 0;
  font-weight: 700;
}

.pay-qr__id {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.pay-qr__id strong {
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}


/* Thin themed scrollbar: transparent track, rounded handle, no arrow buttons. */
:root {
  --scroll-thumb: rgba(196, 165, 116, 0.45);
  --scroll-thumb-hover: rgba(196, 165, 116, 0.75);
}

/* Firefox only: Chrome 121+ would ignore the ::-webkit-scrollbar rules below (and bring back the arrows) if these were set. */
@supports not selector(::-webkit-scrollbar) {
  .mod-body,
  .pay-qr__body,
  .cat-nav-menu {
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) transparent;
  }
}

.mod-body::-webkit-scrollbar,
.pay-qr__body::-webkit-scrollbar,
.cat-nav-menu::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background: transparent;
}

.mod-body::-webkit-scrollbar-track,
.pay-qr__body::-webkit-scrollbar-track,
.cat-nav-menu::-webkit-scrollbar-track {
  background: transparent;
}

.mod-body::-webkit-scrollbar-thumb,
.pay-qr__body::-webkit-scrollbar-thumb,
.cat-nav-menu::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 999px;
}

.mod-body::-webkit-scrollbar-thumb:hover,
.pay-qr__body::-webkit-scrollbar-thumb:hover,
.cat-nav-menu::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
}

.mod-body::-webkit-scrollbar-button,
.pay-qr__body::-webkit-scrollbar-button,
.cat-nav-menu::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* Options popup: polite note under Add while a set is below its minimum (theme colour, not error red) */
.mod-hint {
  margin: 0 0 0.6rem;
  color: var(--accent, var(--sage-dark, var(--ink)));
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

#mod-confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* View-only item detail: the options popup shell, read-only (menu-order.js openViewDetail) */
.menu-item[data-view-id] {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mod-view-close {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0 0 0.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.mod-sheet.is-view .mod-view-close {
  display: inline-flex;
}

.mod-sheet.is-view .mod-sheet__actions,
.mod-sheet.is-view .mod-hint {
  display: none;
}

.mod-sheet.is-view .mod-sheet__header {
  flex-wrap: nowrap;
}

/* Rows keep their content height (an overflow:hidden photo row would otherwise shrink to 0 inside the scrolling grid). */
.mod-sheet.is-view .mod-body {
  grid-auto-rows: max-content;
  align-content: start;
}

.mod-view__photo {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(128, 128, 128, 0.15);
}

.mod-view__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.mod-view__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.mod-option--view {
  grid-template-columns: 1fr auto;
  cursor: default;
}

.mod-option--view .mod-option__price,
.mod-view__hint {
  color: var(--accent, var(--sage-dark, var(--ink)));
}

/* ---------- Order history: "My orders" button, popup list, receipt (js/order-history.js) ---------- */
.my-orders-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--accent, var(--sage-dark, currentColor));
  background: transparent;
  color: var(--accent, var(--sage-dark, inherit));
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.my-orders-btn[hidden] {
  display: none;
}

.my-orders-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--accent, var(--sage-dark, currentColor));
  color: var(--bg, #fffdf8);
  font-size: 0.78rem;
  line-height: 1;
}

.mod-sheet.orders-sheet .mod-sheet__header {
  flex-wrap: nowrap;
}

.mod-sheet.orders-sheet .orders-close {
  display: inline-flex;
}

.orders-sheet .orders-body {
  display: block;
  padding-bottom: 1rem;
}

.orders-list,
.rc-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.orders-item {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.orders-item:first-child {
  border-top: 0;
  padding-top: 0.2rem;
}

.orders-item__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.orders-item__id {
  font-size: 1.05rem;
}

.orders-item__time {
  color: var(--muted);
}

.orders-item__link,
.receipt-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--accent, var(--sage-dark, inherit));
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.receipt-link {
  display: block;
  margin-top: 1rem;
  text-align: center;
}

.rc-chip {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--accent, var(--sage-dark, currentColor));
  color: var(--accent, var(--sage-dark, inherit));
  font-size: 0.8rem;
  font-weight: 650;
}

.rc-chip--cancelled,
.rc-chip--expired {
  border-color: var(--line);
  color: var(--muted);
}

.rc-lines {
  margin: 0.6rem 0 0;
}

.rc-line {
  padding: 0.3rem 0;
}

.rc-line__row,
.rc-line__mod,
.rc-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.rc-line__row {
  font-weight: 600;
}

.rc-line__mod {
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.rc-total {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-weight: 750;
}

.rc-pay,
.rc-when,
.rc-venue {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.rc-venue {
  margin: 0;
  font-weight: 650;
}

.rc-title {
  margin: 0.15rem 0 0;
}

.rc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.rc-note {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

#receipt-root {
  max-width: 34rem;
  margin: 1.5rem auto 0;
}

/* "The menu was just updated, please refresh" popup (menu-order.js showStaleDialog). */
.stale-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(42, 50, 36, 0.45);
}

.stale-dialog {
  position: fixed;
  left: 50%;
  bottom: calc(4px + env(safe-area-inset-bottom));
  z-index: 91;
  width: min(calc(100% - 1rem), 24rem);
  max-height: 85vh;
  overflow-y: auto;
  transform: translateX(-50%);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(42, 50, 36, 0.22);
  padding: 1.25rem 1.2rem 1.15rem;
}

.stale-backdrop[hidden],
.stale-dialog[hidden] {
  display: none !important;
}

.stale-dialog__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
}

.stale-dialog__text {
  margin: 0.55rem 0 0;
}

.stale-dialog__list {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.stale-dialog__list li + li {
  margin-top: 0.3rem;
}

.stale-dialog__actions {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 1.15rem;
}

.stale-dialog .stale-dialog__actions .btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

/* Thai guest pages (/menu?lang=th): Thai letters are not in Bricolage Grotesque / Sora, so name Thai fonts right after them
 * (Noto Sans Thai is loaded by js/i18n.js; the rest are on phones and PCs), and give the taller Thai marks room. */
html[lang="th"] {
  --font-display: "Bricolage Grotesque", "Noto Sans Thai", "Sarabun", "Leelawadee UI", "Thonburi", Tahoma, sans-serif;
  --font-body: "Sora", "Noto Sans Thai", "Sarabun", "Leelawadee UI", "Thonburi", Tahoma, sans-serif;
}
html[lang="th"] body {
  line-height: 1.55;
}
html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] .btn,
html[lang="th"] .menu-item__name,
html[lang="th"] .cat-nav a,
html[lang="th"] .pay-option__title,
html[lang="th"] .pay-option__note,
html[lang="th"] .order-no__label,
html[lang="th"] .order-no__hint,
html[lang="th"] .mod-option,
html[lang="th"] .review-row__name,
html[lang="th"] .stale-dialog__title,
html[lang="th"] .quit-dialog__title {
  line-height: 1.4;
}
