/* A public menu page customers open without signing in (Views/PublicMenus/Page.cshtml): the header in the brand
   colour with the menus as tabs, the filters, the menu's sections and dishes, and a dish's detail sheet; or the
   company page's location picker, or a message.
   Scripts/indicater.public-menu.js sets aria-pressed, aria-selected, [hidden], .pm-dim and the sheet's cell states.
   The page has no layout, so the house tokens are declared here. The body sets --pm-brand, --pm-brand-text (text on
   the brand colour) and --pm-brand-ink (the brand colour as text on white, at 4.5:1 or more). */

:root {
    --ic-card: #FFFFFF;
    --ic-n-50: #F4F4F7;
    --ic-n-100: #EFEFF3;
    --ic-n-200: #E7E8EC;
    --ic-n-300: #DFDFE4;
    --ic-n-400: #D1D2D7;
    --ic-n-600: #7E848D;
    --ic-n-700: #525C66;
    --ic-n-800: #2D3A43;
    --ic-n-900: #212E36;
    --ic-red-mid: #982132;
    --ic-red-deep: #680319;
    --ic-red-wash: #FFE7E7;
    --ic-amber-mid: #834300;
    --ic-amber-deep: #582600;
    --ic-amber-wash: #FEEDD8;
    --ic-green-mid: #006920;
    --ic-green-deep: #004407;
    --ic-green-wash: #E2F7E4;
    --ic-sage-mid: #629742;
    --ic-sage-deep: #1B4300;
    --ic-shadow-sm: 0 1px 2px rgba(33, 46, 54, .05), 0 4px 14px rgba(33, 46, 54, .06);
    --ic-veil: rgba(33, 46, 54, .45);

    --pm-heading: Lato, "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
    --pm-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

    --t-micro: 1.1rem;
    --t-small: 1.3rem;
    --t-body: 1.5rem;
    --t-lead: 1.6rem;
    --t-title: 2rem;
    --t-display: 2.4rem;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;

    --r-1: 4px;
    --r-2: 8px;
    --r-3: 12px;
    --r-card: 16px;

    --pm-gutter: var(--space-4);
}

@media (min-width: 768px) {
    :root {
        --pm-gutter: var(--space-5);
    }
}

[hidden] {
    display: none !important;
}

html {
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.pm {
    margin: 0;
    background: var(--ic-card);
    color: var(--ic-n-900);
    font-family: var(--pm-body);
    font-size: var(--t-body);
    line-height: 1.45;
    overflow-x: hidden;
}

.pm button {
    font-family: inherit;
}

.pm-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: var(--pm-gutter);
    padding-right: var(--pm-gutter);
}

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

.pm :focus-visible {
    outline: 2px solid var(--ic-n-900);
    outline-offset: 2px;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.pm-header {
    background: var(--pm-brand);
    color: var(--pm-brand-text);
}

.pm-header :focus-visible {
    outline-color: var(--pm-brand-text);
}

.pm-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4) var(--space-6);
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
}

.pm-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
}

.pm-menus {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
    max-width: 100%;
}

.pm-menus-label {
    font-size: var(--t-small);
    font-weight: 600;
    line-height: 1.2;
    opacity: .9;
}

.pm-menu-tabs {
    display: flex;
    gap: var(--space-1);
    padding: var(--space-1);
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    overflow-x: auto;
}

.pm-menu-tab {
    flex: none;
    min-height: 44px;
    padding: var(--space-2) 14px;
    border: 0;
    border-radius: var(--r-2);
    background: transparent;
    color: var(--pm-brand-text);
    font-size: var(--t-body);
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.pm-menu-tab:hover {
    text-decoration: underline;
}

.pm-menu-tab[aria-selected="true"] {
    background: var(--ic-card);
    color: var(--pm-brand-ink, var(--pm-brand));
    font-weight: 700;
}

.pm-logo {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: var(--r-2);
    background: var(--ic-card);
    padding: var(--space-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pm-heading {
    min-width: 0;
}

.pm-title {
    margin: 0;
    font: 900 var(--t-display)/1.15 var(--pm-heading);
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
}

.pm-subtitle {
    margin: 2px 0 0;
    font-size: var(--t-body);
    opacity: .9;
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .pm-header-row {
        padding-top: var(--space-5);
        padding-bottom: var(--space-5);
    }

    .pm-brand {
        gap: var(--space-4);
    }

    .pm-logo {
        width: 52px;
        height: 52px;
    }
}

/* ── Day picker ───────────────────────────────────────────────────────── */

.pm-days-bar {
    background: var(--ic-n-50);
    border-bottom: 1px solid var(--ic-n-200);
}

.pm-days {
    display: flex;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
    overflow-x: auto;
}

.pm-day-btn {
    position: relative;
    flex: none;
    min-width: 56px;
    min-height: 44px;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--r-2);
    border: 1px solid var(--ic-n-400);
    background: var(--ic-card);
    color: var(--ic-n-800);
    font-size: var(--t-small);
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pm-day-btn:hover {
    border-color: var(--ic-n-700);
}

.pm-day-btn[aria-pressed="true"] {
    background: var(--pm-brand);
    border-color: var(--pm-brand);
    color: var(--pm-brand-text);
    font-weight: 700;
}

.pm-day-today {
    font-size: var(--t-micro);
    font-weight: 400;
}

.pm-day-note {
    margin: 0 auto;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: var(--t-small);
    color: var(--ic-n-800);
}

/* ── Filters ──────────────────────────────────────────────────────────── */

.pm-filters {
    border-bottom: 1px solid var(--ic-n-300);
}

.pm-filters-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-4);
    padding-bottom: var(--space-3);
}

.pm-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-5);
    align-items: flex-end;
}

