/**
 * FILE/PFAD:
 * - public/assets/ui/modules/restaurant/pwa-guest-v3/pwa-guest.css
 *
 * PURPOSE/ZWECK:
 * - Gemeinsame EverUI-Gästeoberfläche für öffentliche Speisekarte,
 *   Tischbestellung, Abholbestellung und öffentlichen Bestellstatus.
 * - Optimiert AI-first Sprache/Text, Suche, sticky Kategorien, Produktkarten,
 *   Produkt-Sheet, Desktop-Warenkorb, mobilen Bottom-Cart und den Checkout.
 *
 * CSS-/SCOPE-VERTRAG:
 * - Alle Fachselektoren sind unter `.pg` beziehungsweise `.pg__*` gescoped.
 * - Einzige Roots sind `[data-pg-order-app]` und `[data-pg-order-status]`.
 * - Keine ungescopten Komponenten-Overrides und keine Bootstrap-/AppKit-Klassen.
 *
 * THEME-/TOKEN-VERTRAG:
 * - Lokale `--pg-*`-Tokens leiten sich zuerst aus vorhandenen `--ev-*`-Tokens ab.
 * - Light, explizites Dark-Theme und Betriebssystem-Dark-Theme bleiben unterstützt.
 * - Keine externe Schrift und keine zweite globale Tokenwelt.
 *
 * RESPONSIVE-VERTRAG:
 * - Desktop: Produktkatalog und sticky Warenkorb gleichzeitig.
 * - Tablet: flexible Karten und kompakter Seitenwarenkorb.
 * - Handy: zwei Produktspalten, fixer Warenkorb-Trigger und Cart als Bottom-Sheet.
 * - Safe-Area-Inset wird für iPhone/Home-Indikator berücksichtigt.
 *
 * WARTUNG/ERWEITERUNG:
 * - Neue Komponenten in einer fachlich benannten Sektion ergänzen.
 * - Bestehende Regeln konsolidieren; keine Hotfix-Blöcke am Dateiende anhängen.
 * - Neue data-pg-Hooks parallel in View, JavaScript und Vertragstests pflegen.
 *
 * ABGRENZUNG:
 * - Kein Styling für Admin, POS oder Orders-Board.
 * - Keine Fachlogik, kein CSS-Import und kein Inline-Style-Vertrag.
 */

:root {
  --pg-primary: var(--ev-primary, #c91f2c);
  --pg-primary-strong: color-mix(in srgb, var(--pg-primary) 82%, black);
  --pg-primary-soft: color-mix(in srgb, var(--pg-primary) 10%, transparent);
  --pg-bg: var(--ev-bg, #f3f1ed);
  --pg-surface: var(--ev-surface, #ffffff);
  --pg-surface-soft: color-mix(in srgb, var(--pg-surface) 84%, var(--pg-bg));
  --pg-text: var(--ev-text, #171715);
  --pg-muted: var(--ev-text-2, #6e6a63);
  --pg-line: var(--ev-border, #ddd7ce);
  --pg-success: #18734f;
  --pg-warning: #a76408;
  --pg-danger: #b4232f;
  --pg-shadow-xs: 0 2px 8px rgba(34, 27, 20, 0.05);
  --pg-shadow-sm: 0 8px 26px rgba(34, 27, 20, 0.08);
  --pg-shadow-md: 0 18px 48px rgba(34, 27, 20, 0.13);
  --pg-shadow-lg: 0 34px 90px rgba(25, 19, 14, 0.22);
  --pg-radius-xs: 10px;
  --pg-radius-sm: 14px;
  --pg-radius: 20px;
  --pg-radius-lg: 28px;
  --pg-font: var(--ev-font, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --pg-page-max: 1460px;
  --pg-header-height: 72px;
  --pg-safe-bottom: max(14px, env(safe-area-inset-bottom));
}

html:has(.pg[data-pg-order-app]),
html:has(.pg[data-pg-order-status]) {
  background: var(--pg-bg);
  overflow-x: clip;
}

html.pg-cart-lock,
html.pg-cart-lock body {
  overflow: hidden;
}

body.pwa-guest-v3-mode,
body:has(.pg[data-pg-order-app]),
body:has(.pg[data-pg-order-status]) {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  background: var(--pg-bg);
}

.pg,
.pg *,
.pg *::before,
.pg *::after {
  box-sizing: border-box;
}

.pg {
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
  color: var(--pg-text);
  background:
    radial-gradient(circle at 10% -8%, color-mix(in srgb, var(--pg-primary) 10%, transparent), transparent 34rem),
    radial-gradient(circle at 96% 10%, color-mix(in srgb, var(--pg-success) 5%, transparent), transparent 30rem),
    var(--pg-bg);
  font: 500 16px/1.48 var(--pg-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pg__flow-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.pg button,
.pg input,
.pg textarea,
.pg select {
  font: inherit;
}

.pg button,
.pg a {
  -webkit-tap-highlight-color: transparent;
}

.pg :where(button) {
  color: inherit;
}

.pg button:not(:disabled),
.pg a {
  cursor: pointer;
}

.pg button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.pg [hidden] {
  display: none !important;
}

.pg :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pg-primary) 34%, transparent);
  outline-offset: 2px;
}

.pg svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* ========================================================================== */
/* Header                                                                     */
/* ========================================================================== */

.pg__navigation {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--pg-surface);
}

.pg__navigation > .pg__header {
  position: static;
}

.pg__header {
  position: sticky;
  z-index: 80;
  top: 0;
  display: flex;
  min-height: var(--pg-header-height);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(14px, 3vw, 34px);
  background: color-mix(in srgb, var(--pg-surface) 91%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--pg-line) 84%, transparent);
  box-shadow: 0 8px 30px rgba(35, 27, 18, 0.06);
  backdrop-filter: blur(20px) saturate(1.15);
}

.pg__brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.pg__brand-identity { display: block; width: 100%; height: 100%; }

.pg__brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--pg-primary), var(--pg-primary-strong));
  border-radius: 15px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--pg-primary) 25%, transparent);
  font-size: 20px;
  font-weight: 950;
}

.pg__brand > span:last-child {
  display: grid;
  min-width: 0;
}

.pg__brand strong,
.pg__brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pg__brand strong {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.pg__brand small {
  color: var(--pg-muted);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.pg__header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.pg__network,
.pg__theme-toggle,
.pg__install-button,
.pg__languages,
.pg__header-cart {
  min-height: 42px;
  border: 1px solid var(--pg-line);
  border-radius: 14px;
}

.pg__voice-open {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid var(--pg-line);
  border-radius: 14px;
  background: var(--pg-surface);
  color: var(--pg-text);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.pg__voice-open:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.pg__voice-open:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.pg__network {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--pg-success);
  background: color-mix(in srgb, var(--pg-success) 8%, var(--pg-surface));
  font-size: 16px;
  font-weight: 850;
}

.pg__network i {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 13%, transparent);
}

.pg__network.is-offline {
  color: var(--pg-danger);
  background: color-mix(in srgb, var(--pg-danger) 7%, var(--pg-surface));
}

.pg__theme-toggle,
.pg__install-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: var(--pg-primary);
  background: var(--pg-primary-soft);
  font-size: 16px;
  font-weight: 850;
}

.pg__languages {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  padding: 3px;
  background: var(--pg-surface-soft);
}

.pg__languages a {
  display: grid;
  min-width: 35px;
  min-height: 34px;
  place-items: center;
  color: var(--pg-muted);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.pg__languages a[aria-current="page"] {
  color: #fff;
  background: var(--pg-primary);
  box-shadow: var(--pg-shadow-xs);
}

.pg__header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 9px 4px 7px;
  background: var(--pg-surface);
  box-shadow: var(--pg-shadow-xs);
}

.pg__header-cart.has-items {
  border-color: color-mix(in srgb, var(--pg-primary) 35%, var(--pg-line));
}

.pg__header-cart-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--pg-primary);
  background: var(--pg-primary-soft);
  border-radius: 11px;
  font-size: 18px;
}

.pg__header-cart-copy {
  display: grid;
  min-width: 78px;
  text-align: left;
}

.pg__header-cart-copy small {
  color: var(--pg-muted);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pg__header-cart-copy strong {
  font-size: 16px;
  font-weight: 900;
}

.pg__header-cart > b {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  color: #fff;
  background: var(--pg-primary);
  border: 3px solid var(--pg-surface);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 950;
}

/* ========================================================================== */
/* Seitenrahmen, Intro und Fortschritt                                        */
/* ========================================================================== */

.pg__main {
  width: min(var(--pg-page-max), 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) clamp(12px, 3vw, 34px) calc(112px + var(--pg-safe-bottom));
}

.pg__order-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 8px clamp(14px, 3vw, 34px);
  background: var(--pg-surface);
  border-bottom: 1px solid var(--pg-line);
}

.pg__nav-short { display: none; }

.pg__order-entry > a {
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
}

.pg__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  align-items: stretch;
  gap: 18px;
  margin-bottom: 18px;
}

.pg__intro-copy,
.pg__intro-badge {
  background: var(--pg-surface);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius-lg);
  box-shadow: var(--pg-shadow-sm);
}

.pg__intro-copy {
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--pg-primary) 7%, transparent), transparent 58%),
    var(--pg-surface);
}

.pg__eyebrow {
  margin: 0;
  color: var(--pg-primary);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.pg__intro h1,
.pg__catalog-head h2,
.pg__cart-panel h2,
.pg__form-card h2,
.pg__review-card h2,
.pg__payment-card h2,
.pg__done h2,
.pg__dialog h2 {
  margin: 0;
  color: var(--pg-text);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.pg__intro h1 {
  max-width: 820px;
  margin-top: 7px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.02;
}

.pg__intro-copy > p:last-of-type {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--pg-muted);
  font-size: clamp(16px, 2vw, 17px);
}

.pg__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pg__benefits span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  color: var(--pg-muted);
  background: var(--pg-surface-soft);
  border: 1px solid var(--pg-line);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
}

.pg__benefits i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #fff;
  background: var(--pg-success);
  border-radius: 50%;
  font-size: 16px;
  font-style: normal;
}

