/* Modern menu (m_style = 3). Colours and font come from the venue's guest page design through --m-* on <body>. */
.qm { --m-tile: color-mix(in srgb, var(--m-text) 7%, var(--m-bg)); --m-line: color-mix(in srgb, var(--m-text) 16%, var(--m-bg)); --m-muted: color-mix(in srgb, var(--m-text) 62%, var(--m-bg));
  margin: 0; min-height: 100vh; min-height: 100dvh; background-color: var(--m-bg); color: var(--m-text); font-family: var(--m-font); font-size: 15px; line-height: 1.4; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
.qm *, .qm *::before, .qm *::after { box-sizing: border-box; }
.qm button { font: inherit; color: inherit; cursor: pointer; }
.qm svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.qm [hidden] { display: none !important; }
html.qm-locked, html.qm-locked body { overflow: hidden; }
.qm-app { width: min(100%, 680px); margin: 0 auto; padding: 14px 14px 28px; }
.qm-has-bar .qm-app { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.qm-head { display: flex; align-items: center; gap: 12px; padding: 4px 2px 12px; }
.qm-head h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.qm-venue { margin-inline-start: auto; color: var(--m-muted); font-size: 13px; text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.qm-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--m-line); border-radius: 14px; background: var(--m-tile); color: var(--m-text); text-decoration: none; }
.qm-search { margin-inline-start: auto; }
.qm-search-field { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--m-line); border-radius: 14px; outline: 0; background: var(--m-tile); color: var(--m-text); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }
.qm-search-field::placeholder { color: var(--m-muted); }
.qm-search-field:focus { border-color: var(--m-text); }
.qm-search-field::-webkit-search-cancel-button { display: none; }
[dir="rtl"] .qm-back svg { transform: scaleX(-1); }
.qm-chips { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; margin: 0 -14px 10px; padding: 8px 14px; overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--m-bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.qm-chips::-webkit-scrollbar { display: none; }
.qm-chips button { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--m-line); border-radius: 999px; background: transparent; font-size: 14px; white-space: nowrap; }
.qm-chips button[aria-pressed="true"] { border-color: var(--m-text); background: var(--m-text); color: var(--m-bg); font-weight: 600; }
.qm-list { display: grid; gap: 10px; }
.qm-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--m-line); border-radius: 18px; background: var(--m-tile); }
.qm-row { cursor: pointer; }
.qm-row.qm-in { animation: qm-rise .34s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--qm-i, 0) * 30ms); }
@keyframes qm-rise { from { opacity: 0; transform: translateY(12px); } }
.qm-sheet-photo { display: block; width: 100%; aspect-ratio: 16 / 10; margin: 0 0 12px; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: var(--m-tile); }
.qm-sheet-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qm-sheet-desc { margin: 0 0 8px; color: var(--m-muted); white-space: pre-line; overflow-wrap: anywhere; }
.qm-sheet-body > .qm-meta { margin: 0 0 16px; font-size: 16px; }
.qm-thumb { display: grid; place-items: center; width: 72px; height: 72px; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--m-text) 14%, var(--m-bg)); color: var(--m-muted); }
.qm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s; }
.qm-thumb img.on { opacity: 1; }
.qm-more { height: 1px; }
.qm-copy { min-width: 0; }
.qm-copy h2 { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.qm-source, .qm-desc, .qm-opts { margin: 3px 0 0; color: var(--m-muted); font-size: 13px; overflow-wrap: anywhere; }
.qm-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qm-opts { font-size: 12px; }
.qm-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 6px 0 0; font-size: 14px; }
.qm-meta strong { font-weight: 700; }
.qm-meta s, .qm-meta span { color: var(--m-muted); font-size: 13px; }
.qm-action { justify-self: end; }
.qm-add { min-height: 42px; padding: 0 16px; border: 1px solid var(--m-text); border-radius: 999px; background: transparent; font-size: 14px; font-weight: 600; white-space: nowrap; }
.qm-stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--m-line); border-radius: 999px; background: var(--m-bg); }
.qm-stepper button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--m-tile); }
.qm-stepper button:disabled { opacity: .35; cursor: default; }
.qm-stepper svg { width: 18px; height: 18px; }
.qm-stepper output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qm-empty { margin: 40px 0; text-align: center; color: var(--m-muted); }
.qm-bar { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 8; width: min(calc(100% - 28px), 652px); min-height: 56px; padding: 0 20px; border: 0; border-radius: 18px; background: var(--m-accent); color: var(--m-accent-text) !important; font-size: 16px; font-weight: 700; transform: translateX(-50%); box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
.qm-veil { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s; }
.qm-veil.on { opacity: 1; }
.qm-sheet { position: fixed; left: 50%; bottom: 0; z-index: 21; display: flex; flex-direction: column; width: min(100%, 680px); max-height: 88vh; max-height: 88dvh; border: 1px solid var(--m-line); border-bottom: 0; border-radius: 22px 22px 0 0; background: var(--m-bg); transform: translate(-50%, 104%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.qm-sheet.on { transform: translate(-50%, 0); }
.qm-sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 8px; }
.qm-sheet-head h2 { flex: 1; margin: 0; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.qm-sheet-body { padding: 4px 16px 12px; overflow-y: auto; overscroll-behavior: contain; }
.qm-sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--m-line); }
.qm-sheet-sum { flex: 1 0 100%; display: flex; justify-content: space-between; gap: 12px; margin: 0 2px 2px; font-size: 16px; }
.qm-primary, .qm-secondary { flex: 1; min-height: 52px; padding: 0 16px; border-radius: 16px; font-size: 15px; font-weight: 700; }
.qm-primary { border: 0; background: var(--m-accent); color: var(--m-accent-text) !important; }
.qm-primary:disabled { opacity: .6; }
.qm-secondary { border: 1px solid var(--m-line); background: var(--m-tile); }
.qm-group { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.qm-group legend { display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 8px; font-weight: 700; }
.qm-tag { padding: 2px 8px; border-radius: 999px; background: var(--m-tile); border: 1px solid var(--m-line); color: var(--m-muted); font-size: 11px; font-weight: 600; }
.qm-choices { display: grid; gap: 8px; }
.qm-choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 8px 14px; border: 1px solid var(--m-line); border-radius: 14px; background: var(--m-tile); text-align: start; }
.qm-choice[aria-checked="true"] { border-color: var(--m-text); }
.qm-choice-mark { width: 20px; height: 20px; flex: none; border: 2px solid var(--m-muted); border-radius: 50%; }
.qm-choice[role="checkbox"] .qm-choice-mark { border-radius: 6px; }
.qm-choice[aria-checked="true"] .qm-choice-mark { border-color: var(--m-text); background: var(--m-text); box-shadow: inset 0 0 0 3px var(--m-tile); }
.qm-choice-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.qm-choice-price { color: var(--m-muted); font-size: 13px; white-space: nowrap; }
.qm-lines { display: grid; gap: 10px; }
.qm-line { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--m-line); border-radius: 14px; background: var(--m-tile); }
.qm-line-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.qm-line-copy strong { font-weight: 600; overflow-wrap: anywhere; }
.qm-line-copy span { color: var(--m-muted); font-size: 13px; }
.qm-total { display: flex; justify-content: space-between; gap: 12px; margin: 14px 2px 6px; font-size: 16px; }
.qm-ask { margin: 8px 2px; color: var(--m-muted); }
.qm-link { padding: 6px 2px; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; }
.qm-time { width: 100%; min-height: 48px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--m-line); border-radius: 14px; background: var(--m-tile); color: var(--m-text); font: inherit; color-scheme: light dark; }
.qm-note { margin: 8px 2px 0; color: #e5484d; min-height: 0; }
.qm-note:empty { display: none; }
.qm-done { display: grid; place-items: center; width: 64px; height: 64px; margin: 18px auto 12px; border-radius: 50%; background: var(--m-accent); color: var(--m-accent-text); }
.qm-done svg { width: 32px; height: 32px; }
.qm-done-text { margin: 0 0 12px; text-align: center; font-size: 16px; }
.qm-photo { --qm-fade: 1; color: #fff; position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; overflow: hidden; background: rgba(0, 0, 0, calc(.94 * var(--qm-fade))); opacity: 0; transition: opacity .2s; touch-action: none; user-select: none; }
.qm-photo.on { opacity: 1; }
.qm-photo img { max-width: 100%; max-height: 100%; object-fit: contain; will-change: transform; -webkit-user-drag: none; }
/* ".qm button" inherits the text colour, so the white is set with the same weight */
.qm .qm-photo-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); inset-inline-end: 14px; border-color: rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .55); color: #fff; }
.qm-photo-caption { position: absolute; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0; color: #fff; text-align: center; font-weight: 600; text-shadow: 0 1px 4px #000; pointer-events: none; }
@media (max-width: 380px) { .qm-row { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px; } .qm-thumb { width: 60px; height: 60px; } .qm-add { padding: 0 12px; } .qm-stepper button { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .qm-sheet, .qm-veil, .qm-photo { transition: none; } .qm-row.qm-in { animation: none; } }