.pm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.pm-search {
    flex: 1 1 260px;
    max-width: 360px;
}

.pm-label {
    font-size: var(--t-small);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ic-n-700);
}

.pm-input {
    font: 400 var(--t-lead)/1.2 var(--pm-body);
    height: 44px;
    width: 100%;
    border: 1px solid var(--ic-n-400);
    border-radius: var(--r-2);
    padding: 0 var(--space-3);
    color: var(--ic-n-900);
    background: var(--ic-card);
}

.pm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pm-chip {
    position: relative;
    font-size: var(--t-body);
    font-weight: 600;
    line-height: 1.1;
    min-height: 38px;
    padding: var(--space-1) var(--space-3);
    border-radius: 999px;
    border: 1px solid var(--ic-n-400);
    background: var(--ic-card);
    color: var(--ic-n-900);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: left;
}

.pm-chip::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -3px;
    bottom: -3px;
}

.pm-chip:hover {
    border-color: var(--ic-n-700);
}

.pm-chip-avoid[aria-pressed="true"] {
    background: var(--ic-red-wash);
    border-color: var(--ic-red-mid);
    color: var(--ic-red-deep);
}

.pm-chip-diet[aria-pressed="true"] {
    background: var(--ic-green-wash);
    border-color: var(--ic-green-mid);
    color: var(--ic-green-deep);
}

.pm-chip[aria-pressed="true"]::before {
    content: "";
    width: 6px;
    height: 10px;
    margin: -2px 2px 0 0;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pm-hide {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    min-height: 44px;
    font-weight: 600;
    color: var(--ic-n-800);
    cursor: pointer;
}

.pm-hide input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--ic-n-900);
}

/* I need to avoid: a button naming what is chosen, opening the allergens and Hide dishes I can't eat. */

.pm-avoid-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    max-width: 360px;
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--ic-n-400);
    border-radius: var(--r-2);
    background: var(--ic-card);
    color: var(--ic-n-900);
    text-align: left;
    cursor: pointer;
}

.pm-avoid-chosen {
    flex: 1;
    min-width: 0;
    font-weight: 700;
}

.pm-avoid-change {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--ic-n-800);
    text-decoration: underline;
}

.pm-avoid-change::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pm-avoid.is-open .pm-avoid-change::after {
    margin-top: 3px;
    transform: rotate(-135deg);
}

.pm-avoid-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.pm-avoid:not(.is-open) .pm-avoid-body {
    display: none;
}

@media (max-width: 767px) {
    .pm-search {
        max-width: none;
    }

    .pm-avoid-toggle {
        max-width: none;
    }
}

/* ── Sections ─────────────────────────────────────────────────────────── */

.pm-sections {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--ic-card);
    border-bottom: 1px solid var(--ic-n-300);
}

.pm-sections-inner {
    display: flex;
    gap: var(--space-5);
    overflow-x: auto;
}

.pm-tab {
    flex: none;
    font: 700 var(--t-lead)/1 var(--pm-heading);
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    min-height: 44px;
    padding: var(--space-3) 2px 10px;
    color: var(--ic-n-700);
    cursor: pointer;
    display: inline-flex;
    gap: var(--space-2);
    align-items: center;
    white-space: nowrap;
}

.pm-tab[aria-pressed="true"] {
    color: var(--ic-n-900);
    border-bottom-color: currentColor;
}

.pm-count {
    font: 600 var(--t-micro)/1 var(--pm-body);
    background: var(--ic-n-100);
    color: var(--ic-n-800);
    border-radius: 999px;
    padding: var(--space-1) 7px;
}