.pg__intro-badge {
  display: flex;
  min-height: 100%;
  align-items: center;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
}

.pg__intro-badge > span {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  place-items: center;
  color: var(--pg-primary);
  background: var(--pg-primary-soft);
  border-radius: 18px;
  font-size: 27px;
}

.pg__intro-badge div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.pg__intro-badge small {
  color: var(--pg-muted);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pg__intro-badge strong {
  overflow: hidden;
  font-size: 20px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pg__intro-badge em {
  color: var(--pg-success);
  font-size: 16px;
  font-style: normal;
  font-weight: 850;
}

.pg__intro-badge em.is-closed {
  color: var(--pg-danger);
}

/* ========================================================================== */
/* AI-first: dieselbe Ever-Voice-Runtime, integriert statt schwebend          */
/* ========================================================================== */

.pg__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.pg__ai-first {
  position: relative;
  display: grid;
  gap: 15px;
  margin: 0 0 18px;
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
  color: var(--pg-text);
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--pg-primary) 17%, transparent), transparent 28rem),
    linear-gradient(135deg, color-mix(in srgb, var(--pg-surface) 96%, transparent), var(--pg-surface-soft));
  border: 1px solid color-mix(in srgb, var(--pg-primary) 24%, var(--pg-line));
  border-radius: var(--pg-radius-lg);
  box-shadow: var(--pg-shadow-md);
}

.pg__ai-first::after {
  position: absolute;
  inset: auto -70px -95px auto;
  width: 220px;
  height: 220px;
  content: "";
  background: color-mix(in srgb, var(--pg-primary) 8%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.pg__ai-first-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.pg__ai-first-head > div {
  min-width: 0;
}

.pg__ai-first-head h2 {
  margin: 3px 0 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.pg__ai-first-head > div > p:last-child {
  max-width: 820px;
  margin: 8px 0 0;
  color: var(--pg-muted);
  font-size: 16px;
}

.pg__ai-orb {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.42), transparent 22%),
    var(--pg-primary);
  border: 1px solid color-mix(in srgb, var(--pg-primary) 58%, #fff);
  border-radius: 19px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--pg-primary) 28%, transparent);
}

.pg__ai-orb i {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 14px;
}

.pg__ai-orb b {
  position: relative;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .05em;
}

.pg__ai-state {
  align-self: start;
  min-width: max-content;
  padding: 7px 10px;
  color: var(--pg-success);
  background: color-mix(in srgb, var(--pg-success) 9%, var(--pg-surface));
  border: 1px solid color-mix(in srgb, var(--pg-success) 22%, var(--pg-line));
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
}

.pg__ai-state[data-stage="connecting"],
.pg__ai-state[data-stage="thinking"] {
  color: var(--pg-warning);
  background: color-mix(in srgb, var(--pg-warning) 9%, var(--pg-surface));
  border-color: color-mix(in srgb, var(--pg-warning) 24%, var(--pg-line));
}

.pg__ai-state[data-stage="error"] {
  color: var(--pg-danger);
  background: color-mix(in srgb, var(--pg-danger) 8%, var(--pg-surface));
  border-color: color-mix(in srgb, var(--pg-danger) 24%, var(--pg-line));
}

.pg__ai-command {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  background: var(--pg-surface);
  border: 1px solid color-mix(in srgb, var(--pg-primary) 20%, var(--pg-line));
  border-radius: 19px;
  box-shadow: var(--pg-shadow-sm);
}

.pg__ai-command label {
  min-width: 0;
}

.pg__ai-command input {
  width: 100%;
  min-height: 50px;
  padding: 0 7px;
  color: var(--pg-text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: clamp(16px, 2vw, 17px);
  font-weight: 720;
}

.pg__ai-command input::placeholder {
  color: color-mix(in srgb, var(--pg-muted) 78%, transparent);
  font-weight: 600;
}

.pg__ai-mic,
.pg__ai-send {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
}

.pg__ai-mic {
  display: grid;
  width: 54px;
  place-items: center;
  color: #fff;
  background: var(--pg-primary);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--pg-primary) 24%, transparent);
}

.pg__ai-mic svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.pg__ai-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;

  /*
   * AI-FIRST ACTION / LIGHT + DARK
   * Nicht `var(--pg-text)` als Hintergrund verwenden:
   * Im Dark-Theme ist Text bewusst hell und würde mit `color:#fff`
   * zu einem nahezu unsichtbaren Weiss-auf-Weiss-Button führen.
   */
  color: #fff;
  background: linear-gradient(145deg, var(--pg-primary), var(--pg-primary-strong));
  border: 1px solid color-mix(in srgb, var(--pg-primary) 72%, #000 28%);
  box-shadow:
    0 9px 22px color-mix(in srgb, var(--pg-primary) 26%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 20%, transparent);
}

.pg__ai-send svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pg__ai-mic:hover,
.pg__ai-send:hover {
  transform: translateY(-1px);
}

.pg__ai-send:hover {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--pg-primary) 88%, #fff 12%),
    var(--pg-primary-strong)
  );
  box-shadow:
    0 11px 26px color-mix(in srgb, var(--pg-primary) 32%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 24%, transparent);
}

.pg__ai-send:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pg-primary) 34%, transparent);
  outline-offset: 3px;
}

.pg__ai-send:disabled {
  color: color-mix(in srgb, var(--pg-text) 52%, transparent);
  background: var(--pg-surface-soft);
  border-color: var(--pg-line);
  box-shadow: none;
  opacity: 0.72;
  transform: none;
}

/* Dark-Mode: Kontur minimal aufhellen, Action-Farbe selbst bleibt identisch. */
html[data-theme="dark"] .pg__ai-send,
body[data-theme="dark"] .pg__ai-send,
.theme-dark .pg__ai-send {
  border-color: color-mix(in srgb, var(--pg-primary) 68%, #fff 32%);
  box-shadow:
    0 10px 26px color-mix(in srgb, #000 34%, transparent),
    0 0 0 1px color-mix(in srgb, var(--pg-primary) 22%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent);
}

html[data-theme="dark"] .pg__ai-send:disabled,
body[data-theme="dark"] .pg__ai-send:disabled,
.theme-dark .pg__ai-send:disabled {
  color: var(--pg-muted);
  background: var(--pg-surface-soft);
  border-color: var(--pg-line);
  box-shadow: none;
}

.pg__ai-examples {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pg__ai-examples button {
  min-height: 35px;
  padding: 6px 11px;
  color: var(--pg-text);
  background: color-mix(in srgb, var(--pg-surface) 86%, transparent);
  border: 1px solid var(--pg-line);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 780;
}

.pg__ai-examples button:hover {
  color: var(--pg-primary);
  border-color: color-mix(in srgb, var(--pg-primary) 34%, var(--pg-line));
}

.pg__ai-fallback {
  position: relative;
  z-index: 1;
  margin: -2px 0 0;
  color: var(--pg-muted);
  font-size: 16px;
  font-weight: 650;
}

.pg__alert {
  display: grid;
  gap: 3px;
  margin-bottom: 15px;
  padding: 13px 15px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius-sm);
}

.pg__alert strong,
.pg__alert span {
  display: block;
}

.pg__alert--warning {
  color: #724704;
  background: color-mix(in srgb, var(--pg-warning) 9%, var(--pg-surface));
  border-color: color-mix(in srgb, var(--pg-warning) 30%, var(--pg-line));
}

.pg__alert--info {
  color: var(--pg-text);
  background: var(--pg-primary-soft);
  border-color: color-mix(in srgb, var(--pg-primary) 25%, var(--pg-line));
}

.pg__steps {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  margin: 0 0 16px;
  padding: 6px;
  background: color-mix(in srgb, var(--pg-surface) 88%, transparent);
  border: 1px solid var(--pg-line);
  border-radius: 16px;
  box-shadow: var(--pg-shadow-xs);
  scrollbar-width: none;
}

.pg__steps::-webkit-scrollbar,
.pg__category-rail::-webkit-scrollbar {
  display: none;
}

.pg__steps button {
  display: inline-flex;
  min-width: max-content;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 4px 12px 4px 5px;
  color: var(--pg-muted);
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 850;
}

.pg__steps button span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: color-mix(in srgb, var(--pg-muted) 10%, transparent);
  border-radius: 10px;
  font-weight: 950;
}

.pg__steps button[aria-current="step"] {
  color: #fff;
  background: var(--pg-primary);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--pg-primary) 22%, transparent);
}

.pg__steps button[aria-current="step"] span {
  background: rgba(255, 255, 255, 0.16);
}

.pg__steps button.is-complete:not([aria-current="step"]) {
  color: var(--pg-success);
}

/* ========================================================================== */
/* Menütoolbar und Kategorien                                                 */
/* ========================================================================== */

.pg__view {
  min-width: 0;
}

.pg__menu-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 10px;
}

.pg__search {
  position: relative;
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 0 11px 0 15px;
  color: var(--pg-muted);
  background: var(--pg-surface);
  border: 1px solid var(--pg-line);
  border-radius: 16px;
  box-shadow: var(--pg-shadow-xs);
}

.pg__search:focus-within {
  border-color: color-mix(in srgb, var(--pg-primary) 55%, var(--pg-line));
  box-shadow: 0 0 0 4px var(--pg-primary-soft);
}

.pg__search svg {
  flex: 0 0 20px;
  font-size: 20px;
}

.pg__search input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  color: var(--pg-text);
  background: transparent;
  border: 0;
  outline: 0;
}

.pg__search input::placeholder {
  color: color-mix(in srgb, var(--pg-muted) 75%, transparent);
}

.pg__search button {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: var(--pg-muted);
  background: var(--pg-surface-soft);
  border: 0;
  border-radius: 9px;
}

.pg__search kbd {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  color: var(--pg-muted);
  background: var(--pg-surface-soft);
  border: 1px solid var(--pg-line);
  border-radius: 8px;
  font: 850 11px/1 var(--pg-font);
}

