/* Romlend 2 menu, sheet, cart bar, progress. Colours come from the theme's variables, with fallbacks. */
.r2-menu { --r2-green: var(--r2c-green, #0f5c4a); --r2-gold: var(--r2c-gold, #c9a227); --r2-ink: var(--r2c-ink, #1d2522); --r2-soft: var(--r2c-soft, #eef3f0); --r2-line: var(--r2c-line, #e3e8e5); }
.r2-intro { color: #55615c; margin: 0 0 14px; }
.r2-paused { background: #fff1d6; border: 1px solid #f0c36d; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; }

.r2-tabs { position: sticky; top: var(--r2c-header, 60px); z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; background: var(--r2c-bg, #faf7f2); scrollbar-width: none; }
.r2-tabs::-webkit-scrollbar { display: none; }
.r2-tab { flex: 0 0 auto; border: 1px solid var(--r2-line); background: #fff; border-radius: 14px; padding: 8px 14px; text-align: left; cursor: pointer; color: var(--r2-ink); font: inherit; }
.r2-tab.active { background: var(--r2-green); border-color: var(--r2-green); color: #fff; }
.r2-tab-name { display: block; font-weight: 700; font-size: 15px; }
.r2-tab-hours { display: block; font-size: 12px; opacity: .75; }
.r2-tab-hours.open::before { content: "● "; color: #2fbf71; }

.r2-tabhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 12px; }
.r2-tabdesc { flex-basis: 100%; margin: 4px 0 0; color: #55615c; }
.r2-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.r2-badge.open { background: #dff5e8; color: #17663f; }
.r2-badge.closed { background: #f3e5e5; color: #8a2b2b; }
.r2-hours { font-size: 13px; color: #55615c; }
.r2-empty { color: #55615c; }

.r2-list { display: grid; grid-template-columns: 1fr; gap: 12px; padding-bottom: 90px; }
@media (min-width: 700px) { .r2-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .r2-list { grid-template-columns: 1fr 1fr 1fr; } }
.r2-item { display: flex; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--r2-line); border-radius: 16px; padding: 10px; cursor: pointer; font: inherit; color: var(--r2-ink); transition: box-shadow .15s, transform .15s; }
.r2-item:hover { box-shadow: 0 6px 18px rgba(15,92,74,.10); transform: translateY(-1px); }
.r2-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; flex: 0 0 96px; background: var(--r2-soft); }
.r2-item-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.r2-item-name { font-weight: 700; font-size: 16px; }
.r2-item-desc { font-size: 13px; color: #55615c; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r2-item-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; gap: 8px; }
.r2-price { font-weight: 700; color: var(--r2-green); }
.r2-plus { width: 32px; height: 32px; border-radius: 50%; background: var(--r2-green); color: #fff; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.r2-why { font-size: 12px; color: #8a2b2b; text-align: right; }
.r2-item.unavailable { opacity: .6; }
.r2-item.unavailable img { filter: grayscale(.7); }

.r2-lock { overflow: hidden; }
.r2-shade { position: fixed; inset: 0; background: rgba(10,20,16,.5); z-index: 1000; animation: r2-fade .15s; }
.r2-sheet { position: fixed; z-index: 1001; left: 0; right: 0; bottom: 0; max-height: 92vh; display: flex; flex-direction: column; background: #fff; border-radius: 20px 20px 0 0; overflow: hidden; animation: r2-up .2s ease-out; color: #1d2522; }
@media (min-width: 700px) { .r2-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 520px; transform: translate(-50%, -50%); border-radius: 20px; animation: r2-fade .15s; } }
.r2-sheet-img { width: 100%; height: 190px; object-fit: cover; flex: 0 0 auto; }
.r2-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 24px; line-height: 1; cursor: pointer; }
.r2-sheet-body { padding: 14px 16px; overflow-y: auto; flex: 1; }
.r2-sheet-body h3 { margin: 0 0 4px; font-size: 21px; }
.r2-sheet-desc { color: #55615c; margin: 0 0 10px; }
.r2-group { border: 0; padding: 0; margin: 14px 0 0; }
.r2-group legend { display: flex; justify-content: space-between; width: 100%; font-weight: 700; padding: 0 0 6px; }
.r2-group legend small { font-weight: 600; font-size: 12px; color: #55615c; background: #f1f3f2; padding: 2px 8px; border-radius: 999px; }
.r2-group legend small.req { background: #fff1d6; color: #7a5300; }
.r2-opt { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid #eef1ef; cursor: pointer; }
.r2-opt input { width: 20px; height: 20px; accent-color: #0f5c4a; margin: 0; }
.r2-opt-label { flex: 1; }
.r2-opt-price { color: #55615c; font-size: 14px; }
.r2-note { display: block; margin-top: 14px; }
.r2-note span { display: block; font-weight: 700; margin-bottom: 6px; }
.r2-note input { width: 100%; padding: 10px 12px; border: 1px solid #d5dcd8; border-radius: 10px; font: inherit; box-sizing: border-box; }
.r2-sheet-foot { display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #eef1ef; background: #fff; }
.r2-qty { display: flex; align-items: center; border: 1px solid #d5dcd8; border-radius: 12px; }
.r2-qty button { width: 42px; height: 46px; border: 0; background: none; font-size: 22px; cursor: pointer; color: #0f5c4a; }
.r2-qty span { min-width: 22px; text-align: center; font-weight: 700; }
.r2-add { flex: 1; border: 0; border-radius: 12px; background: #0f5c4a; color: #fff; font: inherit; font-weight: 700; font-size: 16px; padding: 12px; cursor: pointer; }
.r2-add:disabled { background: #a9bdb6; cursor: not-allowed; }

.r2-cartbar { position: fixed; z-index: 900; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; background: #0f5c4a; color: #fff !important; text-decoration: none !important; border-radius: 16px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(15,92,74,.35); font-weight: 700; }
.r2-cartbar-count { background: #c9a227; color: #1d2522; min-width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; }
.r2-cartbar-label { flex: 1; }
.r2-toast { position: fixed; z-index: 1100; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: #1d2522; color: #fff; padding: 10px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: all .2s; max-width: 90vw; text-align: center; }
.r2-toast.show { opacity: 1; transform: translate(-50%, 0); }
.r2-toast.bad { background: #8a2b2b; }

.r2-home { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 10px 0 30px; }
@media (min-width: 760px) { .r2-home { grid-template-columns: 1fr 1fr; } }
.r2-home-card { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 22px; text-decoration: none !important; color: #1d2522 !important; background: #fff; border: 1px solid #e3e8e5; min-height: 210px; transition: transform .15s, box-shadow .15s; }
.r2-home-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,92,74,.12); }
.r2-home-restaurant { background: linear-gradient(160deg, #0f5c4a, #0b4537); color: #fff !important; border: 0; }
.r2-home-icon { font-size: 40px; }
.r2-home-title { font-size: 24px; font-weight: 800; }
.r2-home-text { opacity: .85; }
.r2-home-cta { margin-top: auto; font-weight: 700; }
.r2-home-restaurant .r2-home-cta { color: #f3d77a; }
.r2-soon { display: inline-block; align-self: flex-start; background: #f1ead2; color: #6b5310; padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.r2-soon-box { text-align: center; padding: 50px 20px; background: #fff; border: 1px solid #e3e8e5; border-radius: 22px; }

.r2-progress-title { margin-top: 0; }
.r2-progress { display: flex; list-style: none; margin: 10px 0 26px; padding: 0; counter-reset: s; }
.r2-progress li { flex: 1; position: relative; text-align: center; font-size: 13px; color: #8a948f; padding-top: 34px; }
.r2-progress li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: #e3e8e5; color: #55615c; display: grid; place-items: center; font-weight: 700; z-index: 1; }
.r2-progress li::after { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 3px; background: #e3e8e5; }
.r2-progress li:first-child::after { display: none; }
.r2-progress li.done, .r2-progress li.now { color: #1d2522; font-weight: 700; }
.r2-progress li.done::before { content: "✓"; background: #0f5c4a; color: #fff; }
.r2-progress li.now::before { background: #c9a227; color: #1d2522; box-shadow: 0 0 0 5px rgba(201,162,39,.25); }
.r2-progress li.done::after, .r2-progress li.now::after { background: #0f5c4a; }
.r2-progress-stopped { padding: 12px; background: #f3e5e5; border-radius: 12px; }

.r2-help { position: fixed; z-index: 800; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); background: #25d366; color: #fff !important; text-decoration: none !important; padding: 10px 14px; border-radius: 999px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.18); }

@keyframes r2-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes r2-fade { from { opacity: 0; } }
