/* 365.food — Restaurant / Menu experience
   Uses the approved Home design tokens from marketplace-home.css. */

.mf-restaurant-page .mf-page-wrap { padding-top: 66px; }
.mf-restaurant-page .mf-footer { margin-top: 20px; }
.mr-page { padding: 18px 0 88px; color: var(--mf-ink); background: var(--mf-surface); }
/* Something in the base layout gives this <main> overflow:hidden, which makes
   it a scroll container — and a scroll container that never scrolls silently
   disables every position:sticky inside it (the search, the category rail and
   the cart card all scrolled away). 'clip' still prevents sideways scrolling
   but creates no scroll container, so sticky works again. */
main.mr-page, .mf-restaurant-page .mr-page {
    overflow-x: clip !important;
    overflow-y: visible !important;
}
.mr-shell { position: relative; }
.mr-page button, .mr-page input { font-family: inherit; }

.mr-breadcrumb {
    min-height: 34px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
    color: var(--mf-ink-3); font-size: 11.5px; white-space: nowrap; overflow: hidden;
}
.mr-breadcrumb a { color: var(--mf-ink-3); transition: color .18s ease; }
.mr-breadcrumb a:hover { color: #018e72; }
.mr-breadcrumb i { color: var(--mf-ink-4); font-size: 10px; }
.mr-breadcrumb span { overflow: hidden; text-overflow: ellipsis; color: var(--mf-ink-2); font-weight: 700; }

/* Restaurant hero */
.mr-hero {
    overflow: hidden; border: 1px solid var(--mf-line); border-radius: 24px; background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.03); margin-bottom: 18px;
}
.mr-hero__cover { position: relative; height: clamp(230px, 29vw, 360px); background: var(--mf-muted-2); overflow: hidden; }
.mr-hero__cover > img { width: 100%; height: 100%; object-fit: cover; }
.mr-hero__cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.22)); pointer-events: none; }
.mr-hero__top-actions { position: absolute; top: 16px; inset-inline-end: 16px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.mr-hero__top-actions form { margin: 0; }
.mr-icon-action {
    width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid rgba(255,255,255,.55);
    border-radius: 13px; background: rgba(255,255,255,.94); color: var(--mf-ink-2); cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.11); backdrop-filter: blur(10px); transition: .18s ease;
}
.mr-icon-action:hover { transform: translateY(-1px); background: #fff; color: #018e72; }
.mr-icon-action.is-favorite { color: #e11d48; background: #fff4f6; border-color: #ffd7df; }

.mr-hero__body { padding: 0 24px 24px; }
.mr-hero__identity { display: flex; align-items: flex-start; gap: 18px; }
.mr-hero__logo-wrap {
    width: 104px; height: 104px; flex: 0 0 104px; margin-top: -42px; padding: 5px; position: relative; z-index: 3;
    border-radius: 24px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.mr-hero__logo { width: 100%; height: 100%; border-radius: 19px; object-fit: cover; border: 1px solid var(--mf-line); }
.mr-hero__content { min-width: 0; flex: 1; padding-top: 16px; }
.mr-hero__eyebrow-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.mr-status, .mr-soft-chip {
    min-height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border-radius: 999px;
    font-size: 10.5px; font-weight: 800;
}
.mr-status { border: 1px solid var(--mf-line); background: var(--mf-muted); color: var(--mf-ink-2); }
.mr-status__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mr-status.is-open { color: #087f5b; border-color: #bfe8da; background: #effbf6; }
.mr-status.is-closed { color: #b42318; border-color: #ffd0ca; background: #fff3f1; }
.mr-soft-chip { color: #018e72; border: 1px solid var(--mf-brand-border); background: var(--mf-brand-soft); }
.mr-hero__title { margin: 0; color: var(--mf-ink); font-size: clamp(25px, 3vw, 34px); line-height: 1.45; font-weight: 900; letter-spacing: -.6px; }
.mr-hero__description { max-width: 760px; margin: 7px 0 0; color: var(--mf-ink-3); font-size: 13px; line-height: 1.9; }
.mr-meta-list { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; }
.mr-meta-item {
    min-height: 30px; display: inline-flex; align-items: center; gap: 6px; color: var(--mf-ink-3);
    font-size: 11.5px; line-height: 1.6;
}
.mr-meta-item i { color: var(--mf-ink-4); }
.mr-meta-item strong { color: var(--mf-ink); font-weight: 850; }
.mr-meta-item--button { border: 0; background: transparent; padding: 0; cursor: pointer; }
.mr-meta-item--button:hover { color: #018e72; }
.mr-meta-item .mr-star { color: var(--mf-star); }

.mr-hero__utility {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 18px; padding-top: 18px;
    border-top: 1px solid var(--mf-line);
}
.mr-address { min-width: 0; display: flex; align-items: flex-start; gap: 10px; color: var(--mf-ink-3); }
.mr-address > i {
    width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px;
    color: #018e72; background: var(--mf-brand-soft);
}
.mr-address span, .mr-address strong { display: block; }
.mr-address span { margin-bottom: 2px; color: var(--mf-ink-4); font-size: 9.5px; font-weight: 700; }
.mr-address strong { max-width: 720px; color: var(--mf-ink-2); font-size: 11.5px; line-height: 1.9; font-weight: 650; }
.mr-hero__utility-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.mr-secondary-action {
    min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px;
    border: 1px solid var(--mf-line); border-radius: 11px; background: #fff; color: var(--mf-ink-2) !important;
    font-size: 10.5px; font-weight: 750; cursor: pointer; transition: .18s ease;
}
.mr-secondary-action:hover { color: #018e72 !important; border-color: var(--mf-brand-border); background: var(--mf-brand-soft); }
.mr-language-picker { position: relative; }
.mr-language-picker summary { list-style: none; }
.mr-language-picker summary::-webkit-details-marker { display: none; }
.mr-language-menu {
    position: absolute; top: calc(100% + 7px); inset-inline-end: 0; z-index: 20; min-width: 160px; padding: 7px;
    border: 1px solid var(--mf-line); border-radius: 12px; background: #fff; box-shadow: 0 16px 36px rgba(0,0,0,.12);
}
.mr-language-menu a { display: block; padding: 8px 9px; border-radius: 8px; color: var(--mf-ink-2); font-size: 11px; }
.mr-language-menu a:hover { background: var(--mf-brand-soft); color: #018e72; }

.mr-order-state {
    display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; padding: 13px 15px;
    border: 1px solid #f2d9a6; border-radius: 15px; background: #fffbef; color: #805b18;
}
.mr-order-state > i { margin-top: 4px; }
.mr-order-state strong, .mr-order-state span { display: block; }
.mr-order-state strong { font-size: 12px; margin-bottom: 2px; }
.mr-order-state span { font-size: 10.5px; line-height: 1.8; }

/* Menu */
.mr-menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 20px; align-items: start; }
.mr-menu-main { min-width: 0; }
.mr-menu-toolbar {
    display: grid; grid-template-columns: auto minmax(260px, 430px); align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px; border: 1px solid var(--mf-line); border-radius: 18px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.025);
}
.mr-menu-toolbar__heading span, .mr-menu-toolbar__heading strong { display: block; }
.mr-menu-toolbar__heading span { color: var(--mf-ink); font-size: 14px; font-weight: 850; }
.mr-menu-toolbar__heading strong { margin-top: 2px; color: var(--mf-ink-4); font-size: 9.5px; font-weight: 650; }
.mr-menu-search { position: relative; display: block; margin: 0; }
.mr-menu-search > i { position: absolute; top: 50%; inset-inline-start: 13px; transform: translateY(-50%); color: var(--mf-ink-4); z-index: 2; }
.mr-menu-search input {
    width: 100%; height: 42px; padding: 0 39px 0 36px; border: 1px solid var(--mf-line); border-radius: 12px;
    background: var(--mf-muted); color: var(--mf-ink); font-size: 11.5px; outline: 0; transition: .18s ease;
}
.mr-menu-search input:focus { border-color: var(--mf-brand); background: #fff; box-shadow: 0 0 0 3px rgba(3,206,164,.10); }
.mr-menu-search button {
    position: absolute; top: 50%; inset-inline-end: 8px; width: 28px; height: 28px; transform: translateY(-50%);
    border: 0; border-radius: 8px; background: transparent; color: var(--mf-ink-4); opacity: 0; pointer-events: none; cursor: pointer;
}
.mr-menu-search button.is-visible { opacity: 1; pointer-events: auto; }
.mr-menu-search button:hover { background: var(--mf-line); color: var(--mf-ink); }
.mr-menu-result { grid-column: 1 / -1; min-height: 0; color: #018e72; font-size: 10.5px; font-weight: 750; }
.mr-menu-result:empty { display: none; }

/* Search, the category rail and the cart summary have to stay in view
   while the customer scrolls a long menu. Sticking the whole block keeps
   the two parts together without hard-coding the toolbar's height. */
.mr-menu-sticky {
    position: sticky; top: calc(66px + var(--mf-announcement-h, 0px)); z-index: 21;
    padding-top: 10px; margin-bottom: 2px;
    background: linear-gradient(to bottom, var(--mf-bg, #fafaf8) 78%, rgba(250,250,248,0));
}

.mr-category-nav {
    position: static; z-index: 20; display: flex; align-items: center; gap: 7px; overflow-x: auto;
    margin: 12px 0 22px; padding: 8px; border: 1px solid rgba(232,232,227,.9); border-radius: 15px;
    background: rgba(250,250,248,.94); backdrop-filter: blur(12px); scrollbar-width: none;
}
.mr-category-nav::-webkit-scrollbar { display: none; }
.mr-category-nav__item {
    flex: 0 0 auto; min-height: 34px; padding: 0 13px; border: 1px solid transparent; border-radius: 10px;
    background: transparent; color: var(--mf-ink-3); font-size: 10.5px; font-weight: 750; white-space: nowrap; cursor: pointer; transition: .18s ease;
}
.mr-category-nav__item:hover { color: var(--mf-ink); background: #fff; }
.mr-category-nav__item.is-active { color: #018e72; background: #fff; border-color: var(--mf-brand-border); box-shadow: 0 1px 4px rgba(0,0,0,.05); }

.mr-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.mr-section-heading > div > span { display: block; margin-bottom: 2px; color: #018e72; font-size: 9.5px; font-weight: 800; }
.mr-section-heading h2 { margin: 0; color: var(--mf-ink); font-size: 19px; line-height: 1.5; font-weight: 850; letter-spacing: -.25px; }
.mr-section-heading small { color: var(--mf-ink-4); font-size: 9.5px; }

.mr-popular { margin-bottom: 28px; }
.mr-popular__rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 270px); gap: 10px; overflow-x: auto; padding: 2px 1px 10px; scrollbar-width: none; }
.mr-popular__rail::-webkit-scrollbar { display: none; }
.mr-popular-card {
    position: relative; min-width: 0; display: grid; grid-template-columns: 66px 1fr 32px; align-items: center; gap: 10px;
    padding: 9px; border: 1px solid var(--mf-line); border-radius: 16px; background: #fff; transition: .18s ease;
}
.mr-popular-card:hover { border-color: var(--mf-brand-border); box-shadow: var(--mf-shadow); transform: translateY(-1px); }
.mr-popular-card__media { width: 66px; height: 66px; overflow: hidden; border-radius: 13px; background: var(--mf-muted); }
/* The box is already square, so `cover` costs almost nothing on a square
   source and leaves no empty band the way `contain` did. */
.mr-popular-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mr-popular-card__body { min-width: 0; position: relative; z-index: 2; pointer-events: none; }
.mr-popular-card__body strong, .mr-popular-card__body span { display: block; }
.mr-popular-card__body strong { color: var(--mf-ink); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-popular-card__body span { margin-top: 5px; color: var(--mf-ink-2); font-size: 10.5px; font-weight: 800; }
.mr-mini-add {
    width: 30px; height: 30px; position: relative; z-index: 3; display: grid; place-items: center; border: 1px solid var(--mf-brand-border);
    border-radius: 10px; background: var(--mf-brand-soft); color: #018e72; cursor: pointer; transition: .18s ease;
}
.mr-mini-add:hover { background: var(--mf-brand); color: #fff; border-color: var(--mf-brand); }
.mr-card-click { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; cursor: pointer; }

.mr-menu-section { scroll-margin-top: 196px; margin-bottom: 30px; }
.mr-menu-section[hidden] { display: none !important; }
.mr-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mr-food-card {
    position: relative; min-width: 0; min-height: 154px; display: grid; grid-template-columns: minmax(0, 1fr) 132px; overflow: hidden;
    border: 1px solid var(--mf-line); border-radius: 18px; background: #fff; transition: .18s ease;
}
.mr-food-card:hover { border-color: var(--mf-brand-border); box-shadow: var(--mf-shadow); transform: translateY(-1px); }
.mr-food-card__content { min-width: 0; display: flex; flex-direction: column; padding: 14px; position: relative; z-index: 2; pointer-events: none; }
.mr-food-card__topline { display: flex; align-items: flex-start; gap: 7px; }
.mr-food-card__topline h3 { flex: 1; margin: 0; color: var(--mf-ink); font-size: 13px; line-height: 1.7; font-weight: 850; }
.mr-popular-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 999px; background: #fff5eb; color: #b65b08; font-size: 8.5px; font-weight: 800; }
.mr-food-card__content > p { margin: 6px 0 12px; color: var(--mf-ink-3); font-size: 10.5px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mr-food-card__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.mr-food-card__price { min-width: 0; }
.mr-food-card__price del, .mr-food-card__price strong { display: block; }
.mr-food-card__price del { margin-bottom: 2px; color: var(--mf-ink-4); font-size: 9px; }
.mr-food-card__price strong { color: var(--mf-ink); font-size: 11.5px; font-weight: 850; }
.mr-add-button {
    min-width: 74px; height: 34px; position: relative; z-index: 3; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    border: 1px solid var(--mf-brand-border); border-radius: 10px; background: var(--mf-brand-soft); color: #018e72;
    font-size: 9.5px; font-weight: 800; cursor: pointer; pointer-events: auto; transition: .18s ease;
}
.mr-add-button:hover { color: #fff; background: var(--mf-brand); border-color: var(--mf-brand); }
/* A square frame, filled.
   Two wrong answers came before this one. `cover` in a 132x154 portrait box
   cut a landscape plate off at every edge — the original complaint. Then
   `contain` in that same portrait box kept the dish whole but left a band of
   empty grey above and below it, which read as a broken card.
   A square frame fixes both: imported photos are square or near it, so
   `cover` crops almost nothing and there is no gap left to explain. The
   frame is centred in the card, so a taller neighbour does not stretch it. */
.mr-food-card__media { min-width: 0; display: grid; place-items: center; padding: 10px; background: var(--mf-muted); }
.mr-food-card__media img {
    width: 100%; aspect-ratio: 1 / 1; height: auto; max-height: 100%;
    border-radius: 12px; object-fit: cover; transition: transform .3s ease;
}
.mr-food-card:hover .mr-food-card__media img { transform: scale(1.03); }

.mr-menu-empty { padding: 42px 20px; text-align: center; border: 1px dashed var(--mf-line-2); border-radius: 18px; background: #fff; }
.mr-empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 11px; border-radius: 16px; background: var(--mf-brand-soft); color: #018e72; font-size: 18px; }
.mr-menu-empty h3 { margin: 0; color: var(--mf-ink); font-size: 14px; font-weight: 850; }
.mr-menu-empty p { margin: 6px 0 0; color: var(--mf-ink-3); font-size: 10.5px; line-height: 1.8; }

/* Sticky restaurant information */
/* The layout grid uses align-items:start, which shrinks this column to the
   height of the card itself. A sticky element can only travel inside its own
   parent, so with a parent that short it scrolls away at once. Stretching the
   column to the row height gives the card the room it needs to stay pinned. */
.mr-sidebar { min-width: 0; align-self: stretch; }

/* The whole column travels as one block.
   Each card used to be sticky on its own, all of them pinned to the same
   offset — so they landed on top of each other and everything below the
   first scrolled out of sight. One sticky wrapper keeps the order, and any
   card added to this column later is pinned with it, with no CSS to write.
   It scrolls inside itself when the column is taller than the screen, which
   is the only way a long sidebar can stay reachable. */
.mr-sidebar-sticky {
    position: sticky;
    top: calc(80px + var(--mf-announcement-h, 0px));
    max-height: calc(100vh - 96px - var(--mf-announcement-h, 0px));
    max-height: calc(100dvh - 96px - var(--mf-announcement-h, 0px));
    overflow-y: auto;
    /* Room for the cards' own shadows, which a clipped overflow would cut. */
    margin: -4px; padding: 4px;
    scrollbar-width: thin;
}

.mr-sidebar-card { padding: 15px; border: 1px solid var(--mf-line); border-radius: 18px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.025); }
.mr-sidebar-card__header { display: flex; align-items: center; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid var(--mf-line); }
.mr-sidebar-card__header img { width: 46px; height: 46px; flex: 0 0 auto; object-fit: cover; border-radius: 13px; border: 1px solid var(--mf-line); }
.mr-sidebar-card__header span, .mr-sidebar-card__header strong { display: block; }
.mr-sidebar-card__header span { color: var(--mf-ink-4); font-size: 9px; margin-bottom: 2px; }
.mr-sidebar-card__header strong { color: var(--mf-ink); font-size: 11.5px; }
.mr-facts { margin: 0; padding: 5px 0; }
.mr-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(232,232,227,.75); }
.mr-facts > div:last-child { border-bottom: 0; }
.mr-facts dt, .mr-facts dd { margin: 0; }
.mr-facts dt { display: flex; align-items: center; gap: 6px; color: var(--mf-ink-3); font-size: 9.5px; font-weight: 650; }
.mr-facts dt i { width: 14px; color: var(--mf-ink-4); text-align: center; }
.mr-facts dd { color: var(--mf-ink-2); font-size: 10px; font-weight: 800; text-align: left; }
.mr-sidebar-address { display: flex; align-items: flex-start; gap: 8px; margin-top: 5px; padding: 10px; border-radius: 11px; background: var(--mf-muted); color: var(--mf-ink-3); font-size: 9.5px; line-height: 1.8; }
.mr-sidebar-address i { margin-top: 3px; color: var(--mf-brand); }
.mr-sidebar-cart {
    width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 0 12px;
    border: 0; border-radius: 12px; background: var(--mf-brand); color: #fff; cursor: pointer; box-shadow: 0 5px 18px rgba(3,206,164,.18); font-size: 10.5px; font-weight: 800;
}
.mr-sidebar-cart span { display: inline-flex; align-items: center; gap: 7px; }
.mr-sidebar-cart b { min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: 9px; }
.mr-sidebar-cart:hover { background: var(--mf-brand-hover); }

/* Loyalty card. It sits under the restaurant card and follows it while the
   page scrolls, because it is there to change what the customer orders. */
.mr-loyalty-card { margin-top: 12px; padding: 14px; border: 1px solid var(--mf-brand-border); border-radius: 18px; background: var(--mf-brand-soft); }
.mr-loyalty-card__head { display: flex; align-items: flex-start; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid var(--mf-brand-border); }
.mr-loyalty-card__head > span { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: #018e72; font-size: 13px; }
.mr-loyalty-card__head strong { display: block; color: var(--mf-ink); font-size: 11px; font-weight: 850; }
.mr-loyalty-card__head small { display: block; margin-top: 2px; color: var(--mf-ink-4); font-size: 8.5px; line-height: 1.7; }
.mr-loyalty-rate { display: flex; align-items: baseline; gap: 7px; margin-top: 11px; }
.mr-loyalty-rate b { color: #018e72; font-size: 20px; font-weight: 900; letter-spacing: -.5px; }
.mr-loyalty-rate span { color: var(--mf-ink-3); font-size: 9.5px; font-weight: 750; }
.mr-loyalty-streak { font-style: normal; margin-inline-start: 4px; padding: 1px 6px; border-radius: 999px; background: #fff; color: #018e72; font-size: 8px; font-weight: 850; }
.mr-loyalty-progress { height: 6px; margin-top: 10px; border-radius: 999px; background: #fff; overflow: hidden; }
.mr-loyalty-progress i { display: block; height: 100%; border-radius: 999px; background: var(--mf-brand); transition: width .3s ease; }
.mr-loyalty-next { margin: 8px 0 0; color: var(--mf-ink-2); font-size: 9.5px; font-weight: 750; line-height: 1.85; }
.mr-loyalty-note { display: block; margin-top: 6px; color: var(--mf-ink-4); font-size: 8px; line-height: 1.7; }


.mr-impressum { margin-top: 22px; padding: 18px; border: 1px solid var(--mf-line); border-radius: 18px; background: #fff; color: var(--mf-ink-3); font-size: 11px; line-height: 1.9; }
.mr-impressum h3 { margin: 0 0 8px; color: var(--mf-ink); font-size: 14px; }

/* Mobile sticky cart. Hidden until cart has items. */
.mr-quick-cart {
    position: fixed; inset-inline: 16px; bottom: 82px; z-index: 1020; min-height: 52px; display: none; align-items: center; gap: 10px; padding: 6px 12px;
    border: 0; border-radius: 15px; background: var(--mf-brand); color: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.18); cursor: pointer;
}
.mr-quick-cart.has-items { display: flex; }
.mr-quick-cart__icon { width: 36px; height: 36px; position: relative; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.18); }
.mr-quick-cart__icon b { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; background: #fff; color: #018e72; font-size: 8px; }
.mr-quick-cart__label { flex: 1; text-align: right; font-size: 11px; font-weight: 850; }
.mr-quick-cart strong { font-size: 10px; }

/* Related items inside the existing product modal */
.marketplace-related { border-top: 1px solid var(--mf-line); padding-top: 14px; margin-top: 14px; }
.marketplace-related__heading { margin-bottom: 9px; color: var(--mf-ink); font-size: 11px; font-weight: 850; }
.marketplace-related__items { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.marketplace-related__item { min-width: 150px; max-width: 170px; display: grid; grid-template-columns: 48px 1fr; gap: 8px; align-items: center; padding: 7px; border: 1px solid var(--mf-line); border-radius: 12px; background: #fff; text-align: right; }
.marketplace-related__item img { width: 48px; height: 48px; object-fit: cover; border-radius: 9px; }
.marketplace-related__item span { min-width: 0; }
.marketplace-related__item strong, .marketplace-related__item small { display: block; }
.marketplace-related__item strong { color: var(--mf-ink); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marketplace-related__item small { margin-top: 3px; color: var(--mf-ink-3); font-size: 8.5px; }

@media (max-width: 1100px) {
    .mr-menu-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; }
    .mr-menu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .mr-menu-layout { display: block; }
    .mr-sidebar { display: none; }
    .mr-hero__utility { align-items: flex-start; flex-direction: column; }
    .mr-hero__utility-actions { justify-content: flex-start; }
    .mr-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .mf-restaurant-page .mf-page-wrap { padding-top: 66px; }
    .mr-page { padding: 0 0 102px; }
    .mr-shell { width: 100%; }
    .mr-breadcrumb { width: calc(100% - 28px); margin: 9px auto; }
    .mr-hero { margin: 0 0 10px; border-inline: 0; border-radius: 0; }
    .mr-hero__cover { height: 188px; }
    .mr-hero__top-actions { top: 12px; inset-inline-end: 12px; }
    .mr-icon-action { width: 38px; height: 38px; border-radius: 12px; }
    .mr-hero__body { padding: 0 14px 16px; }
    .mr-hero__identity { gap: 11px; }
    .mr-hero__logo-wrap { width: 78px; height: 78px; flex-basis: 78px; margin-top: -30px; padding: 4px; border-radius: 19px; }
    .mr-hero__logo { border-radius: 15px; }
    .mr-hero__content { padding-top: 10px; }
    .mr-hero__eyebrow-row { margin-bottom: 5px; }
    .mr-soft-chip { display: none; }
    .mr-hero__title { font-size: 21px; }
    .mr-hero__description { margin-top: 4px; font-size: 10.5px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .mr-meta-list { gap: 5px 10px; margin-top: 9px; }
    .mr-meta-item { min-height: 25px; font-size: 9.5px; }
    .mr-hero__utility { margin-top: 12px; padding-top: 12px; gap: 10px; }
    .mr-address strong { font-size: 9.5px; }
    .mr-hero__utility-actions { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .mr-hero__utility-actions::-webkit-scrollbar { display: none; }
    .mr-secondary-action { flex: 0 0 auto; min-height: 34px; font-size: 9px; }
    .mr-order-state { margin: 10px 14px; }
    .mr-menu-main { padding: 0 14px; }
    .mr-menu-toolbar { grid-template-columns: 1fr; gap: 9px; padding: 11px; border-radius: 15px; }
    .mr-menu-toolbar__heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .mr-menu-toolbar__heading span { font-size: 12px; }
    .mr-menu-toolbar__heading strong { margin: 0; font-size: 8.5px; }
    .mr-menu-search input { height: 40px; }
    .mr-category-nav { margin: 9px -14px 0; padding: 7px 14px; border-inline: 0; border-radius: 0; }
    /* A phone has little room: the sticky block stays, but tighter. */
    .mr-menu-sticky { padding-top: 6px; margin-bottom: 14px; }
    .mr-menu-section { scroll-margin-top: 172px; }
    .mr-category-nav__item { min-height: 32px; padding-inline: 11px; font-size: 9.5px; }
    .mr-section-heading h2 { font-size: 16px; }
    .mr-popular { margin-bottom: 22px; }
    .mr-popular__rail { grid-auto-columns: minmax(210px, 78vw); }
    .mr-menu-section { scroll-margin-top: 115px; margin-bottom: 24px; }
    .mr-menu-grid { grid-template-columns: 1fr; gap: 9px; }
    .mr-food-card { min-height: 132px; grid-template-columns: minmax(0, 1fr) 112px; border-radius: 15px; }
    .mr-food-card__content { padding: 11px; }
    .mr-food-card__topline h3 { font-size: 11.5px; }
    .mr-food-card__content > p { margin: 4px 0 9px; font-size: 9.5px; }
    .mr-food-card__media { padding: 8px; }
    .mr-add-button { min-width: 62px; height: 31px; font-size: 8.5px; }
    .mr-food-card__price strong { font-size: 10px; }
    .mr-quick-cart.has-items { display: flex; }
    .mr-impressum { margin: 18px 14px 0; }
}

@media (min-width: 768px) {
    .mr-quick-cart { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .mr-page *, .mr-page *::before, .mr-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Restaurant information modal — marketplace visual language */
.mr-info-modal { direction: rtl; }
.mr-info-modal__dialog { max-width: 1100px; }
.mr-info-modal__content { position: relative; overflow: hidden; border: 1px solid var(--mf-line); border-radius: var(--mf-radius-lg); background: var(--mf-surface); box-shadow: var(--mf-shadow-hover); }
.mr-info-modal__close { position: absolute; z-index: 8; top: 16px; left: 16px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--mf-line); border-radius: 50%; background: var(--mf-card); color: var(--mf-ink-2); box-shadow: var(--mf-shadow); cursor: pointer; }
.mr-info-modal__close:hover { border-color: var(--mf-brand-border); color: var(--mf-brand-hover); }
.mr-info-modal__hero { position: relative; min-height: 245px; background: var(--mf-muted); }
.mr-info-modal__cover { position: absolute; inset: 0; overflow: hidden; }
.mr-info-modal__cover img { width: 100%; height: 100%; object-fit: cover; }
.mr-info-modal__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,17,16,.18), rgba(17,17,16,.72)); }
.mr-info-modal__identity { position: absolute; z-index: 2; inset: auto 34px 28px 86px; display: flex; align-items: end; gap: 18px; color: var(--mf-card); }
.mr-info-modal__logo { width: 92px; height: 92px; flex: 0 0 auto; object-fit: cover; border: 5px solid var(--mf-card); border-radius: var(--mf-radius); background: var(--mf-card); box-shadow: var(--mf-shadow); }
.mr-info-modal__eyebrow { color: var(--mf-brand); font-size: .75rem; font-weight: 900; }
.mr-info-modal__identity h2 { margin: 5px 0 10px; color: var(--mf-card); font-size: clamp(1.45rem,2.8vw,2.15rem); font-weight: 900; }
.mr-info-modal__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mr-info-modal__chips > span { min-height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.12); color: var(--mf-card); font-size: .72rem; }
.mr-info-modal__chips small { opacity: .75; }
.mr-info-status i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--mf-ink-4); }
.mr-info-status.is-open i { background: var(--mf-brand); }
.mr-info-status.is-closed i { background: var(--mf-danger); }
.mr-info-modal__body { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(290px,.72fr); gap: 18px; padding: 20px; }
.mr-info-modal__main { min-width: 0; display: grid; gap: 16px; }
.mr-info-section,.mr-info-reviews { border: 1px solid var(--mf-line); border-radius: var(--mf-radius); background: var(--mf-card); }
.mr-info-section { padding: 18px; }
.mr-info-section__heading { display: flex; gap: 11px; align-items: center; margin-bottom: 13px; }
.mr-info-section__heading > span { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: var(--mf-radius-sm); background: var(--mf-brand-soft); color: var(--mf-brand-hover); }
.mr-info-section__heading small,.mr-info-reviews__heading span { display: block; color: var(--mf-brand-hover); font-size: .69rem; font-weight: 850; }
.mr-info-section__heading h3,.mr-info-reviews__heading h3 { margin: 2px 0 0; color: var(--mf-ink); font-size: 1rem; font-weight: 900; }
.mr-info-description { margin: 0; color: var(--mf-ink-2); line-height: 2; font-size: .86rem; }
.mr-info-contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 13px; }
.mr-info-contact { min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--mf-line); border-radius: var(--mf-radius-sm); background: var(--mf-surface); }
.mr-info-contact > i { margin-top: 3px; color: var(--mf-brand-hover); }
.mr-info-contact div { min-width: 0; display: grid; gap: 3px; }
.mr-info-contact small { color: var(--mf-ink-3); font-size: .66rem; }
.mr-info-contact strong { color: var(--mf-ink-2); font-size: .78rem; line-height: 1.7; overflow-wrap: anywhere; }
.mr-info-map { height: 245px; overflow: hidden; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); background: var(--mf-muted); }
.mr-info-reviews { min-width: 0; padding: 16px; max-height: 560px; display: flex; flex-direction: column; }
.mr-info-reviews__heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 2px 2px 13px; border-bottom: 1px solid var(--mf-line); }
.mr-info-reviews__heading > strong { display: inline-flex; gap: 5px; align-items: center; color: var(--mf-ink); }
.mr-info-reviews__list { overflow-y: auto; display: grid; gap: 10px; padding-top: 12px; }
.mr-info-review { padding: 12px; border: 1px solid var(--mf-line); border-radius: var(--mf-radius-sm); background: var(--mf-surface); }
.mr-info-review__top { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; align-items: center; }
.mr-info-review__avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--mf-brand-soft); color: var(--mf-brand-hover); }
.mr-info-review__top > div { min-width: 0; display: grid; }
.mr-info-review__top strong { color: var(--mf-ink); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-info-review__top small { color: var(--mf-ink-4); font-size: .62rem; }
.mr-info-review__score { display: inline-flex; gap: 4px; align-items: center; color: var(--mf-ink-2); font-size: .72rem; font-weight: 900; }
.mr-info-review__score i { color: var(--mf-star); }
.mr-info-review p { margin: 9px 0 0; color: var(--mf-ink-3); font-size: .73rem; line-height: 1.8; }
.mr-info-reviews__empty { flex: 1; min-height: 220px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--mf-ink-3); }
.mr-info-reviews__empty > span { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 9px; border-radius: var(--mf-radius); background: var(--mf-brand-soft); color: var(--mf-brand-hover); }
.mr-info-reviews__empty strong { color: var(--mf-ink); }
.mr-info-reviews__empty p { margin: 5px 0 0; font-size: .73rem; }

@media (max-width: 991.98px) {
    .mr-info-modal__body { grid-template-columns: 1fr; }
    .mr-info-reviews { max-height: none; }
    .mr-info-reviews__list { max-height: 360px; }
}
@media (max-width: 767.98px) {
    .mr-info-modal__dialog { align-items: flex-end; min-height: 100%; margin: 0; }
    .mr-info-modal__content { max-height: 94vh; overflow-y: auto; border-radius: var(--mf-radius-lg) var(--mf-radius-lg) 0 0; }
    .mr-info-modal__hero { min-height: 220px; }
    .mr-info-modal__identity { inset: auto 18px 20px 56px; gap: 12px; align-items: center; }
    .mr-info-modal__logo { width: 72px; height: 72px; border-width: 4px; }
    .mr-info-modal__body { padding: 12px; gap: 12px; }
    .mr-info-section { padding: 14px; }
    .mr-info-contact-grid { grid-template-columns: 1fr; }
    .mr-info-map { height: 210px; }
}

/* Missions. One card under the loyalty card: the goal, how far along, and
   what finishing it is worth. Deliberately plain — a goal that shouts is a
   goal the customer learns to ignore. */
.mr-mission-card { margin-top: 12px; padding: 14px; border: 1px solid var(--mf-line); border-radius: 18px; background: #fff; }
.mr-mission-card__head { display: flex; align-items: flex-start; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid var(--mf-line); }
.mr-mission-card__head > span { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--mf-brand-soft); color: #018e72; font-size: 12px; }
.mr-mission-card__head strong { display: block; color: var(--mf-ink); font-size: 11px; font-weight: 850; }
.mr-mission-card__head small { display: block; margin-top: 2px; color: var(--mf-ink-4); font-size: 8.5px; line-height: 1.7; }
.mr-mission { margin-top: 11px; }
.mr-mission b { display: block; color: var(--mf-ink-2); font-size: 10px; font-weight: 800; }
.mr-mission .mr-loyalty-progress { margin-top: 7px; background: var(--mf-muted); }
.mr-mission p { margin: 6px 0 0; color: var(--mf-ink-4); font-size: 8.5px; font-weight: 700; line-height: 1.8; }

/* Add-to-cart confirmation
   Replaces the cart drawer that used to open after every add. It confirms
   and leaves — no button on it, because the cart icon in the header is
   already there and a toast is the wrong place to put a decision.

   Top right, and it leaves the way it arrived: a confirmation that slides
   back out to the edge reads as finished, where one that fades in place
   leaves you wondering whether you missed something. */
.mr-toast-stack {
    position: fixed; z-index: 100200; top: 14px; inset-inline-end: 14px;
    display: grid; justify-items: end; gap: 8px;
    pointer-events: none;
}
.mr-toast {
    max-width: min(340px, calc(100vw - 28px)); display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; border: 1px solid var(--mf-brand-border); border-radius: 14px;
    background: #fff; box-shadow: 0 14px 38px rgba(0,0,0,.16);
    opacity: 0; transform: translateX(120%); transition: opacity .22s ease, transform .22s ease;
    pointer-events: auto;
}
.mr-toast.is-in { opacity: 1; transform: translateX(0); }
/* Out to the inline end, which is the right edge on this RTL page. */
.mr-toast.is-leaving { opacity: 0; transform: translateX(120%); }
.mr-toast.is-warning { border-color: #f3c6c4; }
.mr-toast__text { flex: 1; min-width: 0; color: var(--mf-ink); font-size: 11.5px; font-weight: 800; line-height: 1.7; }
.mr-toast__close {
    flex: none; width: 24px; height: 24px; display: grid; place-items: center;
    border: 0; border-radius: 8px; background: transparent; color: var(--mf-ink-3); cursor: pointer;
}
.mr-toast__close:hover { color: var(--mf-ink); background: var(--mf-muted); }

@media (max-width: 767.98px) {
    /* Below the sticky header rather than over it. */
    .mr-toast-stack { top: 68px; inset-inline-end: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .mr-toast { transition: none !important; transform: none !important; }
    .mr-toast.is-leaving { opacity: 0; }
}