.pg__soft-button,
.pg__secondary-button,
.pg__primary-button,
.pg__pay-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 130ms ease, box-shadow 130ms ease, border-color 130ms ease;
}

.pg__soft-button:active,
.pg__secondary-button:active,
.pg__primary-button:active,
.pg__pay-button:active {
  transform: scale(0.985);
}

.pg__soft-button,
.pg__secondary-button {
  color: var(--pg-text);
  background: var(--pg-surface);
  border: 1px solid var(--pg-line);
}

.pg__primary-button {
  color: #fff;
  background: linear-gradient(145deg, var(--pg-primary), var(--pg-primary-strong));
  border: 1px solid var(--pg-primary);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--pg-primary) 20%, transparent);
}

.pg__pay-button {
  color: #fff;
  background: linear-gradient(145deg, #166647, #0f7c54);
  border: 1px solid #166647;
  box-shadow: 0 10px 24px rgba(22, 102, 71, 0.2);
}

.pg__refresh-button {
  min-width: 132px;
}

.pg__refresh-button span {
  font-size: 20px;
}

.pg__category-rail {
  position: sticky;
  z-index: 32;
  top: calc(var(--pg-navigation-height, var(--pg-header-height)) + 8px);
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin: 0 -4px 14px;
  padding: 7px 4px;
  background: color-mix(in srgb, var(--pg-bg) 92%, transparent);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.pg__category {
  display: inline-grid;
  min-width: 126px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 6px;
  color: var(--pg-muted);
  background: var(--pg-surface);
  border: 1px solid var(--pg-line);
  border-radius: 14px;
  box-shadow: var(--pg-shadow-xs);
  text-align: left;
}

.pg__category b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--pg-primary);
  background: var(--pg-primary-soft);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 950;
}

.pg__category span {
  overflow: hidden;
  font-size: 16px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pg__category small {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  background: var(--pg-surface-soft);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
}

.pg__category[aria-selected="true"] {
  color: #fff;
  background: var(--pg-primary);
  border-color: var(--pg-primary);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--pg-primary) 20%, transparent);
}

.pg__category[aria-selected="true"] b,
.pg__category[aria-selected="true"] small {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}


/* ==========================================================================
 * Guest-Menübereiche: Speisen / Getränke / Mittagskarte
 * --------------------------------------------------------------------------
 * Diese Ebene sitzt bewusst über den eigentlichen Menükategorien. Sie ersetzt
 * keine DB-Kategorie und besitzt keinerlei Fachlogik; JavaScript filtert nur
 * die bereits serverseitig gelieferten, DB-basierten Gruppen.
 * ========================================================================== */

.pg__category--group {
  min-width: 144px;
  border-color: color-mix(in srgb, var(--pg-primary) 22%, var(--pg-line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pg-primary) 7%, var(--pg-surface)), var(--pg-surface));
}

.pg__category--group b {
  font-size: 16px;
}

.pg__category--group[aria-selected="true"] {
  background:
    linear-gradient(135deg, var(--pg-primary), color-mix(in srgb, var(--pg-primary) 82%, #000));
}

.pg__category-divider {
  width: 1px;
  min-width: 1px;
  height: 34px;
  align-self: center;
  margin: 0 3px;
  background: var(--pg-line);
}

.pg__product-promo {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 108px);
  overflow: hidden;
  padding: 5px 8px;
  color: #fff;
  background: var(--pg-danger, #c7343f);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(80, 15, 20, 0.22);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pg__product-tag {
  display: -webkit-box;
  overflow: hidden;
  color: var(--pg-primary);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.pg__product-price-stack {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.pg__product-price-stack > strong {
  color: var(--pg-primary);
}

.pg__product-price-stack > del {
  color: var(--pg-muted);
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 680px) {
  .pg__category--group {
    min-width: 132px;
  }

  .pg__category-divider {
    height: 30px;
  }

  .pg__product-promo {
    max-width: calc(100% - 84px);
    font-size: 16px;
  }
}

/* ========================================================================== */
/* Produktkatalog                                                             */
/* ========================================================================== */

.pg__order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.34fr);
  align-items: start;
  gap: 18px;
}

.pg__catalog,
.pg__cart-panel,
.pg__form-card,
.pg__review-card,
.pg__payment-card,
.pg__done,
.pg__checkout-summary {
  background: var(--pg-surface);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius-lg);
  box-shadow: var(--pg-shadow-sm);
}

.pg__catalog {
  min-width: 0;
  padding: clamp(14px, 2vw, 22px);
}

.pg__catalog-head,
.pg__cart-panel > header,
.pg__form-card > header,
.pg__review-card > header,
.pg__payment-card > header,
.pg__dialog-surface > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.pg__catalog-head {
  margin-bottom: 15px;
}

.pg__catalog-head h2,
.pg__cart-panel h2,
.pg__form-card h2,
.pg__review-card h2,
.pg__payment-card h2,
.pg__done h2,
.pg__dialog h2 {
  margin-top: 3px;
  font-size: clamp(21px, 3vw, 30px);
}

.pg__catalog-head > span,
.pg__cart-panel > header > span {
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  color: var(--pg-primary);
  background: var(--pg-primary-soft);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 950;
}

.pg__loading {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pg__loading span {
  min-height: 230px;
  background: linear-gradient(100deg, var(--pg-surface-soft) 25%, color-mix(in srgb, var(--pg-line) 45%, var(--pg-surface)) 38%, var(--pg-surface-soft) 52%);
  background-size: 220% 100%;
  border-radius: var(--pg-radius);
  animation: pg-shimmer 1.4s infinite linear;
}

.pg__loading strong {
  grid-column: 1 / -1;
  color: var(--pg-muted);
  text-align: center;
}

@keyframes pg-shimmer {
  to { background-position-x: -220%; }
}

.pg__product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 13px;
}

.pg__product {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 270px;
  flex-direction: column;
  overflow: hidden;
  color: var(--pg-text);
  background: var(--pg-surface-soft);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius);
  box-shadow: var(--pg-shadow-xs);
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.pg__product:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--pg-primary) 34%, var(--pg-line));
  box-shadow: var(--pg-shadow-md);
}

.pg__product:active {
  transform: translateY(0) scale(0.992);
}

.pg__product-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pg-primary) 8%, var(--pg-surface-soft)), var(--pg-surface-soft));
}

.pg__product-media img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.pg__product:hover .pg__product-media img {
  transform: scale(1.035);
}

.pg__product-placeholder {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--pg-primary) 70%, var(--pg-muted));
  font-size: 34px;
  font-weight: 950;
}

.pg__product-media.is-image-error img {
  display: none;
}

.pg__product-station {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(20, 18, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pg__product-add {
  position: absolute;
  z-index: 4;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--pg-primary);
  border: 3px solid var(--pg-surface-soft);
  border-radius: 14px;
  box-shadow: 0 9px 22px color-mix(in srgb, var(--pg-primary) 30%, transparent);
  font-size: 24px;
  font-weight: 700;
}

.pg__product-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 7px;
  padding: 14px;
}

.pg__product-copy > strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pg__product-copy p {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 0;
  overflow: hidden;
  color: var(--pg-muted);
  font-size: 16px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pg__product-copy footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 5px;
}

.pg__product-copy footer strong {
  color: var(--pg-primary);
  font-size: 16px;
  font-weight: 950;
  white-space: nowrap;
}

.pg__product-copy footer small {
  overflow: hidden;
  color: var(--pg-muted);
  font-size: 16px;
  font-weight: 750;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.pg__product-choose {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.pg__product-choose small {
  max-width: 130px;
}

.pg__product-choose b {
  color: var(--pg-primary);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.pg__product.is-soldout {
  filter: grayscale(0.7);
  opacity: 0.62;
}

.pg__product.is-soldout .pg__product-add {
  display: none;
}

.pg__empty {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--pg-muted);
  text-align: center;
}

.pg__empty > span {
  font-size: 42px;
}

.pg__empty strong {
  color: var(--pg-text);
  font-size: 18px;
}

.pg__empty p {
  margin: 0;
}

/* ========================================================================== */
/* Warenkorb                                                                  */
/* ========================================================================== */

.pg__cart-panel {
  position: sticky;
  top: calc(var(--pg-navigation-height, var(--pg-header-height)) + 14px);
  display: grid;
  max-height: calc(100dvh - var(--pg-header-height) - 28px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.pg__cart-panel.is-highlighted {
  border-color: color-mix(in srgb, var(--pg-primary) 48%, var(--pg-line));
  box-shadow: 0 0 0 5px var(--pg-primary-soft), var(--pg-shadow-md);
}

.pg__cart-panel > header {
  align-items: center;
  padding: 17px 17px 13px;
  border-bottom: 1px solid var(--pg-line);
}

.pg__cart-panel > header > span {
  margin-left: auto;
}

.pg__cart-close {
  display: none;
}

.pg__icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  color: var(--pg-text);
  background: var(--pg-surface-soft);
  border: 1px solid var(--pg-line);
  border-radius: 12px;
  font-size: 21px;
}

.pg__cart-lines {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px;
}

.pg__cart-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--pg-line);
}

.pg__cart-line:first-child {
  border-top: 0;
}

.pg__cart-line-thumb {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  color: var(--pg-primary);
  background: var(--pg-primary-soft);
  border-radius: 13px;
  font-size: 16px;
  font-weight: 950;
}

.pg__cart-line-thumb img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg__cart-line-thumb b {
  position: absolute;
  z-index: 1;
}

.pg__cart-line-main {
  min-width: 0;
}

.pg__cart-line-main strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pg__cart-line-main small {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--pg-muted);
  font-size: 16px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pg__cart-line-price {
  font-size: 16px;
  font-weight: 950;
  white-space: nowrap;
}

.pg__cart-line-actions {
  display: flex;
  grid-column: 2 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pg__quantity {
  display: inline-grid;
  grid-template-columns: 36px 38px 36px;
  overflow: hidden;
  background: var(--pg-surface-soft);
  border: 1px solid var(--pg-line);
  border-radius: 11px;
}

.pg__quantity button,
.pg__quantity b {
  display: grid;
  min-height: 36px;
  place-items: center;
  background: transparent;
  border: 0;
}

.pg__quantity button {
  font-size: 19px;
}

.pg__quantity b {
  font-size: 16px;
}

.pg__line-edit,
.pg__line-remove {
  min-height: 36px;
  padding: 5px 8px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 850;
}

.pg__line-edit {
  color: var(--pg-primary);
}

.pg__line-remove {
  color: var(--pg-danger);
}

.pg__cart-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  padding: 28px;
  color: var(--pg-muted);
  text-align: center;
}

.pg__cart-empty > span {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  place-items: center;
  color: var(--pg-primary);
  background: var(--pg-primary-soft);
  border-radius: 17px;
  font-size: 28px;
}

.pg__cart-empty strong {
  color: var(--pg-text);
}

.pg__cart-empty p {
  margin: 4px 0 0;
  font-size: 16px;
}

.pg__cart-panel > footer {
  padding: 14px 17px 17px;
  background: var(--pg-surface-soft);
  border-top: 1px solid var(--pg-line);
}

.pg__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.pg__total span {
  color: var(--pg-muted);
  font-size: 16px;
  font-weight: 850;
}

.pg__total strong {
  font-size: 23px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.pg__cart-panel > footer .pg__primary-button {
  width: 100%;
}

/* ========================================================================== */
/* Checkout                                                                   */
/* ========================================================================== */

.pg__checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  align-items: start;
  gap: 18px;
}

.pg__form-card,
.pg__review-card,
.pg__payment-card,
.pg__done {
  width: 100%;
  padding: clamp(20px, 4vw, 34px);
}

.pg__form-card > header,
.pg__review-card > header,
.pg__payment-card > header {
  display: block;
  margin-bottom: 22px;
}

.pg__form-card > header > p:last-child,
.pg__review-card > header > p:last-child,
.pg__payment-card > header > p:last-child {
  margin: 7px 0 0;
  color: var(--pg-muted);
}

.pg__checkout-summary {
  position: sticky;
  top: calc(var(--pg-navigation-height, var(--pg-header-height)) + 14px);
  display: grid;
  gap: 12px;
  padding: 20px;
}

.pg__checkout-summary h3 {
  margin: -5px 0 5px;
  font-size: 19px;
  font-weight: 950;
}

.pg__checkout-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--pg-line);
}