/* ── Menu ─────────────────────────────────────────────────────────────── */

.pm-main {
    padding-top: var(--space-2);
    padding-bottom: var(--space-6);
}

.pm-summary {
    margin: var(--space-4) 0 0;
    font-size: var(--t-small);
    color: var(--ic-n-800);
}

.pm-summary:empty {
    display: none;
}

.pm-category {
    margin-top: var(--space-6);
}

.pm-category-name {
    margin: 0 0 var(--space-1);
    font: 900 var(--t-title)/1.2 var(--pm-heading);
    letter-spacing: -0.015em;
    color: var(--pm-brand-ink, var(--pm-brand));
}

.pm-dishes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
    column-gap: 56px;
}

.pm-dish {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pm-dishes > .pm-dish {
    padding: 18px 0 20px;
    border-bottom: 1px solid var(--ic-n-200);
}

.pm-dish-head {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    font: 700 var(--t-lead)/1.3 var(--pm-heading);
}

.pm-dish-btn {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    margin: -12px 0;
    padding: 12px 0;
    border: 0;
    background: none;
    color: var(--ic-n-900);
    font: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: baseline;
    gap: 10px;
    overflow-wrap: anywhere;
}

.pm-dish-btn:hover .pm-dish-name {
    text-decoration: underline;
}

.pm-dish-btn::after {
    content: "";
    flex: none;
    align-self: center;
    width: 8px;
    height: 8px;
    margin-left: auto;
    border: solid var(--ic-n-600);
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
}

.pm-has-price .pm-dish-btn {
    flex: 0 1 auto;
}

.pm-has-price .pm-dish-btn::after {
    content: none;
}

.pm-leader {
    flex: 1;
    min-width: 24px;
    border-bottom: 2px dotted var(--ic-n-400);
    transform: translateY(-4px);
}

.pm-price {
    flex: none;
    font: 700 var(--t-lead)/1 var(--pm-body);
    font-variant-numeric: tabular-nums;
}

.pm-desc {
    margin: 0;
    color: var(--ic-n-800);
}

.pm-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: var(--t-small);
    color: var(--ic-n-700);
}

.pm-meta:empty {
    display: none;
}

/* A dish's figures per portion, one after another, split by a dot; one that is not available reads quieter. */
.pm-figure {
    font-variant-numeric: tabular-nums;
}

.pm-figure + .pm-figure::before {
    content: "·";
    content: "·" / "";
    margin-right: 6px;
}

.pm-figure-na {
    font-style: italic;
}

.pm-tag {
    font-size: var(--t-small);
    font-weight: 600;
    line-height: 1;
    border: 1px solid var(--ic-n-300);
    border-radius: var(--r-1);
    padding: var(--space-1) 6px;
    color: var(--ic-n-800);
}

.pm-tag-diet {
    border-color: var(--ic-sage-mid);
    color: var(--ic-sage-deep);
}

.pm-allergens {
    margin: 2px 0 0;
    font-size: var(--t-small);
    color: var(--ic-n-700);
}

.pm-allergens b {
    font-weight: 700;
    color: var(--ic-n-800);
}

.pm-warn {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    font-size: var(--t-small);
    font-weight: 600;
    line-height: 1.35;
    border-radius: var(--r-2);
    padding: var(--space-2) 10px;
}

.pm-warn svg {
    flex: none;
    margin-top: 1px;
}

.pm-warn-red {
    background: var(--ic-red-wash);
    color: var(--ic-red-deep);
    border: 1px solid var(--ic-red-mid);
}

.pm-warn-amber {
    background: var(--ic-amber-wash);
    color: var(--ic-amber-deep);
    border: 1px dashed var(--ic-amber-mid);
}

.pm-dim > .pm-dish-head .pm-dish-btn,
.pm-dim > .pm-dish-head .pm-price,
.pm-dim > .pm-desc {
    color: var(--ic-n-700);
}

.pm-modifiers {
    list-style: none;
    margin: var(--space-1) 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.pm-modifier {
    padding: 10px 0 10px 26px;
    border-top: 1px solid var(--ic-n-200);
    position: relative;
}

.pm-modifier::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 14px;
    width: 10px;
    height: 10px;
    border: solid var(--ic-n-600);
    border-width: 0 0 2px 2px;
}

.pm-modifier > .pm-dish-head {
    font-size: var(--t-body);
}

/* ── Location picker (the company page) ───────────────────────────────── */

.pm-locations {
    margin-top: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 640px;
}

.pm-locations-title {
    margin: 0;
    font: 900 var(--t-title)/1.2 var(--pm-heading);
    letter-spacing: -0.015em;
}

