/* "Rate your order" sheet (replaces the Google review prompt). Flat brand colours, no blur, no endless animation. */
.rs { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: flex-end; justify-content: center; font-family: inherit; }
.rs[hidden] { display: none; }
.rs-scrim { position: absolute; inset: 0; background: rgba(30, 18, 8, .5); }
.rs-card:focus { outline: none; }
.rs-card { position: relative; width: 100%; max-width: 520px; max-height: 92vh; display: flex; flex-direction: column; background: #fff; color: #2b1a0e; border-radius: 20px 20px 0 0; animation: rsUp .2s ease-out; }
.rs-card::before { content: ''; display: block; width: 40px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: #dccbb2; flex: none; }
@keyframes rsUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rs-card { animation: none; } }
@media (min-width: 720px) { .rs { align-items: center; } .rs-card { border-radius: 20px; } .rs-card::before { display: none; } }
.rs-body { padding: 12px 20px 8px; overflow: auto; overscroll-behavior: contain; }
.rs-title { margin: 4px 0 2px; font-size: 1.25rem; line-height: 1.3; font-weight: 800; }
.rs-sub { margin: 0 0 14px; color: #7b6650; font-size: .85rem; }
.rs-stars { display: flex; justify-content: center; gap: 4px; margin: 6px 0 2px; }
.rs-star { width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; color: #d9c9b3; display: grid; place-items: center; }
.rs-star svg { width: 38px; height: 38px; fill: currentColor; }
.rs-star.on { color: #e0a21a; }
.rs-star:focus-visible, .rs-chip:focus-visible, .rs-vote:focus-visible, .rs-btn:focus-visible { outline: 3px solid #7a3b12; outline-offset: 2px; }
.rs-word { min-height: 1.3em; margin: 0 0 8px; text-align: center; font-weight: 700; color: #7a3b12; }
.rs-h { margin: 14px 0 8px; font-size: .9rem; font-weight: 800; }
.rs-h small { font-weight: 500; color: #7b6650; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-chip { min-height: 40px; padding: 0 14px; border: 1.5px solid #e6d6c2; border-radius: 20px; background: #fff; color: #2b1a0e; font: inherit; font-size: .9rem; cursor: pointer; }
.rs-chip[aria-pressed='true'] { background: #7a3b12; border-color: #7a3b12; color: #fff; }
.rs-dish { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; border-bottom: 1px solid #f0e6d8; }
.rs-dish:last-child { border-bottom: 0; }
.rs-dish span { min-width: 0; overflow-wrap: anywhere; }
.rs-votes { display: flex; gap: 8px; flex: none; }
.rs-vote { width: 44px; height: 44px; border: 1.5px solid #e6d6c2; border-radius: 12px; background: #fff; cursor: pointer; display: grid; place-items: center; color: #7b6650; }
.rs-vote svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rs-vote[aria-pressed='true'] { background: #7a3b12; border-color: #7a3b12; color: #fff; }
.rs-text { width: 100%; min-height: 84px; padding: 10px 12px; border: 1.5px solid #e6d6c2; border-radius: 12px; font: inherit; font-size: .95rem; color: inherit; resize: vertical; box-sizing: border-box; }
.rs-hint { margin: 4px 0 0; font-size: .78rem; color: #7b6650; }
.rs-err { margin: 10px 0 0; color: #b3261e; font-weight: 600; font-size: .9rem; }
.rs-foot { padding: 10px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #f0e6d8; display: grid; gap: 6px; flex: none; }
.rs-btn { min-height: 52px; border: 0; border-radius: 12px; background: #7a3b12; color: #fff; font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer; }
.rs-btn:hover:not(:disabled) { background: #6a3210; }
.rs-btn:active:not(:disabled) { background: #5e2c0c; }
.rs-btn:disabled { opacity: .45; cursor: default; }
.rs-link { min-height: 44px; border: 0; background: none; color: #7a3b12; font: inherit; font-weight: 700; cursor: pointer; }
.rs-thanks { text-align: center; padding: 18px 4px 6px; }
.rs-thanks h3 { margin: 6px 0; font-size: 1.2rem; }
.rs-thanks p { margin: 4px 0; color: #5b4631; }
.rs-call { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; margin-top: 8px; border: 1.5px solid #7a3b12; border-radius: 12px; color: #7a3b12; font-weight: 800; text-decoration: none; }
body.rs-open { overflow: hidden; }
/* the "Rate this order" row on My orders */
.mo-rate { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 0; padding: 8px 12px; border: 1.5px solid #e6d6c2; border-radius: 12px; background: #fffaf3; }
.mo-rate b { font-size: .9rem; }
.mo-rate-stars { display: inline-flex; }
.mo-rate-stars button { width: 36px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: #d9c9b3; font-size: 1.5rem; line-height: 1; }
.mo-rate-stars .on { color: #e0a21a; }
.mo-rate-done { font-size: .9rem; color: #5b4631; }
.mo-rate-done .on { color: #e0a21a; letter-spacing: 1px; }
.mo-rate-edit { min-height: 44px; padding: 0 8px; border: 0; background: none; color: #7a3b12; font: inherit; font-weight: 700; cursor: pointer; }
.mo-reply { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid #7a3b12; background: #fffaf3; border-radius: 0 10px 10px 0; font-size: .88rem; color: #3d2a18; }
.mo-reply b { display: block; font-size: .78rem; color: #7a3b12; }
.rs-rev { padding: 10px 0; border-bottom: 1px solid #f0e6d8; display: grid; gap: 4px; }
.rs-rev p { margin: 0; overflow-wrap: anywhere; }
.rs-revstars { color: #e0a21a; }
.rs-rev small { color: #7b6650; }

/* the pickup confirm pop-up reuses the sheet (customer-menu loads this file too) */
.pc-body { text-align: center; }
.pc-icon { display: block; margin: 8px auto 0; }
.pc-title { margin: 8px 0 4px; }
.pc-strong { margin: 4px 0 10px; font-size: 1.15rem; font-weight: 800; color: #a3280b; }
.pc-venue { margin: 0 0 6px; line-height: 1.4; }
.pc-dir { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: #7a3b12; font-weight: 800; text-decoration: none; }
.pc-pay { margin: 6px 0 0; font-weight: 700; }
/* long review lists draw only what is on screen */
.rs-rev, .mo-card { content-visibility: auto; contain-intrinsic-size: auto 120px; }

/* public reviews sheet: summary, breakdown, what people say, sort (2026-11-24) */
.rs-revstars span { color: #dccbb2; }
.rs-revstars span.on { color: #e0a100; }
.rs-sum { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin: 12px 0 4px; }
.rs-sum-avg { display: flex; flex-direction: column; align-items: center; min-width: 88px; }
.rs-sum-avg > b { font-size: 2.2rem; line-height: 1; font-weight: 800; color: #2b1a0e; font-variant-numeric: tabular-nums; }
.rs-sum-avg small { margin-top: 4px; font-size: .72rem; color: #7b6650; text-align: center; }
.rs-bars { display: grid; gap: 2px; }
.rs-bar { display: grid; grid-template-columns: 28px 1fr 30px; gap: 8px; align-items: center; min-height: 26px; padding: 0 4px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: .8rem; color: #4b3a2a; cursor: pointer; text-align: left; }
.rs-bar.is-on { background: #f6ecdf; }
.rs-bar i { display: block; height: 8px; border-radius: 4px; background: #efe4d3; overflow: hidden; }
.rs-bar i b { display: block; height: 100%; background: #e0a100; }
.rs-says { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; font-size: .84rem; }
.rs-says span { padding: 3px 9px; border-radius: 999px; background: #edf7ed; color: #1f5a22; font-weight: 700; }
.rs-says small { color: #4f7a52; font-weight: 600; }
.rs-sort { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.rs-rev-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rs-rev-tags, .rs-rev-dishes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rs-rev-tags span { padding: 2px 8px; border-radius: 999px; background: #f6ecdf; font-size: .75rem; font-weight: 700; color: #6b4a22; }
.rs-rev-dishes span { font-size: .78rem; font-weight: 600; }
.rs-rev-dishes .up { color: #1f6b34; }
.rs-rev-dishes .down { color: #8a3a2a; }