.pg__checkout-summary > div span {
  color: var(--pg-muted);
  font-size: 16px;
  font-weight: 800;
}

.pg__checkout-summary > div strong {
  font-size: 16px;
  font-weight: 950;
}

.pg__checkout-summary small {
  color: var(--pg-muted);
  font-size: 16px;
  line-height: 1.5;
}

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

.pg__field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.pg__field > span,
.pg__dialog-controls label > span {
  color: var(--pg-muted);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pg__field input:not(:where([type="checkbox"], [type="radio"])),
.pg__field textarea,
.pg__field select,
.pg__option-note {
  width: 100%;
  color: var(--pg-text);
  background: var(--pg-surface-soft);
  border: 1px solid var(--pg-line);
  border-radius: 13px;
  outline: 0;
}

.pg__field input:not(:where([type="checkbox"], [type="radio"])),
.pg__field select {
  font-size: 16px;
  min-height: 50px;
  padding: 0 13px;
}

.pg__field textarea,
.pg__option-note {
  min-height: 96px;
  padding: 12px 13px;
  resize: vertical;
}

.pg__field input:focus,
.pg__field textarea:focus,
.pg__field select:focus,
.pg__option-note:focus {
  border-color: color-mix(in srgb, var(--pg-primary) 58%, var(--pg-line));
  box-shadow: 0 0 0 4px var(--pg-primary-soft);
}

/* Native radio semantics, presented as large keyboard-accessible choice cards. */
.pg [data-pg-pickup-choice] {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pg [data-pg-pickup-choice] legend {
  margin-bottom: 9px;
  padding: 0;
  color: var(--pg-text);
  font-size: 16px;
  font-weight: 850;
}

.pg [data-pg-pickup-choice] > label {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 98px;
  align-items: flex-start;
  padding: 15px 38px 15px 14px;
  border: 1px solid var(--pg-line);
  border-radius: 15px;
  background: var(--pg-surface-soft);
  cursor: pointer;
}

.pg [data-pg-pickup-choice] input[type="radio"] {
  position: absolute;
  width: 1px;
  min-width: 0;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
}

.pg [data-pg-pickup-choice] label > span {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.pg [data-pg-pickup-choice] strong,
.pg [data-pg-pickup-choice] small {
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.pg [data-pg-pickup-choice] small {
  color: var(--pg-muted);
}

.pg [data-pg-pickup-choice] label:has(input:checked) {
  border-color: var(--pg-primary);
  background: var(--pg-primary-soft);
  box-shadow: 0 0 0 1px var(--pg-primary);
}

.pg [data-pg-pickup-choice] label:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 15px;
  right: 13px;
  color: var(--pg-primary);
  font-size: 19px;
  font-weight: 900;
}

.pg [data-pg-pickup-choice] label:has(input:focus-visible) {
  outline: 3px solid var(--pg-primary);
  outline-offset: 3px;
}

.pg [data-pg-pickup-alternatives] {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.pg [data-pg-pickup-alternatives] > strong {
  flex-basis: 100%;
}

.pg [data-pg-pickup-alternatives] button {
  min-height: 46px;
  font-size: 16px;
}

.pg [data-pg-pickup-schedule-status] {
  margin: 0;
  color: var(--pg-muted);
  font-size: 16px;
  line-height: 1.5;
}

.pg [data-pg-pickup-schedule-status]:empty {
  display: none;
}

.pg__field--wide {
  grid-column: 1 / -1;
}

.pg__field--counter > div {
  display: grid;
  grid-template-columns: 50px minmax(72px, 1fr) 50px;
  overflow: hidden;
  background: var(--pg-surface-soft);
  border: 1px solid var(--pg-line);
  border-radius: 13px;
}

.pg__field--counter button,
.pg__field--counter input {
  min-height: 50px;
  padding: 0;
  text-align: center;
  background: transparent;
  border: 0;
}

.pg__field--counter button {
  font-size: 22px;
}

.pg__field--counter input {
  border-inline: 1px solid var(--pg-line);
}

.pg__view-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: min(1040px, 100%);
  margin: 16px auto 0;
}

.pg__review {
  display: grid;
  gap: 14px;
}

.pg__review-section {
  padding: 16px;
  background: var(--pg-surface-soft);
  border: 1px solid var(--pg-line);
  border-radius: 15px;
}

.pg__review-section > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pg__review-section h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 950;
}

.pg__review-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--pg-line);
}

.pg__review-row:first-of-type {
  border-top: 0;
}

.pg__review-row > span:first-child {
  color: var(--pg-primary);
  font-weight: 950;
}

.pg__review-row div {
  min-width: 0;
}

.pg__review-row strong {
  font-size: 16px;
}

.pg__review-row small {
  display: block;
  margin-top: 2px;
  color: var(--pg-muted);
  font-size: 16px;
}

.pg__payment-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  padding: 16px;
  background: var(--pg-surface-soft);
  border: 1px solid var(--pg-line);
  border-radius: 15px;
}

.pg__payment-total strong {
  font-size: 23px;
  font-weight: 950;
}

.pg__payment-element {
  min-height: 160px;
  padding: 14px;
  background: var(--pg-surface-soft);
  border: 1px solid var(--pg-line);
  border-radius: 15px;
}

.pg__payment-error {
  margin: 12px 0 0;
  color: var(--pg-danger);
  font-weight: 800;
}

.pg__done {
  display: grid;
  width: min(760px, 100%);
  min-height: 470px;
  place-items: center;
  align-content: center;
  gap: 10px;
  margin: 0 auto;
  text-align: center;
}

.pg__done-mark {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: #fff;
  background: var(--pg-success);
  border-radius: 26px;
  box-shadow: 0 20px 45px color-mix(in srgb, var(--pg-success) 25%, transparent);
  font-size: 38px;
  font-weight: 950;
}

.pg__done > p:not(.pg__eyebrow) {
  max-width: 580px;
  margin: 0;
  color: var(--pg-muted);
}

.pg__done-summary {
  display: flex;
  min-width: min(360px, 100%);
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 15px 17px;
  background: var(--pg-surface-soft);
  border: 1px solid var(--pg-line);
  border-radius: 15px;
}

.pg__done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 8px;
}

.pg__live-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--pg-muted);
  text-align: center;
  font-size: 16px;
}

.pg__live-message.is-error {
  color: var(--pg-danger);
}

.pg__live-message.is-success {
  color: var(--pg-success);
}

/* ========================================================================== */
/* Mobile Warenkorb                                                           */
/* ========================================================================== */

.pg__mobile-cart,
.pg__cart-backdrop {
  display: none;
}

.pg__mobile-cart {
  position: fixed;
  z-index: 70;
  right: 12px;
  bottom: var(--pg-safe-bottom);
  left: 12px;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--pg-primary), var(--pg-primary-strong));
  border: 0;
  border-radius: 18px;
  box-shadow: var(--pg-shadow-lg);
}

.pg__mobile-cart > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pg__mobile-cart > span > b {
  display: grid;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  place-items: center;
  color: var(--pg-primary);
  background: #fff;
  border-radius: 11px;
}

.pg__mobile-cart strong {
  margin-left: auto;
  font-size: 16px;
  font-weight: 950;
}

.pg__mobile-cart > i {
  font-style: normal;
  font-size: 21px;
}

/* ========================================================================== */
/* Service                                                                    */
/* ========================================================================== */

.pg__service-dock {
  position: fixed;
  z-index: 62;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(18px + var(--pg-safe-bottom));
}

.pg__service-button {
  display: inline-flex;
  min-width: 260px;
  min-height: 62px;
  align-items: center;
  gap: 11px;
  padding: 8px 12px 8px 8px;
  color: #fff;
  background: #20201e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 19px;
  box-shadow: var(--pg-shadow-lg);
}