.pm-location-find .pm-input {
    width: 100%;
    min-height: 44px;
}

.pm-location-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ic-n-200);
}

.pm-location {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 60px;
    padding: var(--space-3) var(--space-1);
    border-bottom: 1px solid var(--ic-n-200);
    color: var(--ic-n-900);
    text-decoration: none;
}

.pm-location::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    margin-left: auto;
    border: solid var(--ic-n-600);
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
}

.pm-location:hover .pm-location-name {
    color: var(--pm-brand-ink, var(--pm-brand));
    text-decoration: underline;
}

.pm-location:focus-visible {
    outline-offset: -2px;
}

.pm-location-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pm-location-name {
    font: 700 var(--t-lead)/1.3 var(--pm-heading);
    overflow-wrap: anywhere;
}

/* Asking for a location first: how many places a location has, and the way back from its outlets. */
.pm-location-meta {
    font-size: var(--t-small);
    color: var(--ic-n-700);
}

.pm-locations-head {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.pm-locations-lead {
    margin: 0;
    color: var(--ic-n-800);
}

.pm-all-locations {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    align-self: flex-start;
    min-height: 44px;
    color: var(--pm-brand-ink, var(--pm-brand));
    font-weight: 600;
    text-decoration: underline;
}

.pm-all-locations::before {
    content: "";
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
    transform: rotate(45deg);
}

.pm-all-locations:hover {
    text-decoration-thickness: 2px;
}

.pm-location-none {
    margin: 0;
    color: var(--ic-n-800);
}

.pm-location-none:empty {
    display: none;
}

.pm-location-note {
    margin: var(--space-1) 0 0;
    font-size: var(--t-small);
    color: var(--ic-n-700);
}

/* ── A location chosen on the company page, and a preview ──────────────── */

.pm-change {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 2px;
    color: var(--pm-brand-text);
    font-size: var(--t-small);
    font-weight: 600;
    text-decoration: underline;
}

.pm-change:hover {
    text-decoration-thickness: 2px;
}

.pm-preview {
    background: var(--ic-amber-wash);
    border-bottom: 1px dashed var(--ic-amber-mid);
}

.pm-preview-text {
    margin: 0 auto;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: var(--t-small);
    font-weight: 600;
    color: var(--ic-amber-deep);
}

/* ── Empty and not found ──────────────────────────────────────────────── */

.pm-empty {
    margin-top: var(--space-7);
    padding: var(--space-6) var(--space-4);
    border: 1px solid var(--ic-n-300);
    border-radius: var(--r-3);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.pm-empty-title {
    margin: 0;
    font: 700 var(--t-lead)/1.3 var(--pm-heading);
}

.pm-empty-help {
    margin: 0;
    color: var(--ic-n-800);
}

.pm-empty-help:empty {
    display: none;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

/* The key and the notices: one under another across the page, in small type. */
.pm-footer {
    margin-top: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.pm-notice {
    margin: 0;
    border: 1px solid var(--ic-n-300);
    border-radius: var(--r-3);
    padding: var(--space-2) var(--space-3);
    font-size: var(--t-micro);
    line-height: 1.45;
    color: var(--ic-n-800);
}

/* The key to the codes in names: its title on its own line, then each code and what it means. */
.pm-legend-title {
    display: block;
    margin-bottom: var(--space-1);
    font-weight: 700;
    color: var(--ic-n-900);
}

.pm-legend-item {
    white-space: nowrap;
}

.pm-legend-code {
    font-weight: 600;
}

/* ── Dish sheet ───────────────────────────────────────────────────────── */

.pm-sheet {
    padding: 0;
    border: 0;
    background: transparent;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    max-height: 90dvh;
    color: var(--ic-n-900);
}

.pm-sheet::backdrop {
    background: var(--ic-veil);
}

.pm-sheet-panel {
    background: var(--ic-card);
    border-radius: var(--r-card);
    box-shadow: var(--ic-shadow-sm);
    display: flex;
    flex-direction: column;
    max-height: inherit;
    overflow: hidden;
}

.pm-sheet-grip {
    display: none;
}

.pm-sheet-head {
    padding: var(--space-4);
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    border-bottom: 1px solid var(--ic-n-200);
}

.pm-sheet-heading {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.pm-sheet-title {
    margin: 0;
    font: 900 var(--t-title)/1.2 var(--pm-heading);
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
}

.pm-close {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--ic-n-300);
    background: var(--ic-card);
    color: var(--ic-n-900);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pm-sheet-body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    overflow-y: auto;
}

.pm-sheet-warnings {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.pm-sheet-warnings:empty {
    display: none;
}

.pm-sheet-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pm-sheet-section h3 {
    margin: 0;
    font: 700 var(--t-lead)/1.3 var(--pm-heading);
}

.pm-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.pm-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-2);
    padding: 9px 10px;
    border-radius: var(--r-2);
    border: 1px solid var(--ic-n-200);
    background: var(--ic-card);
    color: var(--ic-n-700);
    font-size: var(--t-small);
    line-height: 1.2;
}

.pm-cell-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pm-cell-mark {
    margin-left: auto;
    font-size: var(--t-micro);
    font-weight: 700;
    text-transform: uppercase;
}

.pm-cell-mark:empty {
    display: none;
}

.pm-cell[data-state="contains"] {
    background: var(--ic-red-wash);
    border-color: var(--ic-red-mid);
    color: var(--ic-red-deep);
    font-weight: 600;
}

.pm-cell[data-state="may"] {
    background: var(--ic-amber-wash);
    border: 1px dashed var(--ic-amber-mid);
    color: var(--ic-amber-deep);
    font-weight: 600;
}

.pm-cell[data-state="missing"] {
    border: 1px dashed var(--ic-n-600);
    color: var(--ic-n-800);
}

.pm-nutrition {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.pm-nut {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 9px 0;
    border-bottom: 1px solid var(--ic-n-200);
    font-size: var(--t-body);
    line-height: 1.2;
    color: var(--ic-n-800);
}

.pm-nut:last-child {
    border-bottom: 0;
}

.pm-nut dt {
    margin: 0;
}

.pm-nut dd {
    margin: 0;
    font-weight: 600;
    color: var(--ic-n-900);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.pm-nut-sub dt {
    padding-left: var(--space-4);
}

@media (max-width: 767px) {
    .pm-sheet {
        max-width: none;
        margin: auto 0 0;
    }

    .pm-sheet-panel {
        border-radius: var(--r-card) var(--r-card) 0 0;
    }

    .pm-sheet-grip {
        display: block;
        width: 40px;
        height: 4px;
        margin: 10px auto 0;
        border-radius: 999px;
        background: var(--ic-n-400);
    }
}

/* ── In a website's frame (?embed=1) ──────────────────────────────────── */
/* The body is .pm-embed with .pm-style-auto, -look or -site, and .pm-compact for dishes and prices only. The script
   adds html.pm-framed inside a frame, .pm-site-colours with the website's colours as the tokens above, or
   .pm-own-colours for the page's own colours on its own background; .pm-style-waiting hides the page until the
   website's style arrives, for three seconds at most. */

body.pm-embed {
    --pm-gutter: var(--space-1);
    background: transparent;
}

body.pm-embed.pm-own-colours {
    background: var(--ic-card);
}

html.pm-framed {
    overflow: hidden;
}

.pm-style-waiting {
    visibility: hidden;
    animation: pm-reveal 0s linear 3s forwards;
}

@keyframes pm-reveal {
    to {
        visibility: visible;
    }
}

.pm-embed .pm-wrap {
    max-width: none;
}

.pm-embed .pm-sections {
    position: static;
}

.pm-embed .pm-empty {
    margin-top: var(--space-4);
}

html.pm-framed .pm-sheet {
    position: absolute;
    top: 8px;
    bottom: auto;
    margin: 0 auto;
}

/* Without our header: the menus' tabs as a row of pills, and the change-location link, in the page's colours. */

.pm-header-bare {
    background: transparent;
    color: inherit;
}

.pm-header-bare .pm-header-row {
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--space-2);
    padding-bottom: 0;
}

.pm-header-bare :focus-visible {
    outline-color: var(--ic-n-900);
}

.pm-header-bare .pm-change {
    color: var(--pm-brand-ink, var(--pm-brand));
}

.pm-header-bare .pm-menus-label {
    color: var(--ic-n-700);
    opacity: 1;
}

.pm-header-bare .pm-menu-tabs {
    background: transparent;
    border: 1px solid var(--ic-n-400);
    border-radius: 999px;
}

.pm-header-bare .pm-menu-tab {
    border-radius: 999px;
    color: var(--ic-n-900);
}

.pm-header-bare .pm-menu-tab[aria-selected="true"] {
    background: var(--pm-brand);
    color: var(--pm-brand-text);
}

/* Compact: names are not buttons, as there is no dish sheet. */

.pm-compact .pm-dish-head > .pm-dish-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pm-compact .pm-has-price > .pm-dish-name {
    flex: 0 1 auto;
}

.pm-compact .pm-dishes > .pm-dish {
    padding: 14px 0 16px;
}
