/* (C)2026 Badger Commerce Limited, a subsidiary of Kedos Consulting Limited */

/* Restaurant menu (restaurantMenu) and ordering status (orderingStatus) for every Nova-based theme.

   Re-skin it by setting the public --rm-* tokens on :root (Bistro does); the rules only read the
   resolved --rmc-* copies, so a theme never has to out-specify these selectors.

     --rm-bg, --rm-surface, --rm-ink, --rm-muted, --rm-line   page, panels, text, quiet text, rules
     --rm-accent, --rm-accent-ink                             the buy path: Add, Add to order, Checkout
     --rm-radius                                               panels and the sheet
     --rm-font-display                                         section titles
     --rm-sticky-top                                           height of a sticky site header above the tabs
     --rm-leader                                               the dotted leader between dish and price
                                                               (a border style: dotted, or none) */

.rm, .rm-status, .rm-sheet {
    --rmc-bg: var(--rm-bg, #fff);
    --rmc-surface: var(--rm-surface, var(--color-gray-50, #f9fafb));
    --rmc-ink: var(--rm-ink, var(--color-gray-900, #111827));
    --rmc-muted: var(--rm-muted, var(--color-gray-600, #4b5563));
    --rmc-line: var(--rm-line, var(--color-gray-200, #e5e7eb));
    --rmc-accent: var(--rm-accent, var(--color-primary, #4f46e5));
    --rmc-accent-ink: var(--rm-accent-ink, #fff);
    --rmc-radius: var(--rm-radius, var(--radius-lg, 12px));
    --rmc-display: var(--rm-font-display, inherit);
    --rmc-sticky-top: var(--rm-sticky-top, 0px);
    --rmc-leader: var(--rm-leader, dotted);
    --rmc-open: #1d7a45;
    --rmc-paused: #9a6300;
    --rmc-closed: #a23b2a;
}

.rm-sr {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.rm { color: var(--rmc-ink); box-sizing: border-box; }
.rm *, .rm *::before, .rm *::after { box-sizing: border-box; }
main:not(.nova-container) .rm { width: min(100% - 32px, 1240px); margin-inline: auto; }

.rm-flash {
    margin: 16px 0 0; padding: 12px 16px; border-radius: 8px;
    background: var(--rmc-surface); border: 1px solid var(--rmc-line);
}
.rm-heading { font-family: var(--rmc-display); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; margin: 24px 0 8px; }
.rm-empty-menu { padding: 48px 0; color: var(--rmc-muted); }

/* ── layout: the menu, and the basket beside it on wide screens ── */
.rm-layout { display: block; }
.rm-menu { min-width: 0; }
@media (min-width: 1024px) {
    .rm--with-basket .rm-layout {
        display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start;
    }
}

/* ── sticky bar: section tabs, search and dietary chips ── */
.rm-bar {
    position: sticky; top: var(--rmc-sticky-top); z-index: 20;
    background: var(--rmc-bg); border-bottom: 1px solid var(--rmc-line);
    margin: 0 -16px; padding: 0 16px;
}
@media (min-width: 1024px) { .rm-bar { margin: 0; padding: 0; } }
.rm-tabs__list {
    display: flex; gap: 24px; list-style: none; margin: 0; padding: 0;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rm-tabs__list::-webkit-scrollbar { display: none; }
.rm-tabs__list > li { flex: none; scroll-snap-align: start; }
.rm-tab {
    display: inline-block; padding: 14px 0 12px; color: var(--rmc-muted); text-decoration: none;
    font-weight: 600; font-size: 0.9375rem; white-space: nowrap; border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
.rm-tab:hover { color: var(--rmc-ink); }
.rm-tab[aria-current="true"] { color: var(--rmc-ink); border-bottom-color: var(--rmc-ink); }
.rm-tab:focus-visible { outline: 2px solid var(--rmc-ink); outline-offset: 2px; border-radius: 2px; }

.rm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0 12px; border-top: 1px solid var(--rmc-line); }
.rm-tools[hidden] { display: none; }
.rm-search { position: relative; flex: 1 1 220px; max-width: 360px; }
.rm-search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--rmc-muted); pointer-events: none; }
.rm-search__input {
    width: 100%; height: 40px; padding: 0 12px 0 34px; font: inherit; font-size: 16px; color: var(--rmc-ink);
    background: var(--rmc-surface); border: 1px solid transparent; border-radius: 999px;
}
.rm-search__input:focus { outline: none; border-color: var(--rmc-ink); background: var(--rmc-bg); }
.rm-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
.rm-chips::-webkit-scrollbar { display: none; }
.rm-chip {
    flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
    font: inherit; font-size: 0.875rem; font-weight: 500; color: var(--rmc-ink); cursor: pointer;
    background: var(--rmc-bg); border: 1px solid var(--rmc-line); border-radius: 999px;
}
.rm-chip:hover { border-color: var(--rmc-ink); }
.rm-chip[aria-pressed="true"] { background: var(--rmc-ink); border-color: var(--rmc-ink); color: var(--rmc-bg); }
.rm-chip[aria-pressed="true"] .rm-diet { color: inherit; border-color: currentColor; }
.rm-chip:focus-visible, .rm-linkbtn:focus-visible, .rm-add:focus-visible, .rm-cta:focus-visible,
.rm-stepper__btn:focus-visible, .rm-mode__opt:focus-visible, .rm-sheet__close:focus-visible {
    outline: 2px solid var(--rmc-ink); outline-offset: 2px;
}

.rm-noresults { padding: 40px 0; text-align: center; color: var(--rmc-muted); }
.rm-noresults[hidden] { display: none; }
.rm-linkbtn {
    font: inherit; font-size: 0.875rem; color: var(--rmc-ink); background: none; border: 0; padding: 4px 0;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ── sections and rows ── */
.rm-section { padding-top: 28px; scroll-margin-top: calc(var(--rmc-sticky-top) + var(--rm-bar-height, 112px)); }
.rm-section[hidden] { display: none; }
.rm-section__title {
    font-family: var(--rmc-display); font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 400;
    line-height: 1.1; margin: 0 0 4px; letter-spacing: -0.01em;
}
.rm-section__desc { color: var(--rmc-muted); margin: 0 0 8px; max-width: 60ch; }
.rm-items { list-style: none; margin: 0; padding: 0; }
.rm-item {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "body photo" "body add";
    column-gap: 16px; row-gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--rmc-line);
}
.rm-item[hidden] { display: none; }
.rm-item__body { grid-area: body; min-width: 0; }
.rm-item__photo {
    grid-area: photo; width: 88px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--rmc-surface);
}
@media (min-width: 768px) { .rm-item__photo { width: 104px; height: 104px; } }
.rm-item .rm-add { grid-area: add; justify-self: end; align-self: end; }
.rm-item:not(.rm-item--photo) { grid-template-areas: "body add"; align-items: center; }

.rm-item__line { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.rm-item__name { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.rm-item__leader {
    flex: 1 1 24px; min-width: 16px; border-bottom: 2px var(--rmc-leader) var(--rmc-line);
    transform: translateY(-4px);
}
.rm-item__price { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rm-item__desc { margin: 4px 0 0; color: var(--rmc-muted); font-size: 0.9375rem; line-height: 1.45; }
.rm-item__marks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; }
.rm-item__allergens { font-size: 0.8125rem; color: var(--rmc-muted); }

.rm-diet {
    display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 20px; padding: 0 5px;
    font-size: 0.6875rem; font-weight: 700; line-height: 1; color: var(--rmc-muted);
    border: 1.5px solid currentColor; border-radius: 5px;
}
.rm-diet--VEGETARIAN, .rm-diet--VEGAN { color: #2f7a48; }
.rm-diet--GLUTEN_FREE, .rm-diet--DAIRY_FREE, .rm-diet--NUT_FREE { color: #8a5a12; }
.rm-diet--SPICY_MILD, .rm-diet--SPICY_MEDIUM, .rm-diet--SPICY_HOT { color: #b23a26; }
.rm-diet--chip { min-width: 22px; height: 18px; }
.rm-diet--labelled { gap: 6px; height: 24px; padding: 0 8px 0 3px; font-size: 0.75rem; }
.rm-diet__mark { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 16px; border-radius: 3px; background: currentColor; }
.rm-diet__mark { color: inherit; }
.rm-diet--labelled .rm-diet__mark { background: none; border-right: 1.5px solid currentColor; padding-right: 4px; }

/* Add: the brand colour, only on the buy path */
.rm-add {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px 0 12px;
    font-weight: 600; font-size: 0.9375rem; color: var(--rmc-accent-ink); background: var(--rmc-accent);
    border-radius: 999px; text-decoration: none; white-space: nowrap;
    transition: filter .15s ease, transform .1s ease;
}
.rm-add:hover { filter: brightness(1.08); color: var(--rmc-accent-ink); }
.rm-add:active { transform: scale(.97); }
.rm-add__icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.rm-add.is-unavailable {
    padding: 0 12px; font-weight: 500; font-size: 0.8125rem; color: var(--rmc-muted);
    background: var(--rmc-surface); border: 1px solid var(--rmc-line);
}

.rm-allergen-notice {
    display: flex; gap: 12px; align-items: flex-start; margin: 32px 0 24px; padding: 16px;
    border: 1px solid var(--rmc-line); border-radius: var(--rmc-radius); font-size: 0.9375rem;
}
.rm-allergen-notice p { margin: 0; }
.rm-allergen-notice a { color: var(--rmc-ink); font-weight: 600; }
.rm-allergen-notice__icon { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--rmc-ink); stroke-width: 2; stroke-linecap: round; }

/* ── the basket panel ── */
.rm-basket { display: none; }
@media (min-width: 1024px) {
    .rm-basket {
        display: block; position: sticky; top: calc(var(--rmc-sticky-top) + 24px); margin-top: 24px;
        max-height: calc(100vh - var(--rmc-sticky-top) - 48px); overflow: auto;
        border: 1px solid var(--rmc-line); border-radius: var(--rmc-radius); background: var(--rmc-bg);
    }
}
.rm-basket__content { padding: 20px; }
.rm-basket__title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 1.125rem; margin: 0 0 12px; }
.rm-basket__title:focus { outline: none; }
.rm-sheet .rm-basket__title { padding-right: 48px; }
.rm-basket__count { font-size: 0.875rem; font-weight: 500; color: var(--rmc-muted); }
.rm-basket__empty { color: var(--rmc-muted); margin: 0; font-size: 0.9375rem; }
.rm-lines { list-style: none; margin: 0; padding: 0; }
.rm-line { display: flex; gap: 12px; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--rmc-line); }
.rm-line.is-busy { opacity: .55; }
.rm-line__main { min-width: 0; }
.rm-line__name { margin: 0; font-weight: 600; font-size: 0.9375rem; }
.rm-line__qty { font-variant-numeric: tabular-nums; color: var(--rmc-muted); }
.rm-line__meta { margin: 2px 0 0; font-size: 0.8125rem; color: var(--rmc-muted); }
.rm-line__price { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rm-line__controls { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.rm-line__controls form { margin: 0; }
.rm-stepper { display: inline-flex; align-items: center; border: 1px solid var(--rmc-line); border-radius: 999px; }
.rm-stepper__btn {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    background: none; border: 0; border-radius: 999px; color: var(--rmc-ink); cursor: pointer;
}
.rm-stepper__btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.rm-stepper__btn:disabled { color: var(--rmc-line); cursor: default; }
.rm-stepper__value { min-width: 20px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.rm-basket__foot { border-top: 1px solid var(--rmc-line); padding-top: 12px; }
.rm-basket__totals { display: flex; justify-content: space-between; margin: 0 0 4px; font-weight: 700; font-size: 1.0625rem; }
.rm-basket__totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.rm-basket__small { margin: 0 0 12px; font-size: 0.8125rem; color: var(--rmc-muted); }
.is-loading { opacity: .4; }

/* Buy-path button */
.rm-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 20px;
    font: inherit; font-weight: 600; font-size: 1rem; color: var(--rmc-accent-ink); background: var(--rmc-accent);
    border: 0; border-radius: 999px; text-decoration: none; cursor: pointer;
}
.rm-cta:hover { filter: brightness(1.08); color: var(--rmc-accent-ink); }
.rm-cta:disabled { background: var(--rmc-surface); color: var(--rmc-muted); border: 1px solid var(--rmc-line); cursor: not-allowed; filter: none; }
.rm-cta--block { display: flex; width: 100%; }
.rm-cta__total { font-variant-numeric: tabular-nums; }

/* Phones: the basket bar */
.rm-basketbar {
    position: fixed; z-index: 30; left: 16px; right: 16px; bottom: max(12px, env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px 0 8px;
    color: var(--rmc-accent-ink); background: var(--rmc-accent); border-radius: 999px; text-decoration: none;
    font-weight: 600; box-shadow: 0 8px 24px rgb(0 0 0 / .18);
}
.rm-basketbar[hidden] { display: none; }
.rm-basketbar:hover { color: var(--rmc-accent-ink); }
.rm-basketbar__count {
    display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px;
    border-radius: 999px; background: rgb(255 255 255 / .2); font-variant-numeric: tabular-nums;
}
.rm-basketbar__label { flex: 1; }
.rm-basketbar__total { font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) { .rm--with-basket { padding-bottom: 80px; } }
@media (min-width: 1024px) { .rm-basketbar { display: none; } }

/* ── the sheet: bottom sheet on phones, modal on wider screens ── */
.rm-sheet {
    padding: 0; margin: 0; border: 0; background: transparent; color: var(--rmc-ink);
    width: 100%; max-width: 100%; height: 100%; max-height: 100%;
}
.rm-sheet[open] { display: flex; align-items: flex-end; justify-content: center; }
.rm-sheet::backdrop { background: rgb(12 18 15 / .55); }
.rm-sheet__panel {
    position: relative; width: 100%; max-height: 92dvh; overflow: auto; overscroll-behavior: contain;
    background: var(--rmc-bg); border-radius: 18px 18px 0 0; animation: rm-sheet-up .24s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 768px) {
    .rm-sheet[open] { align-items: center; }
    .rm-sheet__panel { width: min(560px, 100% - 48px); max-height: 88vh; border-radius: var(--rmc-radius); animation-name: rm-sheet-in; }
}
.rm-sheet--basket .rm-sheet__panel { max-width: 480px; }
@keyframes rm-sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rm-sheet-in { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.rm-sheet__close {
    position: absolute; z-index: 3; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 0; border-radius: 999px; cursor: pointer;
    background: rgb(255 255 255 / .92); color: #111; box-shadow: 0 1px 4px rgb(0 0 0 / .2);
}
.rm-sheet__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; }
.rm-sheet__body:empty { min-height: 240px; }
.rm-sheet__loading { padding: 64px 24px; text-align: center; color: var(--rmc-muted); }
html.rm-sheet-open { overflow: hidden; }

/* ── the item form (sheet and item page) ── */
.rm-back { display: inline-block; margin: 16px 0; color: var(--rmc-ink); font-weight: 600; }
.rm-itempage { max-width: 600px; border: 1px solid var(--rmc-line); border-radius: var(--rmc-radius); overflow: hidden; }
.rm-form { margin: 0; }
.rm-form__photo { display: block; width: 100%; aspect-ratio: 16 / 10; max-height: 34vh; object-fit: cover; height: auto; background: var(--rmc-surface); }
.rm-form__head { padding: 24px 24px 8px; }
.rm-sheet .rm-form__head { padding-right: 64px; }
.rm-sheet .rm-form__photo + .rm-form__head { padding-right: 24px; }
.rm-form__name { font-size: 1.5rem; line-height: 1.2; margin: 0; }
.rm-form__price { margin: 4px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.rm-form__desc { margin: 12px 0 0; color: var(--rmc-muted); line-height: 1.5; }
.rm-form__allergens { margin: 12px 0 0; font-size: 0.875rem; }
.rm-form__allergens strong { margin-right: 4px; }
.rm-form__more { margin: 8px 0 0; font-size: 0.875rem; }
.rm-form__more a { color: inherit; text-decoration: underline; }
.rm-group { border: 0; margin: 0; padding: 16px 24px 4px; min-width: 0; }
.rm-group__legend { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 0; margin-bottom: 4px; float: left; }
.rm-group__legend + * { clear: both; }
.rm-group__name { font-weight: 700; font-size: 1.0625rem; }
.rm-group__rule { flex: none; font-size: 0.75rem; font-weight: 600; color: var(--rmc-muted); padding: 3px 8px; border-radius: 999px; background: var(--rmc-surface); }
.rm-group__rule.is-required { color: var(--rmc-bg); background: var(--rmc-ink); }
.rm-group.is-invalid .rm-group__rule { color: #fff; background: var(--rmc-closed); }
.rm-group__desc { margin: 0 0 4px; font-size: 0.875rem; color: var(--rmc-muted); clear: both; }
.rm-opt {
    display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0;
    border-bottom: 1px solid var(--rmc-line); cursor: pointer; clear: both;
}
.rm-opt:last-child { border-bottom: 0; }
.rm-opt input[type="radio"], .rm-opt input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--rmc-ink); }
.rm-opt__name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rm-opt__note { font-size: 0.8125rem; color: var(--rmc-muted); }
.rm-opt__price { flex: none; font-variant-numeric: tabular-nums; color: var(--rmc-muted); font-size: 0.9375rem; }
.rm-opt.is-soldout { cursor: default; }
.rm-opt.is-soldout .rm-opt__name { color: var(--rmc-muted); text-decoration: line-through; }
.rm-opt.is-soldout .rm-opt__price { text-decoration: none; font-weight: 600; }
.rm-opt__count { font: inherit; font-size: 16px; min-height: 40px; padding: 0 8px; border: 1px solid var(--rmc-line); border-radius: 8px; background: var(--rmc-bg); color: var(--rmc-ink); }
.rm-opt--stepper.is-enhanced .rm-opt__count { display: none; }
.rm-opt--stepper .rm-stepper { flex: none; }
.rm-note { padding: 16px 24px 8px; }
.rm-note__label { display: block; font-weight: 700; margin-bottom: 8px; }
.rm-note__input {
    width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; color: var(--rmc-ink); resize: vertical;
    background: var(--rmc-bg); border: 1px solid var(--rmc-line); border-radius: 8px;
}
.rm-note__input:focus { outline: none; border-color: var(--rmc-ink); }
.rm-form__error { margin: 8px 24px 0; padding: 10px 12px; border-radius: 8px; background: #fbeeeb; color: #8b2a1b; font-size: 0.9375rem; }
.rm-form__error[hidden] { display: none; }
.rm-form__foot {
    position: sticky; bottom: 0; z-index: 2; display: flex; gap: 12px; align-items: center;
    padding: 16px 24px max(16px, env(safe-area-inset-bottom)); background: var(--rmc-bg); border-top: 1px solid var(--rmc-line); margin-top: 16px;
}
.rm-form__foot .rm-cta { flex: 1; justify-content: space-between; }
.rm-form__foot .rm-cta:disabled { justify-content: center; }
.rm-qty__input { width: 64px; height: 48px; font: inherit; font-size: 16px; text-align: center; border: 1px solid var(--rmc-line); border-radius: 999px; background: var(--rmc-bg); color: var(--rmc-ink); }
.rm-qty.is-enhanced .rm-qty__input { width: 32px; height: 36px; border: 0; padding: 0; background: none; -moz-appearance: textfield; }
.rm-qty.is-enhanced .rm-qty__input::-webkit-outer-spin-button,
.rm-qty.is-enhanced .rm-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rm-qty.is-enhanced { display: inline-flex; align-items: center; border: 1px solid var(--rmc-line); border-radius: 999px; height: 48px; padding: 0 4px; }

/* ── ordering status ── */
.rm-status { color: var(--rmc-ink); margin: 16px auto 0; }
main:not(.nova-container) .rm-status { width: min(100% - 32px, 1240px); }
.rm-status__in {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
    padding: 14px 16px; background: var(--rmc-surface); border-radius: var(--rmc-radius);
}
.rm-status__headline { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 1rem; }
.rm-status__headline strong { font-weight: 700; }
.rm-status__sub { margin-left: 8px; color: var(--rmc-muted); }
.rm-status__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--rmc-muted); transform: translateY(-1px); }
.rm-status--OPEN .rm-status__dot { background: var(--rmc-open); box-shadow: 0 0 0 4px rgb(29 122 69 / .15); }
.rm-status--PAUSED .rm-status__dot { background: var(--rmc-paused); }
.rm-status--CLOSED .rm-status__dot { background: var(--rmc-closed); }
.rm-status__detail { margin: 2px 0 0 20px; font-size: 0.875rem; color: var(--rmc-muted); }

.rm-status__text { flex: 1 1 16rem; min-width: 0; }
/* The switch, postcode box and the check's answer keep their place: the answer never widens the block
   (width 0, min-width 100%: it wraps inside the controls' width), and its line is kept while the postcode
   box shows, so an answer arriving moves nothing and the opening hours beside it stay put. */
.rm-mode { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; margin-left: auto; }
.rm-mode[hidden] { display: none; }
.rm-mode__switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--rmc-bg); border: 1px solid var(--rmc-line); }
.rm-mode__opt {
    font: inherit; font-size: 0.875rem; font-weight: 600; min-height: 34px; padding: 0 14px;
    color: var(--rmc-muted); background: none; border: 0; border-radius: 999px; cursor: pointer;
}
.rm-mode__opt[aria-checked="true"] { color: var(--rmc-bg); background: var(--rmc-ink); }
.rm-postcode { display: inline-flex; gap: 6px; }
.rm-postcode[hidden] { display: none; }
.rm-postcode__input {
    width: 9.5em; height: 40px; padding: 0 12px; font: inherit; font-size: 16px; text-transform: uppercase;
    border: 1px solid var(--rmc-line); border-radius: 999px; background: var(--rmc-bg); color: var(--rmc-ink);
}
.rm-postcode__input:focus { outline: none; border-color: var(--rmc-ink); }
.rm-postcode__btn {
    height: 40px; padding: 0 14px; font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer;
    color: var(--rmc-ink); background: var(--rmc-bg); border: 1px solid var(--rmc-ink); border-radius: 999px;
}
.rm-postcode__result {
    flex-basis: 100%; width: 0; min-width: 100%; margin: 0; min-height: 1.3em; line-height: 1.3;
    font-size: 0.875rem; text-align: right; color: var(--rmc-muted);
}
.rm-postcode__result:empty { display: none; }
.rm-mode:has(.rm-postcode:not([hidden])) .rm-postcode__result:empty { display: block; visibility: hidden; }
@media (max-width: 767px) {
    .rm-mode { justify-content: flex-start; margin-left: 0; width: 100%; }
    .rm-postcode__result { text-align: left; min-height: 2.6em; } /* two lines on a phone */
}
/* A checked delivery area: one line, the restaurant's name gives way (ellipsis) before anything wraps */
.rm-postcode__result.is-collapsed {
    display: flex; align-items: baseline; min-height: 0; white-space: nowrap; font-size: 0.8125rem;
}
@media (max-width: 767px) { .rm-postcode__result.is-collapsed { min-height: 0; } }
.rm-postcode__store { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; margin-right: 0.3em; }
.rm-postcode__tail { flex: none; }
.rm-postcode__sep { flex: none; margin: 0 0.4em; }
.rm-postcode__change {
    flex: none; font: inherit; color: var(--rmc-ink); background: none; border: 0; padding: 0 2px; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
}
.rm-postcode__result.is-yes { color: var(--rmc-open); }
.rm-postcode__result.is-no { color: var(--rmc-closed); }

/* A short "Added" confirmation over the menu */
.rm-toast {
    position: fixed; z-index: 40; left: 50%; bottom: 84px; transform: translateX(-50%);
    padding: 10px 16px; border-radius: 999px; background: var(--rmc-ink); color: var(--rmc-bg);
    font-weight: 600; font-size: 0.9375rem; box-shadow: 0 8px 24px rgb(0 0 0 / .2); animation: rm-sheet-in .2s ease;
}
@media (min-width: 1024px) { .rm-toast { bottom: 32px; } }

@media (prefers-reduced-motion: reduce) {
    .rm-sheet__panel, .rm-toast { animation: none; }
    .rm-tab, .rm-add { transition: none; }
}