.pg__service-button-icon,
.pg__service-option-icon {
  display: grid;
  place-items: center;
}

.pg__service-button-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  color: #fff;
  background: var(--pg-primary);
  border-radius: 14px;
}

.pg__service-button-icon svg,
.pg__service-option-icon svg {
  width: 23px;
  height: 23px;
}

.pg__service-button-copy {
  display: grid;
  min-width: 0;
  text-align: left;
}

.pg__service-button strong {
  font-size: 16px;
  font-weight: 900;
}

.pg__service-button small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pg__service-button-arrow {
  margin-left: auto;
}

.pg__service-button.is-pending {
  background: #744805;
}

.pg__service-button.is-seen {
  background: var(--pg-success);
}

.pg__service-options {
  display: grid;
  gap: 9px;
}

.pg__service-options > button {
  display: grid;
  min-height: 80px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--pg-text);
  background: var(--pg-surface-soft);
  border: 1px solid var(--pg-line);
  border-radius: 15px;
  text-align: left;
}

.pg__service-option-icon {
  width: 46px;
  height: 46px;
  color: var(--pg-primary);
  background: var(--pg-primary-soft);
  border-radius: 14px;
}

.pg__service-options > button > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.pg__service-options strong {
  font-size: 16px;
}

.pg__service-options small,
.pg__service-intro,
.pg__service-live {
  color: var(--pg-muted);
  font-size: 16px;
}

.pg__service-options em {
  color: var(--pg-success);
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

.pg__service-live {
  min-height: 20px;
  margin: 12px 0 0;
}

/* ========================================================================== */
/* Dialoge und Produkt-Sheet                                                  */
/* ========================================================================== */

.pg__dialog {
  width: min(860px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: visible;
  color: var(--pg-text);
  background: transparent;
  border: 0;
}

.pg__dialog::backdrop {
  background: rgba(15, 13, 11, 0.6);
  backdrop-filter: blur(7px);
}

.pg__dialog-surface {
  display: grid;
  max-height: calc(100dvh - 28px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: var(--pg-text);
  background: var(--pg-surface);
  border: 1px solid var(--pg-line);
  border-radius: 25px;
  box-shadow: var(--pg-shadow-lg);
}

.pg__dialog-surface > header {
  align-items: center;
  padding: 16px 18px 13px;
  border-bottom: 1px solid var(--pg-line);
}

.pg__dialog-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 17px 18px;
}

.pg__dialog-surface > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px 17px;
  background: var(--pg-surface-soft);
  border-top: 1px solid var(--pg-line);
}

.pg__dialog-price {
  display: grid;
}

.pg__dialog-price small {
  color: var(--pg-muted);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pg__dialog-price strong {
  font-size: 22px;
  font-weight: 950;
}

.pg__dialog-product {
  display: grid;
  grid-template-columns: minmax(180px, 0.44fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  margin-bottom: 19px;
}

.pg__dialog-product-media {
  position: relative;
  display: grid;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  align-self: start;
  justify-self: center;
  place-items: center;
  overflow: hidden;
  background: var(--pg-primary-soft);
  border-radius: 18px;
}

.pg__dialog-product-media img {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(44dvh, 420px);
  object-fit: contain;
  border-radius: 18px;
}

.pg__dialog-product-media:not(:has(img)),
.pg__dialog-product-media.is-image-error {
  width: 100%;
  min-height: 220px;
}

.pg__dialog-product-media.is-image-error img {
  display: none;
}

.pg__dialog-product-placeholder {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--pg-primary);
  font-size: 38px;
  font-weight: 950;
}

.pg__dialog-product-copy {
  display: grid;
  align-content: center;
  gap: 6px;
}

.pg__dialog-product-copy > small {
  color: var(--pg-primary);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pg__dialog-product-copy > strong {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.pg__dialog-product-copy p {
  margin: 2px 0 0;
  color: var(--pg-muted);
  font-size: 16px;
  line-height: 1.6;
}

.pg__option-group {
  margin: 0 0 15px;
  padding: 0;
  border: 0;
}

.pg__option-group legend {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 900;
}

.pg__option-group legend small {
  color: var(--pg-primary);
  font-size: 16px;
}

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

.pg__option {
  position: relative;
  min-width: 0;
}

.pg__option input {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.pg__option > span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  background: var(--pg-surface-soft);
  border: 1px solid var(--pg-line);
  border-radius: 13px;
  font-size: 16px;
  font-weight: 800;
}

.pg__option > span b {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg__option > span small {
  flex: 0 0 auto;
  color: var(--pg-primary);
  font-size: 16px;
}

.pg__option input:checked + span {
  color: var(--pg-primary);
  background: var(--pg-primary-soft);
  border-color: color-mix(in srgb, var(--pg-primary) 55%, var(--pg-line));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pg-primary) 10%, transparent);
}

.pg__option input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--pg-primary) 36%, transparent);
}

.pg__option-group.is-invalid {
  padding: 9px;
  border: 1px solid var(--pg-danger);
  border-radius: 14px;
}

.pg__dialog-controls {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  gap: 13px;
  margin-top: 17px;
}

.pg__dialog-controls label,
.pg__dialog-quantity-label {
  display: grid;
  min-width: 0;
  gap: 7px;
}



.pg__dialog-quantity-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pg__dialog-quantity-presets button {
  min-height: 42px;
  color: var(--pg-text);
  background: var(--pg-surface-soft);
  border: 1px solid var(--pg-line);
  border-radius: 11px;
  font-size: 16px;
  font-weight: 950;
}

.pg__dialog-quantity-presets button:hover,
.pg__dialog-quantity-presets button.is-active,
.pg__dialog-quantity-presets button[aria-pressed="true"] {
  color: var(--pg-primary);
  background: var(--pg-primary-soft);
  border-color: color-mix(in srgb, var(--pg-primary) 55%, var(--pg-line));
}

.pg__dialog-quantity-presets button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pg-primary) 36%, transparent);
  outline-offset: 2px;
}

.pg__dialog-quantity {
  display: grid;
  grid-template-columns: 48px minmax(64px, 1fr) 48px;
  overflow: hidden;
  background: var(--pg-surface-soft);
  border: 1px solid var(--pg-line);
  border-radius: 13px;
}

.pg__dialog-quantity button,
.pg__dialog-quantity input {
  min-height: 50px;
  padding: 0;
  text-align: center;
  background: transparent;
  border: 0;
}

.pg__dialog-quantity button {
  font-size: 22px;
}

.pg__dialog-quantity input {
  border-inline: 1px solid var(--pg-line);
}

.pg__dialog-note-label .pg__option-note {
  min-height: 78px;
}

/* ========================================================================== */
/* Footer                                                                     */
/* ========================================================================== */

.pg__footer {
  display: flex;
  flex-wrap: wrap;
  width: min(var(--pg-page-max), 100%);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 20px clamp(14px, 3vw, 34px) calc(24px + var(--pg-safe-bottom));
  color: var(--pg-muted);
  border-top: 1px solid var(--pg-line);
  font-size: 16px;
}

.pg__footer > strong,
.pg__footer > nav,
.pg__footer > small {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.pg__footer small {
  font-size: 16px;
  line-height: 1.5;
}

.pg__footer strong {
  color: var(--pg-text);
}

.pg__footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pg__footer a {
  color: inherit;
  text-decoration: none;
}

/* ========================================================================== */
/* Öffentliche Bestellstatusseite                                             */
/* ========================================================================== */

.pg--status {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}

.pg__status-main {
  width: min(1180px, 100%);
  flex: 1;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 42px) clamp(14px, 4vw, 34px) 40px;
}

.pg__status-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(145deg, var(--pg-primary-strong), var(--pg-primary));
  border-radius: var(--pg-radius-lg);
  box-shadow: 0 22px 52px color-mix(in srgb, var(--pg-primary) 22%, transparent);
}

.pg__status-hero .pg__eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.pg__status-hero h1 {
  margin: 4px 0;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.pg__status-hero p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.pg__status-pill {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
}

.pg__status-pill[data-status="ready"],
.pg__status-pill[data-status="served"],
.pg__status-pill[data-status="collected"] {
  background: #11734d;
}

.pg__status-pill[data-status="cancelled"] {
  background: #781923;
}

.pg__status-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.pg__status-track li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--pg-muted);
  text-align: center;
  font-size: 16px;
}

.pg__status-track li::before {
  position: absolute;
  z-index: 0;
  top: 17px;
  right: 50%;
  width: 100%;
  height: 3px;
  content: "";
  background: var(--pg-line);
}

.pg__status-track li:first-child::before {
  display: none;
}

.pg__status-track span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--pg-surface);
  border: 2px solid var(--pg-line);
  border-radius: 50%;
  font-weight: 900;
}

.pg__status-track li.is-active {
  color: var(--pg-text);
}

.pg__status-track li.is-active::before {
  background: var(--pg-success);
}

.pg__status-track li.is-active span {
  color: #fff;
  background: var(--pg-success);
  border-color: var(--pg-success);
}

.pg__status-track li.is-current span {
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--pg-success) 16%, transparent);
}

.pg__eta-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(145deg, #9b5b05, #c77c14);
  border-radius: var(--pg-radius);
  box-shadow: var(--pg-shadow-sm);
}

.pg__eta-card > span {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  font-size: 25px;
}

.pg__eta-card div {
  display: grid;
}

.pg__eta-card small,
.pg__eta-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.pg__eta-card strong {
  font-size: 24px;
  font-weight: 950;
}

.pg__eta-card p {
  margin: 1px 0 0;
}

.pg__status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  align-items: start;
  gap: 20px;
}

.pg__status-side {
  display: grid;
  gap: 14px;
}

.pg__status-card {
  padding: clamp(18px, 3vw, 25px);
  background: var(--pg-surface);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius);
  box-shadow: var(--pg-shadow-sm);
}

.pg__status-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pg__status-card > header h2,
.pg__status-card--notice h1 {
  margin: 2px 0 0;
  font-size: 21px;
}

.pg__status-card > header > b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--pg-primary);
  background: var(--pg-primary-soft);
  border-radius: 11px;
}

.pg__status-items {
  border-block: 1px solid var(--pg-line);
}

.pg__status-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--pg-line);
}

.pg__status-item:first-child {
  border-top: 0;
}

.pg__status-item > span {
  color: var(--pg-primary);
  font-weight: 900;
}

.pg__status-item div {
  min-width: 0;
}

.pg__status-item div strong {
  display: block;
}

.pg__status-item small {
  display: block;
  margin-top: 2px;
  color: var(--pg-muted);
  font-size: 16px;
}

.pg__status-item > strong {
  font-size: 16px;
  white-space: nowrap;
}

.pg__status-card > footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 15px;
}

.pg__status-card > footer strong {
  font-size: 22px;
  font-weight: 950;
}

.pg__status-facts {
  display: grid;
  gap: 12px;
}

.pg__status-facts > div {
  display: grid;
  gap: 2px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--pg-line);
}

.pg__status-facts > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pg__status-facts span {
  color: var(--pg-muted);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pg__status-actions {
  display: grid;
  gap: 8px;
}

.pg__status-actions > * {
  width: 100%;
}

.pg__status-card--notice {
  display: grid;
  width: min(620px, 100%);
  min-height: 400px;
  place-items: center;
  align-content: center;
  gap: 10px;
  margin: 0 auto;
  text-align: center;
}

.pg__status-symbol {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: #fff;
  background: var(--pg-danger);
  border-radius: 22px;
  font-size: 34px;
  font-weight: 950;
}

.pg__basket-return {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--pg-line);
  border-radius: 14px; color: var(--pg-text); background: var(--pg-surface); text-decoration: none;
}
.pg__basket-return > b { color: var(--pg-primary); font-size: 16px; }

/* Current guest pickup receipts remain visible when returning to the pickup entry. */
.pg__active-orders{display:grid;gap:12px}.pg__active-order{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:clamp(20px,3vw,30px);border:1px solid var(--pg-accent,var(--pg-line));border-radius:24px;background:var(--pg-surface);color:var(--pg-text)}.pg__active-order h2{margin:8px 0;font-size:clamp(24px,3vw,32px);line-height:1.15}.pg__active-order p{margin:8px 0;font-size:16px;line-height:1.5}.pg__active-order>.pg__primary-button{flex-shrink:0;min-height:48px;font-size:16px}.pg__active-orders[hidden]{display:none}
@media(max-width:760px){.pg__active-order{display:grid;gap:16px}.pg__active-order>.pg__primary-button{width:100%}}

/* ========================================================================== */
/* Responsive                                                                 */
/* ========================================================================== */

@media (max-width: 1180px) {
  .pg__order-layout {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.38fr);
  }

  .pg__product-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }

  .pg__header-cart-copy {
    display: none;
  }

  .pg__header-cart {
    padding-right: 7px;
  }
}

@media (max-width: 959px) {
  :root {
    --pg-header-height: 66px;
  }

  .pg__network,
  .pg__install-button {
    display: none !important;
  }

  .pg__intro {
    grid-template-columns: 1fr;
  }

  .pg__intro-badge {
    min-height: auto;
  }

  .pg__order-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 13px;
  }

  .pg__catalog {
    padding: 14px;
  }

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

  .pg__product {
    min-height: 235px;
  }

  .pg__product-copy {
    padding: 11px;
  }

  .pg__product-copy > strong {
    font-size: 16px;
  }

  .pg__product-copy p {
    font-size: 16px;
  }

  .pg__checkout-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 760px) {
  :root {
    --pg-header-height: 110px;
  }

  .pg__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    gap: 8px;
    min-height: var(--pg-header-height);
    padding: 8px 10px;
  }

  .pg__header-actions {
    display: contents;
  }

  .pg__theme-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .pg__header-cart {
    grid-column: 3;
    grid-row: 1;
  }

  .pg__voice-open {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .pg__brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 13px;
  }

  .pg__brand strong {
    max-width: 34vw;
    font-size: 16px;
  }

  .pg__brand small {
    max-width: 36vw;
    font-size: 16px;
  }

  .pg__languages {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }

  .pg__languages a { min-width: 44px; min-height: 44px; }
  .pg__header { min-height: auto; }
  .pg__voice-open { grid-row: 3; }
  .pg__order-entry { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; padding: 7px 9px; }
  .pg__order-entry > a { min-width: 0; min-height: 44px; padding: 7px 3px; font-size: 16px; overflow-wrap: normal; }
  .pg__nav-full { display: none; }
  .pg__nav-short { display: inline; }
  .pg__basket-return { grid-column: 3; grid-row: 1; }
  .pg__basket-return .pg__header-cart-copy { display: none; }

  .pg__header-cart {
    min-height: 40px;
    border-radius: 13px;
  }

  .pg__header-cart-icon {
    width: 32px;
    height: 32px;
  }

  .pg__main {
    padding: 12px 9px calc(104px + var(--pg-safe-bottom));
  }

  .pg__intro {
    gap: 9px;
    margin-bottom: 10px;
  }

  .pg__intro-copy {
    padding: 19px 16px;
    border-radius: 21px;
  }

  .pg__intro h1 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .pg__benefits {
    gap: 6px;
    margin-top: 15px;
  }

  .pg__benefits span {
    min-height: 30px;
    font-size: 16px;
  }

  .pg__intro-badge {
    padding: 13px;
    border-radius: 18px;
  }

  .pg__intro-badge > span {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 14px;
  }

  .pg__intro-badge strong {
    font-size: 16px;
  }

  .pg__ai-first {
    gap: 11px;
    margin-bottom: 10px;
    padding: 14px;
    border-radius: 21px;
  }

  .pg__ai-first-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  .pg__ai-orb {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 15px;
  }

  .pg__ai-orb i {
    inset: 6px;
    border-radius: 11px;
  }

  .pg__ai-first-head h2 {
    font-size: 22px;
  }

  .pg__ai-first-head > div > p:last-child {
    font-size: 16px;
  }

  .pg__ai-state {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: -3px;
    padding: 5px 8px;
  }

  .pg__ai-command {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    padding: 5px;
    border-radius: 16px;
  }

  .pg__ai-mic {
    width: 48px;
    min-height: 46px;
    border-radius: 12px;
  }

  .pg__ai-command input {
    min-height: 46px;
    font-size: 16px;
  }

  .pg__ai-send {
    width: 48px;
    min-height: 46px;
    padding: 0;
    border-radius: 12px;
  }

  .pg__ai-send span {
    display: none;
  }

  .pg__ai-examples {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pg__ai-examples button {
    min-height: 38px;
    text-align: left;
  }

  .pg__steps {
    margin-bottom: 10px;
    padding: 4px;
  }

  .pg__steps button {
    min-height: 38px;
    padding: 3px 8px 3px 4px;
  }

  .pg__steps button span {
    width: 30px;
    height: 30px;
  }

  .pg__steps button b {
    font-size: 16px;
  }

  .pg__menu-toolbar {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 7px;
  }

  .pg__search {
    min-height: 48px;
    padding-left: 12px;
  }

  .pg__search input {
    height: 44px;
    font-size: 16px;
  }

  .pg__search kbd {
    display: none;
  }

  .pg__refresh-button {
    min-width: 48px;
    width: 48px;
    padding: 0;
  }

  .pg__refresh-button b {
    display: none;
  }

  .pg__category-rail {
    top: calc(var(--pg-navigation-height, var(--pg-header-height)) + 4px);
    gap: 6px;
    margin-inline: -2px;
    padding-block: 5px;
  }

  .pg__category {
    min-width: 112px;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    gap: 6px;
    border-radius: 12px;
  }

  .pg__category b {
    width: 31px;
    height: 31px;
  }

  .pg__order-layout {
    display: block;
  }

  .pg__catalog {
    padding: 11px;
    border-radius: 19px;
  }

  .pg__catalog-head h2 {
    font-size: 22px;
  }

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

  .pg__product {
    min-height: 205px;
    border-radius: 15px;
  }

  .pg__product-media {
    aspect-ratio: 4 / 3;
  }

  .pg__product-station {
    top: 6px;
    left: 6px;
    padding: 4px 6px;
    font-size: 16px;
  }

  .pg__product-add {
    right: 7px;
    bottom: 7px;
    width: 35px;
    height: 35px;
    border-radius: 11px;
    font-size: 20px;
  }

  .pg__product-copy {
    gap: 4px;
    padding: 9px;
  }

  .pg__product-copy > strong {
    font-size: 16px;
  }

  .pg__product-copy p {
    min-height: 1.35em;
    font-size: 16px;
    -webkit-line-clamp: 1;
  }

  .pg__product-copy footer strong {
    font-size: 16px;
  }

  .pg__product-copy footer small {
    display: none;
  }

  .pg__cart-panel {
    position: fixed;
    z-index: 92;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(88dvh, 760px);
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -24px 80px rgba(20, 15, 11, 0.28);
    transform: translateY(105%);
    transition: transform 220ms ease;
  }

  .pg.is-cart-open .pg__cart-panel {
    transform: translateY(0);
  }

  .pg__cart-close {
    display: grid;
  }

  .pg__cart-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: block;
    pointer-events: none;
    background: rgba(15, 13, 11, 0.54);
    opacity: 0;
    transition: opacity 180ms ease;
  }

  .pg.is-cart-open .pg__cart-backdrop {
    pointer-events: auto;
    opacity: 1;
  }

  .pg__mobile-cart {
    display: flex;
    bottom: calc(var(--ev-mobile-dock-h, 76px) + env(safe-area-inset-bottom, 0px) + 8px);
  }

  .pg__service-dock {
    right: 10px;
    bottom: calc(var(--ev-mobile-dock-h, 76px) + var(--pg-mobile-cart-clearance, 0px) + var(--pg-safe-bottom) + 8px);
    left: 10px;
  }

  .pg:not(:has(.pg__mobile-cart:not([hidden]))) .pg__service-dock {
    bottom: calc(var(--ev-mobile-dock-h, 76px) + var(--pg-safe-bottom) + 8px);
  }

  .pg__service-button {
    width: 100%;
    min-width: 0;
  }

  .pg__checkout-layout {
    display: block;
  }

  .pg__checkout-summary {
    position: static;
    margin-top: 11px;
    border-radius: 18px;
  }

  .pg__fields {
    grid-template-columns: 1fr;
  }

  .pg__field--wide {
    grid-column: auto;
  }

  .pg__form-card,
  .pg__review-card,
  .pg__payment-card,
  .pg__done {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .pg__view-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pg__view-actions > * {
    width: 100%;
  }

  .pg__view-actions .pg__primary-button,
  .pg__view-actions .pg__pay-button {
    grid-row: 1;
  }

  .pg__dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    margin: auto;
  }

  .pg__dialog-surface {
    max-height: calc(100dvh - 20px);
    border-width: 1px;
    border-radius: 22px;
  }

  .pg__dialog-product {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .pg__dialog-product-media img {
    max-height: min(30dvh, 260px);
  }

  .pg__dialog-product-media:not(:has(img)),
  .pg__dialog-product-media.is-image-error {
    min-height: 160px;
  }

  .pg__dialog-product-copy > strong {
    font-size: 20px;
  }

  .pg__option-list {
    grid-template-columns: 1fr;
  }

  .pg__dialog-controls {
    grid-template-columns: 1fr;
  }

  .pg__footer {
    flex-direction: column;
    padding-bottom: calc(92px + var(--pg-safe-bottom));
    text-align: center;
  }

  .pg__status-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .pg__status-grid {
    grid-template-columns: 1fr;
  }

  .pg__status-track strong {
    font-size: 16px;
  }

  .pg__status-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .pg__status-item > strong {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .pg [data-pg-pickup-choice] {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg__product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .pg__product {
    display: grid;
    grid-template-columns: minmax(116px, 38%) minmax(0, 1fr);
    min-height: 154px;
  }

  .pg__product-media {
    height: 100%;
    min-height: 154px;
    aspect-ratio: auto;
  }

  .pg__product-add {
    width: 44px;
    height: 44px;
  }

  .pg__product-copy {
    min-width: 0;
    padding: 12px;
  }

  .pg__product-copy p {
    display: block;
    min-height: 0;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .pg__product-copy footer {
    min-width: 0;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .pg__product-copy footer strong {
    max-width: 100%;
  }

  .pg__status-track {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-block: 18px;
  }

  .pg__status-track li {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 52px;
    align-items: center;
    justify-items: start;
    gap: 12px;
    text-align: left;
  }

  .pg__status-track li::before {
    top: auto;
    right: auto;
    bottom: 50%;
    left: 17px;
    width: 3px;
    height: 100%;
  }

  .pg__status-track strong {
    line-height: 1.25;
  }
}

.pg__status-hero [data-pg-status-message] {
  max-width: 28ch;
  overflow-wrap: anywhere;
}

@media (max-width: 374px) {
  .pg__brand strong {
    max-width: 28vw;
  }

  .pg__brand small {
    display: none;
  }

  .pg__product-grid {
    gap: 6px;
  }

  .pg__product-copy {
    padding: 8px;
  }

  .pg__product-station {
    display: none;
  }

  .pg__benefits span:last-child {
    display: none;
  }
}

/* ========================================================================== */
/* Dark Theme, reduzierte Bewegung und Druck                                  */
/* ========================================================================== */

/* EverTheme owns system preference and explicit choice; derive guest colors from its tokens. */
html[data-theme="dark"] {
  --pg-shadow-xs: var(--ev-shadow-sm);
  --pg-shadow-sm: var(--ev-shadow);
  --pg-shadow-md: var(--ev-shadow-lg);
  --pg-shadow-lg: var(--ev-shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
  .pg *,
  .pg *::before,
  .pg *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.pg[data-browse-only="1"] .pg__order-layout {
  grid-template-columns: minmax(0, 1fr);
}

.pg[data-browse-only="1"] .pg__header-cart,
.pg[data-browse-only="1"] .pg__cart-panel,
.pg[data-browse-only="1"] .pg__mobile-cart,
.pg[data-browse-only="1"] .pg__steps,
.pg[data-browse-only="1"] .pg__dialog-controls,
.pg[data-browse-only="1"] .pg__dialog-price,
.pg[data-browse-only="1"] [data-pg-dialog-add] {
  display: none !important;
}

@media print {
  .pg__header,
  .pg__steps,
  .pg__menu-toolbar,
  .pg__category-rail,
  .pg__mobile-cart,
  .pg__cart-backdrop,
  .pg__service-dock,
  .pg__service-dialog,
  .pg__footer {
    display: none !important;
  }

  .pg,
  .pg__main,
  .pg__catalog,
  .pg__form-card,
  .pg__review-card,
  .pg__payment-card,
  .pg__done,
  .pg__status-card {
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
}

/* Shared navigation is one sticky wrapper, with language and basket in its flow. */
.pg [data-guest-navigation]{padding-top:env(safe-area-inset-top)}
.pg .guest-links>a{font-size:16px;white-space:normal}
.pg__dialog-product-media{width:100%;min-height:120px;background:var(--pg-surface)}
.pg__dialog-product-media img{width:100%;height:min(38dvh,420px);object-fit:contain}
.pg__dialog{max-height:var(--guest-viewport-height,100dvh)}

.pg__dialog-surface>footer{padding-bottom:max(16px,env(safe-area-inset-bottom))}
.pg__theme-toggle,.pg__header-cart,.pg__icon-button{min-width:44px;min-height:44px}
@media(max-width:760px){.pg__header{grid-template-columns:minmax(0,1fr) 44px 44px}.pg__navigation .guest-links{grid-template-columns:repeat(3,minmax(0,1fr))}.pg__network{display:none}}

.pg__navigation .guest-links>a{overflow-wrap:anywhere;white-space:normal}

.pg__dialog,.pg__dialog-surface{max-height:calc(var(--guest-viewport-height,100dvh) - 24px)}
.pg__header{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}

.pg__dialog{inset-block-start:calc(var(--guest-viewport-top,0px) + max(12px,env(safe-area-inset-top)));inset-block-end:auto;margin:0 auto}

/* The visible keyboard hint uses the same readable guest text size. */
.pg[data-guest-navigation-root] kbd{font-size:16px}

/* Compact guest topbar and state-preserving cart drawer. */
.pg__navigation{z-index:80}
.pg__header{position:static;display:flex;min-height:68px;padding-block:8px}
.pg__header-actions{display:flex;min-width:0;align-items:center;gap:6px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}
.pg__header-actions::-webkit-scrollbar{display:none}
.pg__header-actions>.guest-navigation-actions{display:flex;overflow:visible}
.pg__header-actions .pg__languages{display:flex;position:static;grid-column:auto;grid-row:auto;justify-self:auto}
.pg__header-actions .guest-languages a{min-width:44px;min-height:44px}
.pg .guest-nav-drawer .guest-links{display:grid;grid-template-columns:1fr;gap:8px;padding:14px 0}
.pg .guest-nav-drawer .guest-links>a{min-width:0;min-height:48px;padding:10px 13px;text-align:left;white-space:normal;overflow-wrap:normal}
.pg__order-layout{grid-template-columns:minmax(0,1fr)}
.pg__cart-panel{
  position:fixed;z-index:102;top:0;right:0;bottom:0;left:auto;
  width:min(430px,100vw);max-height:none;border-radius:24px 0 0 24px;
  box-shadow:-24px 0 80px rgba(20,15,11,.3);transform:translateX(105%);
  visibility:hidden;pointer-events:none;transition:transform 220ms ease,visibility 0s linear 220ms;
}
.pg__cart-panel:not([open]){display:none}
.pg__cart-panel[open]{display:grid;margin:0}
.pg__cart-panel::backdrop{background:rgba(15,13,11,.54);backdrop-filter:blur(2px)}
.pg.is-cart-open .pg__cart-panel{transform:translateX(0);visibility:visible;pointer-events:auto;transition-delay:0s}
.pg__cart-close{display:grid}
.pg__cart-backdrop{position:fixed;z-index:100;inset:0;display:block;pointer-events:none;background:rgba(15,13,11,.54);opacity:0;transition:opacity 180ms ease}
.pg.is-cart-open .pg__cart-backdrop{pointer-events:auto;opacity:1}

@media(max-width:760px){
  :root{--pg-header-height:68px}
  .pg__header{display:flex;min-height:68px;gap:6px;padding:8px}
  .pg__brand{flex:0 1 auto}
  .pg__brand strong{max-width:24vw}
  .pg__brand small{display:none}
  .pg__header-actions{display:flex;flex:1 1 auto;justify-content:flex-end}
  .pg__theme-toggle,.pg__header-cart,.pg__voice-open,.pg__basket-return{position:static;grid-column:auto;grid-row:auto;flex:0 0 auto}
  .pg__voice-open{width:auto;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .pg__cart-panel{top:0;right:0;bottom:0;left:auto;width:min(390px,100vw);max-height:none;border-width:0 0 0 1px;border-radius:22px 0 0 22px;transform:translateX(105%)}
  .pg.is-cart-open .pg__cart-panel{transform:translateX(0)}
}

@media(max-width:390px){
  .pg__brand>span:last-child{display:none}
  .pg__brand-mark{width:42px;height:42px;flex-basis:42px}
  .pg__header-actions{justify-content:flex-start}
}

/* Ready acknowledgement is a compact viewport-centred status card. */
.pg__dialog.pg__ready-dialog{
  position:fixed;inset:0;width:min(420px,calc(100vw - 24px));height:max-content;
  max-height:calc(100dvh - 24px);margin:auto;
}
.pg__ready-card{position:relative;display:grid;grid-template-rows:auto auto auto auto;justify-items:center;padding:28px 24px 22px;text-align:center;border-radius:26px}
.pg__ready-mark{display:grid;width:64px;height:64px;place-items:center;margin-bottom:10px;color:#fff;background:linear-gradient(145deg,var(--pg-success),#08734b);border-radius:20px;box-shadow:0 12px 30px color-mix(in srgb,var(--pg-success) 30%,transparent);font-size:34px;font-weight:950}
.pg__ready-card>header{justify-content:center;padding:0;border:0}
.pg__ready-card>header>div{display:grid;justify-items:center}
.pg__ready-card .pg__eyebrow{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pg__ready-card h2{margin-top:6px;font-size:clamp(26px,7vw,34px)}
.pg__ready-card>.pg__dialog-body{padding:12px 0 18px;overflow:visible;color:var(--pg-muted)}
.pg__ready-card>.pg__dialog-body p{margin:0}
.pg__ready-card>footer{width:100%;padding:0;background:transparent;border:0}
.pg__ready-card>footer .pg__primary-button{width:100%;min-height:48px}

.pg__terminal-receipt{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;margin:18px 0}
.pg__terminal-receipt[hidden]{display:none}
.pg__terminal-receipt h2,.pg__terminal-receipt p{margin:4px 0}
.pg__terminal-receipt>.pg__primary-button{min-height:48px;white-space:nowrap}
@media(max-width:640px){.pg__terminal-receipt{grid-template-columns:auto minmax(0,1fr)}.pg__terminal-receipt>.pg__primary-button{grid-column:1/-1;width:100%}}


/* Native ordering modals own viewport placement, independent of shell/drawer offsets. */
body.pwa-guest-v3-mode { --ev-mobile-dock-h: 0px; }
.pg .pg__dialog[open]:not(.pg__ready-dialog),
.pg .pg__cart-panel[open] {
  position: fixed;
  inset: auto;
  top: calc(var(--guest-viewport-top, 0px) + var(--guest-viewport-height, 100dvh) / 2);
  left: 50vw;
  width: min(860px, calc(100vw - 24px));
  height: auto;
  max-width: none;
  max-height: calc(var(--guest-viewport-height, 100dvh) - 24px);
  margin: 0;
  transform: translate(-50%, -50%);
}
.pg .pg__cart-panel[open] {
  width: min(560px, calc(100vw - 24px));
  border: 1px solid var(--pg-line);
  border-radius: 24px;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}
.pg .pg__cart-panel > footer {
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.pg .pg__dialog-body,
.pg .pg__cart-lines { min-height: 0; }
.pg__cart-availability {
  margin: 0 0 10px;
  color: var(--pg-muted);
  font-size: 16px;
  line-height: 1.4;
}
@media (max-width: 760px) {
  .pg .pg__dialog[open]:not(.pg__ready-dialog),
  .pg .pg__cart-panel[open] {
    width: calc(100vw - 16px);
    max-height: calc(var(--guest-viewport-height, 100dvh) - 16px);
  }
  .pg .pg__dialog-surface {
    max-height: calc(var(--guest-viewport-height, 100dvh) - 16px);
  }
}

/* One order sheet owns scrolling and its two actions; surrounding chrome stays quiet. */
.pg__cart-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pg__cart-content .pg__cart-lines { overflow: visible; max-height: none; }
.pg__order-options { padding: 0 17px 17px; }
.pg__order-options > summary { min-height: 44px; padding: 12px 0; color: var(--pg-text); font-size: 16px; font-weight: 700; cursor: pointer; }
.pg__order-options .pg__fields { padding: 8px 0 0; }
.pg__cart-panel > footer .pg__secondary-button { width: 100%; margin-top: 8px; min-height: 44px; }
.pg.is-cart-open [data-pg-service-dock],
.pg[data-current-step]:not([data-current-step="menu"]) [data-pg-service-dock] { display: none; }
@media (max-width: 760px) {
  body.pwa-guest-v3-mode [data-pg-shell-cart-open],
  .pg [data-pg-cart-open].pg__header-cart { display: none; }
  .pg__service-button { min-width: 0; min-height: 44px; padding: 8px 10px; gap: 8px; }
  .pg__service-button-copy small { display: none; }
  .pg__service-button-icon { width: 28px; height: 28px; }
}

.pg__cart-message { margin: 0; padding: 12px 17px; color: var(--pg-text); font-size: 16px; line-height: 1.5; }
.pg__cart-message:empty { display: none; }
.pg__cart-message.is-error { color: var(--pg-danger, #a12c25); }


/* Guest table QR: direct, readable menu. Pickup/public browsing is unaffected. */
.pg[data-entry-point="table"][data-has-table="1"][data-channel="dinein"] .pg__flow-actions,
.pg[data-entry-point="table"][data-has-table="1"][data-channel="dinein"] .pg__intro,
.pg[data-entry-point="table"][data-has-table="1"][data-channel="dinein"] .pg__ai-first {
  display: none !important;
}

.pg__table-menu-heading {
  margin: 0 0 12px;
}

.pg__table-menu-heading h1 {
  margin: 0;
  color: var(--pg-text);
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.16;
}

.pg__table-menu-heading p {
  margin: 6px 0 0;
  color: var(--pg-muted);
  font-size: 16px;
}

/* PrikThai tabletop: all DB categories in ONE horizontal, sticky swipe rail.
 * No 2/3/4-column vertical category grid; preserve source menu order and labels. */
.pg[data-entry-point="table"][data-has-table="1"][data-channel="dinein"] .pg__category-rail {
  position: sticky;
  z-index: 80;
  top: max(8px, env(safe-area-inset-top));
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 7px;
  scrollbar-width: thin;
  scrollbar-color: var(--pg-primary) transparent;
  margin: 0 0 14px;
  padding: 7px 7px 10px;
  background: var(--pg-bg);
  border-bottom: 1px solid var(--pg-line);
  backdrop-filter: none;
}
.pg[data-entry-point="table"][data-has-table="1"][data-channel="dinein"] .pg__category-rail::-webkit-scrollbar {
  display: block;
  height: 5px;
}
.pg[data-entry-point="table"][data-has-table="1"][data-channel="dinein"] .pg__category-rail::-webkit-scrollbar-thumb {
  background: var(--pg-primary);
  border-radius: 8px;
}
.pg[data-entry-point="table"][data-has-table="1"][data-channel="dinein"] .pg__category {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-width: 124px;
  max-width: min(76vw, 260px);
  min-height: 52px;
  padding: 10px 12px;
  scroll-snap-align: start;
  border-radius: 12px;
}
.pg[data-entry-point="table"][data-has-table="1"][data-channel="dinein"] .pg__category b {
  display: none;
}
.pg[data-entry-point="table"][data-has-table="1"][data-channel="dinein"] .pg__category span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  font-size: 16px;
  line-height: 1.25;
}
.pg[data-entry-point="table"][data-has-table="1"][data-channel="dinein"] .pg__category small {
  flex: 0 0 auto;
}
.pg[data-entry-point="table"][data-has-table="1"][data-channel="dinein"] .pg__category:focus-visible {
  outline: 3px solid var(--pg-primary);
  outline-offset: -3px;
}
@media (prefers-reduced-motion: reduce) {
  .pg[data-entry-point="table"][data-has-table="1"][data-channel="dinein"] .pg__category-rail {
    scroll-behavior: auto;
  }
}

/* Dine-in QR only: minimal language/theme strip, never global navigation. */
.pg[data-entry-point="table"][data-has-table="1"] .pg__table-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px;
  border: 1px solid var(--pg-line);
  border-radius: 14px;
  background: var(--pg-surface);
}
.pg[data-entry-point="table"][data-has-table="1"] .pg__table-language {
  display: inline-flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.pg[data-entry-point="table"][data-has-table="1"] .pg__table-language a,
.pg[data-entry-point="table"][data-has-table="1"] .pg__table-theme {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--pg-line);
  border-radius: 11px;
  background: var(--pg-surface-soft);
  color: var(--pg-text);
  text-decoration: none;
  font: 800 16px/1.2 var(--pg-font);
  white-space: nowrap;
}
.pg[data-entry-point="table"][data-has-table="1"] .pg__table-language a[aria-current="page"] {
  border-color: var(--pg-primary);
  background: var(--pg-primary);
  color: #fff;
}
.pg[data-entry-point="table"][data-has-table="1"] .pg__table-theme {
  cursor: pointer;
  border-color: var(--pg-primary);
  color: var(--pg-primary);
}
.pg[data-entry-point="table"][data-has-table="1"] .pg__table-controls :is(a,button):focus-visible {
  outline: 3px solid var(--pg-primary);
  outline-offset: 2px;
}
.pg[data-entry-point="table"][data-has-table="1"] .pg__main { padding-top: 8px; }
.pg[data-entry-point="table"][data-has-table="1"] .pg__category-rail { top: 8px; }
/* A verified table starts with food, not a promotional introduction or AI prompt. */
.pg[data-entry-point="table"][data-has-table="1"] .pg__flow-actions,
.pg[data-entry-point="table"][data-has-table="1"] .pg__intro,
.pg[data-entry-point="table"][data-has-table="1"] .pg__ai-first { display: none !important; }
@media(max-width: 370px) {
  .pg[data-entry-point="table"][data-has-table="1"] .pg__table-controls { gap: 5px; padding: 6px; }
  .pg[data-entry-point="table"][data-has-table="1"] .pg__table-language { gap: 4px; }
  .pg[data-entry-point="table"][data-has-table="1"] .pg__table-language a,
  .pg[data-entry-point="table"][data-has-table="1"] .pg__table-theme { padding-inline: 7px; }
}
/* PrikThai food photography 16:9 – no ingredient crop or portrait-only modal. */
.pg .pg__product-media {
  aspect-ratio: 16 / 9;
  background: var(--pg-surface-soft);
}
.pg .pg__product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.pg .pg__product:hover .pg__product-media img {
  transform: none;
}
.pg .pg__dialog-product-media {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
  overflow: hidden;
  justify-self: stretch;
  align-self: start;
  background: var(--pg-surface-soft);
}
.pg .pg__dialog-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
}
.pg .pg__dialog-product-media.is-image-error {
  aspect-ratio: 16 / 9;
  min-height: 0;
}
@media (max-width: 760px) {
  .pg .pg__dialog-product { gap: 10px; }
  .pg .pg__dialog-product-media { margin-bottom: 0; }
}
