/* Middagstid design system, ported from mockups/_shared/bm.css (which stays the
   designers' reference). Components use the --bm-* tokens only, so a theme is
   just a different set of values. */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Lora:wght@400;500;600;700&family=Noto+Color+Emoji&family=Nunito:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  /* Brand */
  --bm-primary: #E4572E;        /* tomato */
  --bm-primary-ink: #fff;
  --bm-primary-soft: #FDE8E1;
  --bm-primary-dark: #B83F1C;
  --bm-accent: #F2B33D;         /* saffron */
  --bm-accent-soft: #FDF1D8;
  --bm-green: #2E9E6A;          /* basil: open, success */
  --bm-green-soft: #DFF3E9;
  --bm-green-strong: #1F7A50;   /* green buttons with white text: --bm-green is too light for it */
  --bm-green-deep: #175C3C;     /* green text on --bm-green-soft */
  --bm-red: #D33A3A;            /* errors only, not brand */
  --bm-red-soft: #FBE3E3;
  /* Waiting for the restaurant's answer. Slate, fixed like green and red and never
     from the theme: "Venter på svar" must not look like approved, rejected or the brand. */
  --bm-vent: #52637A;
  --bm-vent-soft: #E6EBF2;
  --bm-vent-ink: #fff;          /* text on --bm-vent */
  --bm-blue: #2F6FDE;           /* info, links in backoffice */
  --bm-blue-soft: #E3ECFC;
  --bm-green-ink: #fff;         /* text on --bm-green */
  --bm-red-ink: #fff;           /* text on --bm-red */
  --bm-accent-ink: #8A5A00;     /* text on --bm-accent-soft */
  --bm-ink-strong: #000;        /* hover on dark buttons */

  /* Neutrals (warm) */
  --bm-bg: #FBF7F2;
  --bm-surface: #FFFFFF;
  --bm-surface-2: #F5EFE7;
  --bm-line: #EAE2D7;
  --bm-ink: #1F1A15;
  --bm-ink-2: #5B5248;
  --bm-ink-3: #8F857A;
  --bm-knob: #fff;              /* switch thumb */
  --bm-scrim: rgba(20, 17, 14, .45);
  --bm-scrim-strong: rgba(20, 17, 14, .5);
  --bm-map-bg: #E9EFE6;

  /* Illustrated food tiles (per dish, --bm-food-bg can be set inline) */
  --bm-food-bg: linear-gradient(135deg, #FFE1C7, #FBB98C);
  --bm-food-shine: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 55%), radial-gradient(circle at 80% 90%, rgba(0,0,0,.08), transparent 50%);
  --bm-food-drop: drop-shadow(0 10px 14px rgba(0,0,0,.18));
  /* Backgrounds a restaurant can pick for a dish illustration (BAGGRUNDE in src/shared/allergener.ts) */
  --bm-food-bg-pizza: linear-gradient(135deg, #FFE0C2, #F7A66B);
  --bm-food-bg-pasta: linear-gradient(135deg, #FFF1C9, #F4C55B);
  --bm-food-bg-salat: linear-gradient(135deg, #E3F5D8, #9AD38A);
  --bm-food-bg-starter: linear-gradient(135deg, #FCE3D9, #EE9C86);
  --bm-food-bg-dessert: linear-gradient(135deg, #F8E1F0, #E3A3CB);
  --bm-food-bg-drik: linear-gradient(135deg, #DDEFFB, #8EC3EC);
  --bm-food-bg-burger: linear-gradient(135deg, #FBE5C8, #E2A15E);
  --bm-food-bg-sushi: linear-gradient(135deg, #E5EEF7, #A9C2DE);
  --bm-frame: #1F1A15;          /* phone frame around previews */

  /* Shape and depth */
  --bm-r-sm: 8px;
  --bm-r-md: 12px;              /* inputs, small tiles */
  --bm-r: 14px;
  --bm-r-lg: 22px;
  --bm-r-pill: 999px;
  --bm-shadow-sm: 0 1px 2px rgba(31, 26, 21, .06), 0 1px 1px rgba(31, 26, 21, .04);
  --bm-shadow: 0 6px 20px rgba(31, 26, 21, .08), 0 2px 6px rgba(31, 26, 21, .05);
  --bm-shadow-lg: 0 24px 60px rgba(31, 26, 21, .16);

  /* Spacing scale: customer paddings and gaps are calc(<px> * --bm-luft), so a
     theme can make the ordering page compact or airy; 1 is today's spacing. */
  --bm-luft: 1;

  /* Surfaces a theme may turn into gradients (or flatten). Defaults are today's look. */
  --bm-hero-bg: linear-gradient(135deg, var(--bm-primary-soft) 0%, color-mix(in srgb, var(--bm-accent) 45%, var(--bm-primary-soft)) 60%, color-mix(in srgb, var(--bm-primary) 55%, var(--bm-primary-soft)) 100%);
  --bm-knap-bg: var(--bm-primary);
  --bm-banner-bg: linear-gradient(180deg, color-mix(in srgb, var(--bm-ink) 92%, var(--bm-primary)) 0%, color-mix(in srgb, var(--bm-ink) 70%, var(--bm-primary)) 100%);
  --bm-banner-ink: var(--bm-surface);

  --bm-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif, "Noto Color Emoji";
  --bm-gutter: 16px;
  --bm-max: 1180px;
  --bm-ease: cubic-bezier(.2, .8, .2, 1);
}

/* Dark theme: kitchen display and anything with body.bm-dark */
.bm-dark {
  --bm-bg: #14110E;
  --bm-surface: #211C17;
  --bm-surface-2: #2B251F;
  --bm-line: #3A322A;
  --bm-ink: #F6F0E8;
  --bm-ink-2: #C9BEB1;
  --bm-ink-3: #8F857A;
  --bm-primary-soft: #4A2418;
  --bm-green-soft: #163A2A;
  --bm-green-deep: #8FD9B3;
  --bm-accent-soft: #43341A;
  --bm-red-soft: #4A1D1D;
  --bm-blue-soft: #1B2A47;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--bm-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--bm-ink);
  background: var(--bm-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 1em; }
.bm-muted { color: var(--bm-ink-2); }
.bm-faint { color: var(--bm-ink-3); }
.bm-small { font-size: 14px; }
.bm-tiny { font-size: 12px; }
.bm-num { font-variant-numeric: tabular-nums; }
.bm-center { text-align: center; }
.bm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout ---------- */
.bm-container { width: 100%; max-width: var(--bm-max); margin: 0 auto; padding: 0 var(--bm-gutter); }
.bm-narrow { max-width: 640px; }
.bm-stack > * + * { margin-top: 12px; }
.bm-stack-lg > * + * { margin-top: 24px; }
.bm-row { display: flex; align-items: center; gap: 12px; }
.bm-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bm-wrap { flex-wrap: wrap; }
.bm-grow { flex: 1; min-width: 0; }
.bm-grid { display: grid; gap: 16px; }
.bm-grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bm-grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bm-grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .bm-grid-3, .bm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bm-grid-2, .bm-grid-3, .bm-grid-4 { grid-template-columns: 1fr; } }
.bm-section { padding: 56px 0; }
@media (max-width: 600px) { .bm-section { padding: 36px 0; } }

/* ---------- Buttons ---------- */
.bm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: calc(8px * var(--bm-luft));
  min-height: 48px; padding: 0 calc(20px * var(--bm-luft)); border-radius: var(--bm-r-pill);
  border: 1.5px solid transparent; background: var(--bm-surface-2); color: var(--bm-ink);
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--bm-ease), background .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.bm-btn:hover { background: var(--bm-line); }
.bm-btn:active { transform: scale(.97); }
.bm-btn:focus-visible, .bm-input:focus-visible, .bm-chip:focus-visible { outline: 3px solid color-mix(in srgb, var(--bm-primary) 40%, transparent); outline-offset: 2px; }
.bm-btn-primary { background: var(--bm-knap-bg); color: var(--bm-primary-ink); box-shadow: var(--bm-knap-glow, 0 6px 16px color-mix(in srgb, var(--bm-primary) 30%, transparent)); }
.bm-btn-primary:hover { background: var(--bm-primary-dark); }
.bm-btn-dark { background: var(--bm-ink); color: var(--bm-bg); }
.bm-btn-dark:hover { background: var(--bm-ink-strong); }
.bm-btn-green { background: var(--bm-green); color: var(--bm-green-ink); }
.bm-btn-ghost { background: transparent; border-color: var(--bm-line); }
.bm-btn-ghost:hover { background: var(--bm-surface-2); }
.bm-btn-danger { background: var(--bm-red-soft); color: var(--bm-red); }
.bm-btn-sm { min-height: 36px; padding: 0 calc(14px * var(--bm-luft)); font-size: 14px; }
.bm-btn-lg { min-height: 56px; padding: 0 calc(28px * var(--bm-luft)); font-size: 17px; }
.bm-btn-block { width: 100%; }
.bm-btn-icon { width: 44px; min-height: 44px; padding: 0; border-radius: var(--bm-r-pill); }
.bm-btn[disabled], .bm-btn.is-disabled { opacity: .45; pointer-events: none; }
.bm-btn-split { justify-content: space-between; }
.bm-link { color: var(--bm-primary); font-weight: 700; text-decoration: none; }
.bm-link:hover { text-decoration: underline; }

/* ---------- Cards and surfaces ---------- */
.bm-card { background: var(--bm-surface); border: 1px solid var(--bm-line); border-radius: var(--bm-r); padding: calc(20px * var(--bm-luft)); box-shadow: var(--bm-shadow-sm); }
.bm-card-flat { background: var(--bm-surface); border-radius: var(--bm-r); padding: calc(20px * var(--bm-luft)); }
.bm-card-hover { transition: transform .2s var(--bm-ease), box-shadow .2s; cursor: pointer; }
.bm-card-hover:hover { transform: translateY(-2px); box-shadow: var(--bm-shadow); }
.bm-divider { height: 1px; background: var(--bm-line); border: 0; margin: 16px 0; }
.bm-list { list-style: none; margin: 0; padding: 0; }
.bm-list > li { display: flex; align-items: center; gap: calc(12px * var(--bm-luft)); padding: calc(14px * var(--bm-luft)) 0; border-bottom: 1px solid var(--bm-line); }
.bm-list > li:last-child { border-bottom: 0; }
.bm-list-link { display: flex; align-items: center; gap: calc(12px * var(--bm-luft)); padding: calc(14px * var(--bm-luft)) calc(4px * var(--bm-luft)); border-bottom: 1px solid var(--bm-line); text-decoration: none; }
.bm-list-link::after { content: "›"; margin-left: auto; color: var(--bm-ink-3); font-size: 22px; line-height: 1; }

/* ---------- Badges, chips, tags ---------- */
.bm-badge { display: inline-flex; align-items: center; gap: calc(6px * var(--bm-luft)); padding: calc(3px * var(--bm-luft)) calc(10px * var(--bm-luft)); border-radius: var(--bm-r-pill); font-size: 12px; font-weight: 700; background: var(--bm-surface-2); color: var(--bm-ink-2); white-space: nowrap; }
.bm-badge-green { background: var(--bm-green-soft); color: var(--bm-green); }
.bm-badge-red { background: var(--bm-red-soft); color: var(--bm-red); }
.bm-badge-fyldt { background: var(--bm-primary-dark); color: var(--bm-primary-ink); }
.bm-badge-accent { background: var(--bm-accent-soft); color: var(--bm-accent-ink); }
.bm-badge-primary { background: var(--bm-primary-soft); color: var(--bm-primary-dark); }
.bm-badge-blue { background: var(--bm-blue-soft); color: var(--bm-blue); }
.bm-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.bm-dot-pulse { animation: bm-pulse 1.6s infinite; }
@keyframes bm-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.bm-chip { display: inline-flex; align-items: center; gap: calc(6px * var(--bm-luft)); min-height: 44px; padding: 0 calc(16px * var(--bm-luft)); border-radius: var(--bm-r-pill); border: 1.5px solid var(--bm-line); background: var(--bm-surface); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.bm-chip.is-active, .bm-chip[aria-pressed="true"] { background: var(--bm-ink); border-color: var(--bm-ink); color: var(--bm-bg); }
.bm-chips { display: flex; gap: calc(8px * var(--bm-luft)); overflow-x: auto; scrollbar-width: none; padding: calc(2px * var(--bm-luft)); }
.bm-chips::-webkit-scrollbar { display: none; }

/* ---------- Segmented control ---------- */
.bm-seg { display: inline-flex; background: var(--bm-surface-2); border-radius: var(--bm-r-pill); padding: calc(4px * var(--bm-luft)); gap: calc(2px * var(--bm-luft)); }
.bm-seg button, .bm-seg a { border: 0; background: transparent; padding: calc(8px * var(--bm-luft)) calc(18px * var(--bm-luft)); border-radius: var(--bm-r-pill); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; color: var(--bm-ink-2); }
.bm-seg .is-active { background: var(--bm-surface); color: var(--bm-ink); box-shadow: var(--bm-shadow-sm); }
.bm-seg-block { display: flex; }
.bm-seg-block > * { flex: 1; text-align: center; }

/* ---------- Forms ---------- */
.bm-field { display: block; }
.bm-field + .bm-field { margin-top: calc(14px * var(--bm-luft)); }
.bm-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: calc(6px * var(--bm-luft)); }
.bm-hint { font-size: 13px; color: var(--bm-ink-3); margin-top: calc(6px * var(--bm-luft)); }
.bm-input, .bm-select, .bm-textarea {
  width: 100%; min-height: 50px; padding: calc(12px * var(--bm-luft)) calc(14px * var(--bm-luft)); border-radius: var(--bm-r-md);
  border: 1.5px solid var(--bm-line); background: var(--bm-surface); color: var(--bm-ink);
  transition: border-color .15s, box-shadow .15s;
}
.bm-textarea { min-height: 96px; resize: vertical; }
.bm-input:focus, .bm-select:focus, .bm-textarea:focus { outline: 0; border-color: var(--bm-primary); box-shadow: 0 0 0 4px var(--bm-primary-soft); }
.bm-input.is-error { border-color: var(--bm-red); }
.bm-input-group { display: flex; align-items: center; gap: calc(8px * var(--bm-luft)); border: 1.5px solid var(--bm-line); border-radius: var(--bm-r-md); background: var(--bm-surface); padding: 0 calc(14px * var(--bm-luft)); min-height: 50px; }
.bm-input-group:focus-within { border-color: var(--bm-primary); box-shadow: 0 0 0 4px var(--bm-primary-soft); }
.bm-input-group.is-error { border-color: var(--bm-red); }
.bm-input-group input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; width: 100%; min-height: 46px; }
.bm-check { display: flex; align-items: center; gap: calc(12px * var(--bm-luft)); padding: calc(14px * var(--bm-luft)); border: 1.5px solid var(--bm-line); border-radius: var(--bm-r-md); background: var(--bm-surface); cursor: pointer; }
.bm-check + .bm-check { margin-top: calc(8px * var(--bm-luft)); }
.bm-check:has(input:checked) { border-color: var(--bm-ink); box-shadow: inset 0 0 0 1px var(--bm-ink); }
.bm-check input { width: 20px; height: 20px; accent-color: var(--bm-primary); margin: 0; flex: none; }
.bm-switch { position: relative; width: 48px; height: 28px; flex: none; }
.bm-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.bm-switch span { position: absolute; inset: 0; background: var(--bm-line); border-radius: var(--bm-r-pill); transition: background .2s; cursor: pointer; }
.bm-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--bm-knob); box-shadow: var(--bm-shadow-sm); transition: transform .2s var(--bm-ease); }
.bm-switch input:checked + span { background: var(--bm-green); }
.bm-switch input:checked + span::after { transform: translateX(20px); }

/* Quantity stepper */
.bm-qty { display: inline-flex; align-items: center; gap: calc(4px * var(--bm-luft)); background: var(--bm-surface-2); border-radius: var(--bm-r-pill); padding: calc(4px * var(--bm-luft)); }
.bm-qty button { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--bm-r-pill); border: 0; background: var(--bm-surface); font-size: 0; font-weight: 700; cursor: pointer; box-shadow: var(--bm-shadow-sm); line-height: 1; }
/* The − and + glyphs sit on the font's baseline and looked off-centre; draw them with bars instead (the aria-labels carry the meaning). */
.bm-qty button::before, .bm-qty button[data-plus]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.bm-qty button[data-plus]::after { transform: translate(-50%, -50%) rotate(90deg); }
.bm-qty button:has(svg)::before { content: none; }
.bm-qty output, .bm-qty span { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Stepper (multi-step flows) */
.bm-steps { display: flex; gap: calc(8px * var(--bm-luft)); list-style: none; padding: 0; margin: 0 0 24px; }
.bm-steps li { flex: 1; height: 6px; border-radius: 6px; background: var(--bm-line); }
.bm-steps li.is-done, .bm-steps li.is-active { background: var(--bm-primary); }
.bm-steps-label { font-size: 13px; font-weight: 700; color: var(--bm-ink-3); margin-bottom: calc(8px * var(--bm-luft)); }

/* ---------- Customer top bar ---------- */
.bm-topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bm-bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--bm-line); }
.bm-topbar-inner { display: flex; align-items: center; gap: calc(12px * var(--bm-luft)); height: 64px; }
.bm-brand { display: inline-flex; align-items: center; gap: calc(10px * var(--bm-luft)); font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.02em; }
.bm-brand-mark { width: 36px; height: 36px; border-radius: var(--bm-r-md); display: grid; place-items: center; background: var(--bm-primary); color: var(--bm-primary-ink); font-size: 19px; box-shadow: var(--bm-shadow-sm); }
.bm-topbar-title { font-weight: 800; font-size: 17px; flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Centred title next to a back button (kundeTop): centred on the bar itself. */
.bm-topbar-inner.has-center-title { position: relative; }
.bm-topbar-title-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); flex: none; max-width: calc(100% - 2 * 64px); pointer-events: none; }
@media (min-width: 761px) { .bm-topbar-title-center { max-width: 34%; } }
.bm-back { width: 44px; height: 44px; border-radius: var(--bm-r-pill); display: grid; place-items: center; text-decoration: none; background: var(--bm-surface); border: 1px solid var(--bm-line); color: var(--bm-ink); box-shadow: var(--bm-shadow-sm); flex: none; transition: transform .15s var(--bm-ease); }
.bm-back:active { transform: scale(.94); }
.bm-nav-links { display: flex; gap: calc(4px * var(--bm-luft)); margin-left: auto; align-items: center; }
.bm-nav-links a { padding: calc(8px * var(--bm-luft)) calc(14px * var(--bm-luft)); border-radius: var(--bm-r-pill); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--bm-ink-2); }
.bm-nav-links a:hover, .bm-nav-links a.is-active { background: var(--bm-surface-2); color: var(--bm-ink); }
@media (max-width: 760px) { .bm-nav-links .bm-hide-mobile { display: none; } }

/* Cart pill in top bar */
.bm-cart-pill { position: relative; display: inline-flex; align-items: center; gap: calc(8px * var(--bm-luft)); height: 44px; padding: 0 calc(16px * var(--bm-luft)); border-radius: var(--bm-r-pill); background: var(--bm-ink); color: var(--bm-bg); text-decoration: none; font-weight: 700; font-size: 14px; }
.bm-nav-links a.bm-cart-pill, .bm-nav-links a.bm-cart-pill:hover { background: var(--bm-ink); color: var(--bm-bg); }
.bm-cart-count { min-width: 22px; height: 22px; border-radius: var(--bm-r-pill); background: var(--bm-primary); color: var(--bm-primary-ink); font-size: 12px; display: grid; place-items: center; padding: 0 calc(6px * var(--bm-luft)); }

/* Customer bottom tab bar (mobile account area) */
.bm-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; background: var(--bm-surface); border-top: 1px solid var(--bm-line); padding: calc(6px * var(--bm-luft)) calc(8px * var(--bm-luft)) calc(6px * var(--bm-luft) + env(safe-area-inset-bottom)); }
.bm-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: calc(2px * var(--bm-luft)); text-decoration: none; font-size: 11px; font-weight: 700; color: var(--bm-ink-3); padding: calc(6px * var(--bm-luft)) 0; }
.bm-tabbar a .bm-ico { font-size: 22px; line-height: 1; }
.bm-tabbar a.is-active { color: var(--bm-primary); }
@media (max-width: 760px) { .bm-tabbar { display: flex; } body.has-tabbar { padding-bottom: calc(76px * var(--bm-luft)); } }

/* Sticky bottom action bar (cart, checkout CTA) */
.bm-actionbar { position: sticky; bottom: 0; z-index: 30; padding: calc(12px * var(--bm-luft)) 0 calc(12px * var(--bm-luft) + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bm-bg) 70%, transparent); }
.bm-actionbar-fixed { position: fixed; left: 0; right: 0; bottom: 0; padding: calc(12px * var(--bm-luft)) var(--bm-gutter) calc(12px * var(--bm-luft) + env(safe-area-inset-bottom)); }

/* ---------- Food visuals (no photos: illustrated tiles) ---------- */
.bm-food { text-decoration: none; position: relative; aspect-ratio: 4 / 3; border-radius: var(--bm-r); overflow: hidden; display: grid; place-items: center; background: var(--bm-food-bg); }
.bm-food::before { content: ""; position: absolute; inset: 0; background: var(--bm-food-shine); }
.bm-food > .bm-food-emoji { position: relative; font-size: clamp(44px, 9vw, 72px); filter: var(--bm-food-drop); transform: rotate(-6deg); }
.bm-food-sq { aspect-ratio: 1; }
.bm-food-sm { width: 88px; flex: none; aspect-ratio: 1; border-radius: var(--bm-r-md); }
.bm-food-sm > .bm-food-emoji { font-size: 40px; }
.bm-food-xs { width: 52px; flex: none; aspect-ratio: 1; border-radius: var(--bm-r-sm); }
.bm-food-xs > .bm-food-emoji { font-size: 26px; }
.bm-food-hero { aspect-ratio: auto; min-height: 260px; border-radius: var(--bm-r-lg); }
.bm-food-hero > .bm-food-emoji { font-size: 120px; }
.bm-food-bg-pizza { --bm-food-bg: var(--bm-food-bg-pizza); }
.bm-food-bg-pasta { --bm-food-bg: var(--bm-food-bg-pasta); }
.bm-food-bg-salat { --bm-food-bg: var(--bm-food-bg-salat); }
.bm-food-bg-starter { --bm-food-bg: var(--bm-food-bg-starter); }
.bm-food-bg-dessert { --bm-food-bg: var(--bm-food-bg-dessert); }
.bm-food-bg-drik { --bm-food-bg: var(--bm-food-bg-drik); }
.bm-food-bg-burger { --bm-food-bg: var(--bm-food-bg-burger); }
.bm-food-bg-sushi { --bm-food-bg: var(--bm-food-bg-sushi); }
/* A photo replaces the illustration; v1 does not resize uploads, the tile crops them. */
.bm-food > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bm-food.has-photo::before { display: none; }

/* Menu item card */
.bm-item { display: flex; gap: calc(14px * var(--bm-luft)); padding: calc(14px * var(--bm-luft)); background: var(--bm-surface); border: 1px solid var(--bm-line); border-radius: var(--bm-r); text-decoration: none; transition: box-shadow .2s, transform .2s var(--bm-ease); }
.bm-item:hover { box-shadow: var(--bm-shadow); transform: translateY(-1px); }
.bm-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bm-item-name { font-weight: 700; font-size: 16px; }
.bm-item-desc { font-size: 14px; color: var(--bm-ink-2); margin: 2px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bm-item-price { font-weight: 800; margin-top: auto; font-variant-numeric: tabular-nums; }
.bm-item-add { width: 36px; height: 36px; border-radius: var(--bm-r-pill); background: var(--bm-primary); color: var(--bm-primary-ink); display: grid; place-items: center; font-size: 22px; font-weight: 700; margin-top: auto; border: 0; cursor: pointer; flex: none; align-self: flex-end; }
.bm-item.is-soldout { opacity: .55; }

/* ---------- Customer ordering page (/r/:slug) ----------
   Stable class names a restaurant's own CSS may target; see docs/TEMA.md. */
.bm-logo { width: 36px; height: 36px; border-radius: var(--bm-r-md); object-fit: cover; }
.bm-menu { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: calc(28px * var(--bm-luft)); align-items: start; padding-bottom: calc(56px * var(--bm-luft)); }
.bm-menu-head { padding: calc(20px * var(--bm-luft)) 0 calc(8px * var(--bm-luft)); }
.bm-menu-head h1 { margin-top: calc(4px * var(--bm-luft)); }
.bm-kategori-nav { position: sticky; top: 64px; z-index: 20; background: var(--bm-bg); margin: 0 calc(-1 * var(--bm-gutter)); padding: calc(10px * var(--bm-luft)) var(--bm-gutter); border-bottom: 1px solid var(--bm-line); }
.bm-kategori { scroll-margin-top: 140px; padding-top: calc(24px * var(--bm-luft)); }
.bm-retter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(12px * var(--bm-luft)); }
.bm-ret { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; column-gap: calc(12px * var(--bm-luft)); row-gap: calc(8px * var(--bm-luft)); padding: calc(14px * var(--bm-luft)); background: var(--bm-surface); border: 1px solid var(--bm-line); border-radius: var(--bm-r); }
.bm-ret-tekst { min-width: 0; display: flex; flex-direction: column; gap: calc(2px * var(--bm-luft)); }
.bm-ret-maerker { display: flex; flex-wrap: wrap; gap: calc(6px * var(--bm-luft)); margin-bottom: calc(6px * var(--bm-luft)); }
.bm-ret-allergener { font-size: 12.5px; color: var(--bm-ink-3); margin: 0 0 8px; }
.bm-ret-navn { font-weight: 700; font-size: 16px; }
.bm-ret-beskrivelse { font-size: 14px; color: var(--bm-ink-2); margin: 0 0 8px; }
.bm-ret-pris { font-weight: 800; font-variant-numeric: tabular-nums; }
.bm-ret.is-udsolgt .bm-ret-billede { opacity: .5; }
.bm-ret-udsolgt { font-weight: 700; font-size: 14px; color: var(--bm-red); }
/* The price row is always the card's last row, so prices line up across a row of equal-height cards. */
.bm-ret-fod { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: calc(6px * var(--bm-luft)) calc(8px * var(--bm-luft)); }
/* Without an image the text takes the whole first row. Price and add button always share the last row (a sold-out dish has no button). */
.bm-ret.uden-billede .bm-ret-tekst { grid-column: 1 / -1; }
.bm-ret:not(.is-udsolgt) .bm-ret-fod { grid-column: 1; }
.bm-ret > .bm-ret-tilfoej { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; }
/* The order panel lifts off the page by its shadow alone; it starts level with the name. */
.bm-bestilling { position: sticky; top: 84px; margin-top: calc(16px * var(--bm-luft)); display: flex; flex-direction: column; max-height: calc(100vh - 104px); padding: calc(20px * var(--bm-luft)); background: var(--bm-surface); border: 0; border-radius: var(--bm-r); box-shadow: var(--bm-shadow); }
.bm-bestilling h3 { margin: 0 0 calc(12px * var(--bm-luft)); }
.bm-bestilling-tid { margin-bottom: calc(8px * var(--bm-luft)); }
.bm-bestilling-linjer { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.bm-bestilling-tom { margin: calc(12px * var(--bm-luft)) 0; font-size: 14px; color: var(--bm-ink-2); }
.bm-bestilling .bm-btn { margin-top: calc(14px * var(--bm-luft)); }
.bm-aabning { display: flex; flex-wrap: wrap; align-items: center; gap: calc(4px * var(--bm-luft)) calc(12px * var(--bm-luft)); margin-top: calc(8px * var(--bm-luft)); font-size: 14px; color: var(--bm-ink-2); }
.bm-aabning-status { display: inline-flex; align-items: center; gap: calc(8px * var(--bm-luft)); color: var(--bm-ink); }
.bm-aabning-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bm-green); }
.bm-aabning.is-lukket .bm-aabning-status::before { background: var(--bm-red); }
.bm-aabningstider { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.bm-aabningstider td { padding: calc(4px * var(--bm-luft)) 0; }
.bm-aabningstider td:last-child { text-align: right; }
/* Footer on every customer page: hours, contact, the restaurant's links. */
.bm-kunde-fod { margin-top: calc(48px * var(--bm-luft)); padding: calc(32px * var(--bm-luft)) 0 calc(40px * var(--bm-luft)); background: var(--bm-surface); border-top: 1px solid var(--bm-line); color: var(--bm-ink-2); font-size: 14px; }
.bm-kunde-fod-indre { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: calc(28px * var(--bm-luft)) calc(40px * var(--bm-luft)); }
.bm-kunde-fod-kol h4 { margin: 0 0 10px; color: var(--bm-ink); }
.bm-kunde-fod-kol p { margin: 0 0 8px; }
.bm-kunde-fod-kol strong { color: var(--bm-ink); }
.bm-kunde-fod .bm-aabningstider { max-width: 320px; }
.bm-kunde-fod-links { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(8px * var(--bm-luft)); }
.bm-kunde-fod-ikonlink, .bm-smiley { display: inline-flex; align-items: center; gap: calc(8px * var(--bm-luft)); }
.bm-ikon { flex: none; width: 18px; height: 18px; pointer-events: none; }
.bm-btn-sm .bm-ikon { width: 16px; height: 16px; }
.bm-input-group > .bm-ikon { color: var(--bm-ink-3); }
.bm-smiley { margin-top: calc(4px * var(--bm-luft)); padding: calc(8px * var(--bm-luft)) calc(12px * var(--bm-luft)); border: 1px solid var(--bm-line); border-radius: var(--bm-r-pill); background: var(--bm-surface-2); color: var(--bm-ink); font-weight: 600; text-decoration: none; }
.bm-smiley:hover { border-color: var(--bm-ink-3); }
@media (max-width: 640px) { .bm-kunde-fod { margin-top: calc(32px * var(--bm-luft)); padding: calc(24px * var(--bm-luft)) 0 calc(28px * var(--bm-luft)); } .bm-kunde-fod-indre { grid-template-columns: 1fr; gap: calc(24px * var(--bm-luft)); } }
@media (max-width: 1023px) { .bm-menu { grid-template-columns: minmax(0, 1fr); } .bm-bestilling { display: none; } }
@media (max-width: 640px) { .bm-retter { grid-template-columns: 1fr; } }

/* ---------- Ordering (customer) ---------- */
.bm-kurv-bar-antal { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; margin-right: calc(10px * var(--bm-luft)); padding: 0 6px; border-radius: var(--bm-r-pill); background: var(--bm-bg); color: var(--bm-ink); font-size: 13px; }
.bm-hero { margin-top: calc(20px * var(--bm-luft)); padding: calc(32px * var(--bm-luft)); border-radius: var(--bm-r-lg); background: var(--bm-hero-bg); }
.bm-hero h1 { margin: 10px 0 4px; }
.bm-hero-adresse { margin: 0; color: var(--bm-ink-2); }
.bm-hero-maerker { display: flex; flex-wrap: wrap; gap: calc(8px * var(--bm-luft)); }
.bm-hero-maerker .bm-badge { background: color-mix(in srgb, var(--bm-surface) 85%, transparent); color: var(--bm-ink); font-size: 13px; padding: calc(5px * var(--bm-luft)) calc(12px * var(--bm-luft)); }
@media (max-width: 640px) { .bm-hero { padding: calc(22px * var(--bm-luft)) calc(18px * var(--bm-luft)); } }
/* Compact menu header: status line, address, and the one pickup-time row (#1732). */
.bm-menu-top { padding-top: calc(16px * var(--bm-luft)); }
.bm-menu-top-navn { margin: 0 0 4px; }
.bm-menu-status { display: flex; flex-wrap: wrap; align-items: center; margin: 0; font-size: 14px; color: var(--bm-ink-2); }
.bm-menu-status strong { display: inline-flex; align-items: center; gap: calc(8px * var(--bm-luft)); color: var(--bm-ink); }
.bm-menu-status strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bm-green); }
.bm-menu-status.is-lukket strong::before { background: var(--bm-ink-3); }
.bm-menu-status > span { white-space: pre; }
.bm-menu-adresse { display: none; margin: 2px 0 0; font-size: 14px; color: var(--bm-ink-2); }
.bm-tid-raekke { display: none; align-items: center; gap: calc(12px * var(--bm-luft)); width: 100%; min-height: 56px; margin-top: calc(12px * var(--bm-luft)); padding: calc(8px * var(--bm-luft)) calc(14px * var(--bm-luft)); border: 1.5px solid var(--bm-ink); border-radius: var(--bm-r); background: var(--bm-surface); color: var(--bm-ink); font: inherit; text-align: left; cursor: pointer; }
.bm-tid-raekke .bm-grow { display: flex; flex-direction: column; min-width: 0; }
.bm-tid-raekke small { color: var(--bm-ink-2); font-size: 13px; }
.bm-tid-raekke-skift { font-weight: 700; text-decoration: underline; }
.bm-tid-ark-valg { margin: calc(12px * var(--bm-luft)) 0 0; padding: 0; border: 0; min-width: 0; max-height: 50vh; overflow-y: auto; }
.bm-tid-ark-valg .bm-check { min-height: 52px; }
@media (max-width: 1023px) { .bm-tid-raekke { display: flex; } }
@media (max-width: 767px) {
  .bm-menu-top-navn, .bm-menu-status-adresse { display: none; }
  .bm-menu-adresse { display: block; }
}

/* Pickup time page: "Hurtigst muligt" card and today's slot grid. */
.bm-tidsrum { max-width: 760px; margin: 0 auto; padding: calc(24px * var(--bm-luft)) 0 0; }
.bm-tidsrum h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 6px; }
.bm-tidsrum-hurtigst { display: flex; align-items: center; gap: calc(14px * var(--bm-luft)); width: 100%; margin-top: calc(20px * var(--bm-luft)); padding: calc(18px * var(--bm-luft)) calc(20px * var(--bm-luft)); border-radius: var(--bm-r); border: 1.5px solid var(--bm-line); background: var(--bm-surface); color: var(--bm-ink); font: inherit; text-align: left; cursor: pointer; }
.bm-tidsrum-hurtigst strong { display: block; font-size: 17px; }
.bm-tidsrum-hurtigst small { font-size: 13px; color: var(--bm-ink-3); font-weight: 600; }
.bm-tidsrum-ikon { font-size: 26px; }
.bm-tidsrum-titel { margin: 28px 0 0; }
.bm-tidsrum-del { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bm-ink-3); margin: 18px 0 8px; }
.bm-tidsrum-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: calc(8px * var(--bm-luft)); }
.bm-tidsrum-slot { min-height: 52px; border-radius: var(--bm-r-md); border: 1.5px solid var(--bm-line); background: var(--bm-surface); color: var(--bm-ink); font: inherit; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; transition: transform .12s var(--bm-ease); }
.bm-tidsrum-slot:hover, .bm-tidsrum-hurtigst:hover { border-color: var(--bm-ink-2); }
.bm-tidsrum-slot:active { transform: scale(.96); }
.bm-tidsrum-slot:disabled { background: var(--bm-surface-2); color: var(--bm-ink-3); border-style: dashed; text-decoration: line-through; cursor: not-allowed; }
.bm-tidsrum-slot.is-active, .bm-tidsrum-hurtigst.is-active { background: var(--bm-primary); border-color: var(--bm-primary); color: var(--bm-primary-ink); box-shadow: var(--bm-knap-glow, 0 6px 16px color-mix(in srgb, var(--bm-primary) 30%, transparent)); }
.bm-tidsrum-hurtigst.is-active small { color: var(--bm-primary-ink); }
.bm-tidsrum-bar { position: sticky; bottom: 0; padding: calc(14px * var(--bm-luft)) 0 calc(14px * var(--bm-luft) + env(safe-area-inset-bottom)); margin-top: calc(24px * var(--bm-luft)); background: linear-gradient(to top, var(--bm-bg) 75%, transparent); }

/* Closed-now page: when it opens again, pre-order or browse, the week's hours. */
.bm-lukket-side { max-width: 980px; padding-bottom: calc(40px * var(--bm-luft)); }
.bm-lukket { margin-top: calc(20px * var(--bm-luft)); padding: calc(48px * var(--bm-luft)) calc(32px * var(--bm-luft)) calc(40px * var(--bm-luft)); border-radius: var(--bm-r-lg); text-align: center; color: var(--bm-banner-ink); background: var(--bm-banner-bg); }
.bm-lukket h1 { color: inherit; margin: 0 0 6px; }
.bm-lukket p { margin: 0; font-size: 17px; color: color-mix(in srgb, var(--bm-banner-ink) 85%, transparent); }
.bm-lukket strong { color: var(--bm-banner-ink); }
.bm-lukket-maane { font-size: 72px; line-height: 1; margin-bottom: calc(16px * var(--bm-luft)); }
.bm-lukket-veje { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: calc(14px * var(--bm-luft)); margin-top: calc(18px * var(--bm-luft)); }
.bm-lukket-vej { display: flex; align-items: center; gap: calc(14px * var(--bm-luft)); padding: calc(18px * var(--bm-luft)) calc(20px * var(--bm-luft)); border-radius: var(--bm-r); background: var(--bm-surface); border: 1px solid var(--bm-line); color: var(--bm-ink); text-decoration: none; }
.bm-lukket-vej:hover { box-shadow: var(--bm-shadow); }
.bm-lukket-vej strong { display: block; }
.bm-lukket-vej small { font-size: 13px; color: var(--bm-ink-3); }
.bm-lukket-vej.is-primaer { background: var(--bm-primary); border-color: var(--bm-primary); color: var(--bm-primary-ink); }
.bm-lukket-vej.is-primaer small { color: color-mix(in srgb, var(--bm-primary-ink) 80%, transparent); }
.bm-lukket-ikon { font-size: 28px; }
.bm-lukket-uge { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: calc(6px * var(--bm-luft)); margin-top: calc(12px * var(--bm-luft)); }
.bm-lukket-uge div { text-align: center; padding: calc(10px * var(--bm-luft)) calc(2px * var(--bm-luft)); border-radius: var(--bm-r-md); background: var(--bm-surface-2); font-size: 12px; font-weight: 700; color: var(--bm-ink-2); font-variant-numeric: tabular-nums; }
.bm-lukket-uge b { display: block; font-size: 14px; color: var(--bm-ink); }
.bm-lukket-uge small { display: block; font-weight: 600; color: var(--bm-ink-3); }
.bm-lukket-uge div.is-naeste { background: var(--bm-primary-soft); color: var(--bm-primary-dark); box-shadow: inset 0 0 0 2px var(--bm-primary); }
@media (max-width: 760px) {
  .bm-lukket { padding: calc(32px * var(--bm-luft)) calc(20px * var(--bm-luft)) calc(28px * var(--bm-luft)); margin-top: calc(14px * var(--bm-luft)); }
  .bm-lukket-veje { grid-auto-flow: row; }
  .bm-lukket-uge { gap: calc(4px * var(--bm-luft)); }
  .bm-lukket-uge div { padding: calc(8px * var(--bm-luft)) 0; font-size: 10px; }
  .bm-lukket-uge b { font-size: 11px; }
}

/* The dish name's link covers the card; the add button sits above it. */
.bm-ret { position: relative; }
a.bm-ret-navn { text-decoration: none; }
a.bm-ret-navn::after { content: ""; position: absolute; inset: 0; border-radius: var(--bm-r); }
.bm-ret-billede { position: relative; align-self: start; }
.bm-ret-tilfoej { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; border: 0; border-radius: var(--bm-r-pill); background: var(--bm-primary); color: var(--bm-primary-ink); font-size: 22px; font-weight: 800; line-height: 1; text-decoration: none; cursor: pointer; box-shadow: var(--bm-shadow-sm); transition: transform .2s var(--bm-ease); }
/* The "+" glyph sits on the font's baseline, so it rendered below centre; draw it with two bars instead (the aria-label carries the meaning). */
.bm-ret-tilfoej { font-size: 0; }
.bm-ret-tilfoej::before, .bm-ret-tilfoej::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.bm-ret-tilfoej::after { transform: translate(-50%, -50%) rotate(90deg); }
.bm-ret-tilfoej:hover { background: var(--bm-primary-dark); }
.bm-ret-tilfoej.is-tilfoejet { transform: scale(1.2); background: var(--bm-green); color: var(--bm-green-ink); }
.bm-menu-fod { margin-top: calc(28px * var(--bm-luft)); }

.bm-kurv-linje { display: flex; gap: calc(12px * var(--bm-luft)); align-items: flex-start; padding: calc(12px * var(--bm-luft)) 0; border-bottom: 1px solid var(--bm-line); font-size: 14px; }
.bm-kurv-linje:last-child { border-bottom: 0; }
.bm-kurv-linje-navn { font-weight: 700; text-decoration: none; }
.bm-kurv-linje-valg { font-size: 13px; color: var(--bm-ink-2); }
.bm-kurv-linje-note { font-size: 13px; color: var(--bm-ink-3); font-style: italic; }
.bm-kurv-linje-fejl { font-size: 13px; font-weight: 700; color: var(--bm-red); margin-top: calc(4px * var(--bm-luft)); }
.bm-kurv-linje.is-fejl .bm-kurv-linje-beloeb, .bm-kurv-linje.is-fejl .bm-kurv-linje-valg { text-decoration: line-through; color: var(--bm-ink-3); }
.bm-kurv-linje-beloeb { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bm-kurv-linje-styr { display: flex; align-items: center; gap: calc(10px * var(--bm-luft)); margin-top: calc(10px * var(--bm-luft)); flex-wrap: wrap; }
.bm-kurv-linje-styr .bm-qty button { width: 32px; height: 32px; }
.bm-kurv-linje-styr .bm-qty button[disabled] { opacity: .4; cursor: default; }
.bm-kurv-fjern { border: 0; background: transparent; color: var(--bm-ink-3); font-weight: 700; font-size: 13px; cursor: pointer; padding: calc(6px * var(--bm-luft)); border-radius: var(--bm-r-sm); }
.bm-kurv-fjern:hover { color: var(--bm-red); background: var(--bm-red-soft); }
.bm-kurv-rediger { color: var(--bm-ink-2); font-weight: 700; font-size: 13px; text-decoration: none; padding: calc(6px * var(--bm-luft)); border-radius: var(--bm-r-sm); }
.bm-kurv-rediger:hover { color: var(--bm-primary); background: var(--bm-surface-2); }
.bm-kurv-total { margin-top: calc(12px * var(--bm-luft)); }
.bm-kurv-total tr.bm-kurv-moms td { font-size: 13px; color: var(--bm-ink-3); padding-top: 0; }
.bm-kurv-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: calc(12px * var(--bm-luft)) var(--bm-gutter) calc(12px * var(--bm-luft) + env(safe-area-inset-bottom)); background: var(--bm-surface); border-top: 1px solid var(--bm-line); box-shadow: var(--bm-shadow); }
@media (max-width: 1023px) {
  .bm-kurv-bar:not([hidden]) { display: block; }
  .bm-side:has(.bm-kurv-bar:not([hidden])) { padding-bottom: calc(92px * var(--bm-luft)); }
}

.bm-trin { display: flex; gap: calc(6px * var(--bm-luft)); list-style: none; padding: 0; margin: 0 0 18px; }
.bm-trin li { flex: 1; font-size: 12px; font-weight: 700; color: var(--bm-ink-3); }
.bm-trin li::before { content: ""; display: block; height: 6px; border-radius: var(--bm-r-sm); background: var(--bm-line); margin-bottom: calc(6px * var(--bm-luft)); }
.bm-trin li.is-done::before, .bm-trin li.is-active::before { background: var(--bm-primary); }
.bm-trin li.is-active { color: var(--bm-ink); }

.bm-kurv-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: calc(28px * var(--bm-luft)); align-items: start; padding: calc(24px * var(--bm-luft)) 0 calc(40px * var(--bm-luft)); max-width: 1080px; margin: 0 auto; }
.bm-kurv-side h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; }
.bm-kurv-linjer { padding: calc(4px * var(--bm-luft)) calc(20px * var(--bm-luft)); }
.bm-kurv-opsummering { position: sticky; top: 88px; }
@media (max-width: 960px) { .bm-kurv-side { grid-template-columns: minmax(0, 1fr); gap: calc(16px * var(--bm-luft)); padding-top: calc(16px * var(--bm-luft)); } .bm-kurv-opsummering { position: static; } }
@media (max-width: 760px) { .bm-side:has(.bm-kurv-bar.bm-only-mobile) { padding-bottom: calc(92px * var(--bm-luft)); } }

/* Order page (step 1 of 2): items, pickup time and contact on one page. Phone: one column
   with a fixed button bar; 1024px and wider: time and contact left, a sticky summary right. */
.bm-trin-hoved { display: flex; align-items: flex-end; gap: calc(12px * var(--bm-luft)); }
.bm-trin-hoved .bm-trin { flex: 1; margin: 0; }
.bm-trin-nr { font-size: 12px; font-weight: 700; color: var(--bm-ink-2); white-space: nowrap; padding-bottom: 1px; }
.bm-checkout { max-width: 1080px; margin: 0 auto; padding: calc(16px * var(--bm-luft)) 0 calc(40px * var(--bm-luft)); }
.bm-checkout-hoved { display: grid; gap: calc(12px * var(--bm-luft)); }
.bm-checkout-hoved h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 0; }
.bm-checkout-gitter { display: flex; flex-direction: column; gap: calc(20px * var(--bm-luft)); margin-top: calc(16px * var(--bm-luft)); }
.bm-checkout-gitter[hidden] { display: none; }
.bm-checkout-venstre, .bm-checkout-hoejre { display: contents; }
.bm-checkout-linjer { order: 1; padding: calc(4px * var(--bm-luft)) calc(16px * var(--bm-luft)) calc(14px * var(--bm-luft)); }
.bm-checkout-tid { order: 2; }
.bm-checkout-kontakt { order: 3; }
.bm-checkout-total { order: 4; margin-top: 0; }
.bm-checkout-bar { order: 5; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: calc(12px * var(--bm-luft)) var(--bm-gutter) calc(10px * var(--bm-luft) + env(safe-area-inset-bottom)); background: var(--bm-surface); border-top: 1px solid var(--bm-line); box-shadow: var(--bm-shadow); text-align: center; }
.bm-checkout-bar p { margin: calc(6px * var(--bm-luft)) 0 0; }
.bm-side:has(.bm-checkout-gitter:not([hidden])) { padding-bottom: calc(120px * var(--bm-luft)); }
.bm-checkout h2 { font-size: 19px; margin: 0 0 calc(12px * var(--bm-luft)); }
.bm-checkout-tidvalg { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: calc(10px * var(--bm-luft)); }
.bm-checkout-valg { min-height: 64px; padding: calc(12px * var(--bm-luft)) calc(14px * var(--bm-luft)); border-radius: var(--bm-r); border: 1.5px solid var(--bm-line); background: var(--bm-surface); color: var(--bm-ink); font: inherit; text-align: left; cursor: pointer; }
.bm-checkout-valg strong { display: block; font-size: 15px; }
.bm-checkout-valg small { font-size: 13px; color: var(--bm-ink-3); font-weight: 600; }
.bm-checkout-valg.is-active { border: 2px solid var(--bm-ink); }
.bm-checkout-tid .bm-notice { margin: 0 0 calc(10px * var(--bm-luft)); }
.bm-checkout-tid .bm-field { margin-top: calc(12px * var(--bm-luft)); }
.bm-checkout-sted { display: flex; align-items: center; gap: calc(8px * var(--bm-luft)); margin: calc(12px * var(--bm-luft)) 0 0; font-size: 14px; color: var(--bm-ink-2); }
.bm-checkout-sted svg { width: 18px; height: 18px; flex: none; }
.bm-checkout .bm-input, .bm-checkout .bm-input-group, .bm-checkout .bm-select { min-height: 52px; }
.bm-tekstlink { display: inline-flex; align-items: center; min-height: 44px; margin-top: calc(8px * var(--bm-luft)); padding: 0; border: 0; background: transparent; color: var(--bm-primary); font: inherit; font-weight: 700; cursor: pointer; }
.bm-tekstlink[hidden] { display: none; }
.bm-checkout-flere { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: calc(12px * var(--bm-luft)); border: 1.5px dashed var(--bm-line); border-radius: var(--bm-r); color: var(--bm-ink-2); font-weight: 700; text-decoration: none; }
.bm-checkout-flere:hover { border-color: var(--bm-ink-3); color: var(--bm-ink); }
.bm-checkout .bm-kurv-linje-styr .bm-qty button { width: 44px; height: 44px; }
.bm-checkout .bm-kurv-rediger { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1024px) {
  .bm-checkout-gitter { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: calc(28px * var(--bm-luft)); align-items: start; }
  .bm-checkout-venstre { display: grid; gap: calc(28px * var(--bm-luft)); }
  .bm-checkout-hoejre { display: grid; gap: calc(12px * var(--bm-luft)); position: sticky; top: 88px; }
  .bm-checkout-bar { position: static; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .bm-side:has(.bm-checkout-gitter:not([hidden])) { padding-bottom: 0; }
}

/* Checkout payment, the summary beside them. */
.bm-kurv-side form h2 { font-size: 19px; margin: 28px 0 12px; }
.bm-kontakt-to { display: grid; grid-template-columns: 1fr 1fr; gap: calc(14px * var(--bm-luft)); margin-top: calc(14px * var(--bm-luft)); }
.bm-kontakt-to .bm-field + .bm-field { margin-top: 0; }
.bm-kontakt-fejl { color: var(--bm-red); font-size: 13px; font-weight: 600; margin-top: calc(6px * var(--bm-luft)); }
.bm-input.is-error { border-color: var(--bm-red); }
@media (max-width: 760px) { .bm-kontakt-to { grid-template-columns: 1fr; gap: calc(14px * var(--bm-luft)); } }
.bm-opsummering-linje { display: flex; gap: calc(10px * var(--bm-luft)); padding: calc(8px * var(--bm-luft)) 0; border-bottom: 1px solid var(--bm-line); font-size: 14px; }
.bm-opsummering-antal { font-weight: 800; color: var(--bm-primary); min-width: 24px; }
.bm-opsummering-valg { font-size: 14px; margin-top: calc(4px * var(--bm-luft)); }
.bm-opsummering-valg > div { display: flex; gap: calc(10px * var(--bm-luft)); padding: calc(8px * var(--bm-luft)) 0; border-bottom: 1px solid var(--bm-line); }
.bm-opsummering-valg > div[hidden] { display: none; }
.bm-opsummering-valg a { margin-left: auto; font-size: 13px; }
.bm-betaling-peek { padding: calc(12px * var(--bm-luft)) calc(16px * var(--bm-luft)); }
.bm-betalingsmetode { padding: calc(16px * var(--bm-luft)); }
.bm-betalingsmetode-ikon { width: 48px; height: 34px; border-radius: var(--bm-r-sm); display: grid; place-items: center; flex: none; font-size: 20px; background: var(--bm-surface-2); }
.bm-betalingsmetode:has(input:checked) { border-color: var(--bm-ink); box-shadow: inset 0 0 0 1px var(--bm-ink); }
.bm-vilkaar { display: flex; gap: calc(12px * var(--bm-luft)); align-items: flex-start; margin-top: calc(24px * var(--bm-luft)); font-size: 14px; cursor: pointer; }
.bm-vilkaar input { width: 20px; height: 20px; accent-color: var(--bm-primary); margin: 1px 0 0; flex: none; }
.bm-vilkaar.is-fejl { color: var(--bm-red); }
.bm-betaling-reserveres { text-align: center; margin: 10px 0 0; }
.bm-kurv-bar .bm-betaling-reserveres { margin-top: calc(6px * var(--bm-luft)); }
@media (max-width: 760px) { .bm-side:has(.bm-kurv-bar .bm-betaling-reserveres) { padding-bottom: calc(140px * var(--bm-luft)); } }

/* The fake provider's payment screens (no key yet): a card window and a wallet "phone". */
.bm-fake-betal { max-width: 460px; margin: 28px auto 48px; }
.bm-fake-betal-vindue { background: var(--bm-surface); border-radius: var(--bm-r-lg); border: 1px solid var(--bm-line); box-shadow: var(--bm-shadow); overflow: hidden; }
.bm-fake-betal-hoved { display: flex; align-items: center; gap: calc(12px * var(--bm-luft)); padding: calc(18px * var(--bm-luft)) calc(22px * var(--bm-luft)); border-bottom: 1px solid var(--bm-line); }
.bm-fake-betal-beloeb { margin-left: auto; text-align: right; }
.bm-fake-betal-beloeb strong { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.bm-fake-betal-krop { padding: calc(22px * var(--bm-luft)); }
.bm-fake-betal-fod { padding: calc(12px * var(--bm-luft)) calc(22px * var(--bm-luft)); background: var(--bm-surface-2); border-top: 1px solid var(--bm-line); font-size: 12px; color: var(--bm-ink-3); }
.bm-testbetaling { margin: calc(12px * var(--bm-luft)) 0; padding: calc(10px * var(--bm-luft)) calc(16px * var(--bm-luft)); border: 2px dashed var(--bm-accent); border-radius: var(--bm-r); background: var(--bm-accent-soft); color: var(--bm-accent-ink); font-weight: 700; text-align: center; }
.bm-fake-wallet { max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; gap: calc(40px * var(--bm-luft)); align-items: center; }
.bm-fake-wallet-telefon { display: grid; place-items: center; min-height: 420px; border-radius: var(--bm-r-lg); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--bm-primary) 70%, var(--bm-surface)), var(--bm-primary) 55%, var(--bm-primary-dark)); }
.bm-fake-wallet-skaerm { width: 200px; height: 360px; border-radius: 30px; border: 10px solid var(--bm-ink); background: var(--bm-surface); padding: calc(28px * var(--bm-luft)) calc(12px * var(--bm-luft)) calc(16px * var(--bm-luft)); display: flex; flex-direction: column; gap: calc(10px * var(--bm-luft)); box-shadow: var(--bm-shadow); }
.bm-fake-wallet-push { background: var(--bm-surface-2); border-radius: var(--bm-r-md); padding: calc(10px * var(--bm-luft)); font-size: 12px; }
.bm-fake-wallet-beloeb { margin-top: auto; text-align: center; color: var(--bm-ink-2); }
.bm-fake-wallet-beloeb strong { display: block; font-size: 24px; color: var(--bm-ink); }
.bm-fake-wallet-info h1 { font-size: clamp(28px, 3.6vw, 40px); }
@media (max-width: 860px) {
  .bm-fake-betal { margin-top: calc(14px * var(--bm-luft)); }
  .bm-fake-wallet { grid-template-columns: 1fr; gap: calc(20px * var(--bm-luft)); text-align: center; }
  .bm-fake-wallet-telefon { min-height: 300px; }
  .bm-fake-wallet-skaerm { width: 170px; height: 270px; }
}

.bm-betaling-fejl { max-width: 620px; margin: 0 auto; padding: calc(36px * var(--bm-luft)) 0 calc(48px * var(--bm-luft)); text-align: center; }
.bm-betaling-fejl h1 { font-size: clamp(28px, 4vw, 40px); }
.bm-betaling-fejl-ikon { width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 50%; background: var(--bm-red-soft); display: grid; place-items: center; font-size: 56px; }
.bm-betaling-fejl-gemt { text-align: left; }
.bm-betaling-fejl-valg { display: grid; gap: calc(10px * var(--bm-luft)); margin-top: calc(22px * var(--bm-luft)); }

/* The order after checkout: confirmation, progress and receipt. */
.bm-ordrestatus { max-width: 1000px; margin: 0 auto; padding: calc(24px * var(--bm-luft)) 0 calc(48px * var(--bm-luft)); display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: calc(28px * var(--bm-luft)); align-items: start; }
.bm-ordre-tak { text-align: center; padding: calc(36px * var(--bm-luft)) calc(24px * var(--bm-luft)) calc(28px * var(--bm-luft)); background: radial-gradient(500px 220px at 50% 0%, var(--bm-green-soft), var(--bm-surface) 70%); }
.bm-ordre-tak h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: calc(6px * var(--bm-luft)); }
.bm-ordre-check { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; background: var(--bm-green); display: grid; place-items: center; box-shadow: 0 0 0 10px var(--bm-green-soft); animation: bm-ordre-pop .6s var(--bm-ease); }
.bm-ordre-check svg { width: 48px; height: 48px; }
.bm-ordre-check path { stroke: var(--bm-green-ink); stroke-width: 7; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: bm-ordre-tegn .5s .35s var(--bm-ease) forwards; }
/* Ready: the bag, bigger than the tick before it, on a stronger green. */
.bm-ordre-tak.is-klar { background: radial-gradient(560px 260px at 50% 0%, var(--bm-green-soft), var(--bm-surface) 80%); border-color: var(--bm-green); }
.bm-ordre-tak.is-klar h1 { font-size: clamp(32px, 5vw, 48px); }
.bm-ordre-check.is-pose { width: 120px; height: 120px; }
.bm-ordre-check.is-pose svg { width: 60px; height: 60px; }
.bm-ordre-check.is-pose path { stroke-width: 4; stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
/* Waiting for the restaurant: a ticking clock inside a ring that runs down to the answer
   deadline, in the fixed waiting colour. Never green, never a tick and never the brand:
   approved, rejected and a restaurant's palette must all look different from waiting. */
.bm-ordre-tak.is-venter { background: radial-gradient(500px 220px at 50% 0%, var(--bm-vent-soft), var(--bm-surface) 70%); }
.bm-ordre-vent { position: relative; width: 132px; height: 132px; margin: 0 auto 14px; }
.bm-ordre-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.bm-ordre-ring circle { fill: none; stroke: var(--bm-vent-soft); stroke-width: 8; }
.bm-ordre-ring .is-tid { stroke: var(--bm-vent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--bm-tid, 0); transition: stroke-dashoffset 1s linear; }
.bm-ordre-vent:not([data-svarfrist]) .is-tid { stroke-dasharray: 22 78; animation: bm-ordre-snur 1.6s linear infinite; transform-origin: 60px 60px; }
.bm-ordre-ur { position: absolute; inset: 22px; border-radius: 50%; background: var(--bm-surface); border: 5px solid var(--bm-vent); animation: bm-ordre-vent 2s ease-in-out infinite; }
.bm-ordre-ur::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--bm-vent); }
/* One sweeping hand only: two hands can form a V that reads as a tick. */
.bm-ordre-ur span { position: absolute; left: 50%; bottom: 50%; width: 5px; height: 30px; margin-left: -2.5px; border-radius: 3px; background: var(--bm-vent); transform-origin: 50% 100%; animation: bm-ordre-viser 3s linear infinite; }
.bm-ordre-prikker i { font-style: normal; animation: bm-ordre-prik 1.4s infinite both; }
.bm-ordre-prikker i:nth-child(2) { animation-delay: .2s; }
.bm-ordre-prikker i:nth-child(3) { animation-delay: .4s; }
@keyframes bm-ordre-viser { to { transform: rotate(360deg); } }
@keyframes bm-ordre-snur { to { transform: rotate(360deg); } }
@keyframes bm-ordre-vent { 50% { box-shadow: 0 0 0 10px var(--bm-vent-soft); } }
@keyframes bm-ordre-prik { 0%, 80%, 100% { opacity: .15; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bm-ordre-ur, .bm-ordre-ur span, .bm-ordre-prikker i, .bm-ordre-vent .is-tid { animation: none; } }
@keyframes bm-ordre-pop { from { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.1); } }
@keyframes bm-ordre-tegn { to { stroke-dashoffset: 0; } }
.bm-ordre-nr { display: inline-flex; gap: calc(6px * var(--bm-luft)); align-items: center; padding: calc(8px * var(--bm-luft)) calc(16px * var(--bm-luft)); border-radius: var(--bm-r-pill); background: var(--bm-ink); color: var(--bm-bg); font-weight: 800; font-size: 15px; margin: 6px 0 4px; }
.bm-ordrestatus-kort h2 { font-size: clamp(24px, 3vw, 32px); margin: 10px 0 4px; }
.bm-ordrestatus-eta { display: flex; align-items: baseline; gap: calc(10px * var(--bm-luft)); margin-top: calc(14px * var(--bm-luft)); }
.bm-ordrestatus-eta strong { font-size: 36px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.bm-statustrin strong { display: block; }
.bm-statustrin small { display: block; font-weight: 500; color: var(--bm-ink-3); font-size: 13.5px; }
/* The customer's pending step waits in the fixed waiting colour, never the restaurant's palette. */
.bm-timeline li.bm-statustrin.is-active::after { border-color: var(--bm-vent); box-shadow: 0 0 0 5px var(--bm-vent-soft); color: var(--bm-vent); }
.bm-timeline li.bm-statustrin.is-afvist { color: var(--bm-ink); }
.bm-timeline li.bm-statustrin.is-afvist::after { background: var(--bm-red); border-color: var(--bm-red); }
.bm-ordrestatus-linje { display: flex; gap: calc(12px * var(--bm-luft)); align-items: flex-start; padding: calc(10px * var(--bm-luft)) 0; border-bottom: 1px solid var(--bm-line); font-size: 14.5px; }
.bm-ordrestatus-linje:has(+ :not(.bm-ordrestatus-linje)) { border-bottom: 0; }
.bm-ordrestatus-fakta > div { display: flex; gap: calc(12px * var(--bm-luft)); padding: calc(8px * var(--bm-luft)) 0; border-bottom: 1px solid var(--bm-line); font-size: 14.5px; }
.bm-ordrestatus-fakta > div:last-child { border-bottom: 0; }
.bm-ordrestatus-fakta > div > :first-child { width: 96px; flex: none; font-weight: 700; }
@media (max-width: 900px) { .bm-ordrestatus { grid-template-columns: minmax(0, 1fr); padding-top: calc(16px * var(--bm-luft)); gap: calc(16px * var(--bm-luft)); } }
@media (max-width: 480px) { .bm-ordre-tak { padding: calc(28px * var(--bm-luft)) calc(16px * var(--bm-luft)) calc(20px * var(--bm-luft)); } .bm-ordrestatus-eta strong { font-size: 28px; } }

.bm-kvittering-wrap { max-width: 520px; margin: 0 auto; padding: calc(28px * var(--bm-luft)) 0 calc(48px * var(--bm-luft)); }
.bm-kvittering-vaerktoej { display: flex; gap: calc(8px * var(--bm-luft)); justify-content: center; margin-bottom: calc(18px * var(--bm-luft)); }
.bm-kvittering { background: var(--bm-surface); padding: calc(30px * var(--bm-luft)) calc(28px * var(--bm-luft)) calc(34px * var(--bm-luft)); box-shadow: var(--bm-shadow); border-radius: var(--bm-r); font-variant-numeric: tabular-nums; }
.bm-kvittering-hoved { text-align: center; }
.bm-kvittering-hoved h1 { font-size: 24px; margin: 0; }
.bm-kvittering-meta { font-size: 13px; color: var(--bm-ink-2); line-height: 1.6; }
.bm-kvittering-streg { border: 0; border-top: 2px dashed var(--bm-line); margin: 18px 0; }
.bm-kvittering-kv { display: grid; grid-template-columns: auto 1fr; gap: calc(4px * var(--bm-luft)) calc(16px * var(--bm-luft)); font-size: 14px; margin: 0; }
.bm-kvittering-kv dt { color: var(--bm-ink-3); font-weight: 600; }
.bm-kvittering-kv dd { margin: 0; text-align: right; font-weight: 600; }
.bm-kvittering-varer, .bm-kvittering-total { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bm-kvittering-varer td { padding: calc(6px * var(--bm-luft)) 0; vertical-align: top; }
.bm-kvittering-varer td:first-child { width: 34px; font-weight: 800; }
.bm-kvittering-varer td:last-child, .bm-kvittering-total td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.bm-kvittering-valg { display: block; font-size: 12.5px; color: var(--bm-ink-3); }
.bm-kvittering-total td { padding: calc(4px * var(--bm-luft)) 0; }
.bm-kvittering-total .is-total td { font-size: 20px; font-weight: 800; }
.bm-kvittering-total .is-moms td { font-size: 13px; color: var(--bm-ink-3); }
.bm-kvittering-betalt { display: inline-flex; padding: calc(6px * var(--bm-luft)) calc(14px * var(--bm-luft)); border-radius: var(--bm-r-pill); border: 2px solid var(--bm-green); color: var(--bm-green); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-4deg); }
.bm-kreditnota .bm-kvittering-total .is-total td { color: var(--bm-red); }
.bm-kreditnota-begrundelse { white-space: pre-line; overflow-wrap: anywhere; }
.bm-ordre-refunderet { display: grid; gap: calc(4px * var(--bm-luft)); padding: calc(10px * var(--bm-luft)) calc(12px * var(--bm-luft)); border-radius: var(--bm-r-md); background: var(--bm-surface-2); }
.bm-kvittering-efter { display: flex; gap: calc(10px * var(--bm-luft)); justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px) { .bm-kvittering { padding: calc(24px * var(--bm-luft)) calc(18px * var(--bm-luft)) calc(28px * var(--bm-luft)); } }
@media print {
  .bm-kvittering-vaerktoej, .bm-kvittering-efter { display: none !important; }
  .bm-kvittering-wrap { padding: 0; max-width: none; }
  .bm-kvittering { box-shadow: none; padding: 0; }
}

/* Terms of sale and privacy policy. */
.bm-tekst { max-width: 720px; margin: 0 auto; padding: calc(24px * var(--bm-luft)) 0 calc(48px * var(--bm-luft)); }
.bm-tekst-faner { margin-bottom: calc(16px * var(--bm-luft)); }
.bm-tekst-faner .bm-chip[aria-current="page"] { background: var(--bm-ink); border-color: var(--bm-ink); color: var(--bm-bg); }
.bm-tekst h2 { font-size: 20px; margin-top: calc(28px * var(--bm-luft)); }
.bm-tekst p, .bm-tekst li { color: var(--bm-ink-2); font-size: 15.5px; line-height: 1.65; }
.bm-tekst-kort { padding: calc(16px * var(--bm-luft)) calc(18px * var(--bm-luft)); border-radius: var(--bm-r); background: var(--bm-accent-soft); }
.bm-tekst-kort ul { margin: 6px 0 0; padding-left: calc(18px * var(--bm-luft)); }
.bm-tekst-kort li { color: var(--bm-ink); font-size: 14.5px; }
.bm-tekst-fod { margin-top: calc(32px * var(--bm-luft)); padding-top: calc(14px * var(--bm-luft)); border-top: 1px solid var(--bm-line); font-size: 13px; color: var(--bm-ink-3); }

.bm-tilvalg { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.bm-tilvalg legend { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: calc(8px * var(--bm-luft)); padding: 0; margin-bottom: calc(4px * var(--bm-luft)); }
.bm-tilvalg legend strong { font-size: 18px; }
.bm-tilvalg > .bm-hint { margin: 0 0 10px; }
.bm-tilvalg .bm-check { padding: calc(12px * var(--bm-luft)) calc(14px * var(--bm-luft)); }
.bm-tilvalg .bm-check:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.bm-tilvalg-pris { color: var(--bm-ink-2); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.bm-check.is-udsolgt .bm-tilvalg-pris { color: var(--bm-red); }
.bm-ret-side-fejl { color: var(--bm-red); font-weight: 700; min-height: 1.5em; margin-top: calc(16px * var(--bm-luft)); }

.bm-allergen-head { padding: calc(24px * var(--bm-luft)) 0 calc(6px * var(--bm-luft)); max-width: 760px; }
.bm-allergen-wrap { position: relative; overflow-x: auto; border: 1px solid var(--bm-line); border-radius: var(--bm-r); background: var(--bm-surface); -webkit-overflow-scrolling: touch; }
.bm-allergen-tabel { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
.bm-allergen-tabel th, .bm-allergen-tabel td { border-bottom: 1px solid var(--bm-line); }
.bm-allergen-tabel thead th { background: var(--bm-surface-2); padding: calc(10px * var(--bm-luft)) 0; vertical-align: bottom; font-size: 12px; font-weight: 800; color: var(--bm-ink-2); }
.bm-allergen-navn { width: 40px; min-width: 40px; }
.bm-allergen-navn span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.bm-allergen-tabel .bm-allergen-ret { position: sticky; left: 0; z-index: 1; background: var(--bm-surface); text-align: left; padding: calc(8px * var(--bm-luft)) calc(12px * var(--bm-luft)); min-width: 190px; border-right: 1px solid var(--bm-line); font-weight: 700; }
.bm-allergen-tabel thead .bm-allergen-ret { background: var(--bm-surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--bm-ink-3); }
.bm-allergen-ret a { text-decoration: none; }
.bm-allergen-tabel td { text-align: center; padding: 0; }
.bm-allergen-tabel td.is-ja > span[title] { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bm-primary); color: var(--bm-primary-ink); font-size: 10px; }
.bm-allergen-kat th { text-align: left; background: var(--bm-bg); padding: calc(14px * var(--bm-luft)) calc(12px * var(--bm-luft)) calc(6px * var(--bm-luft)); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bm-ink-3); }
.bm-allergen-note { max-width: 760px; margin-bottom: calc(40px * var(--bm-luft)); }
@media (max-width: 760px) { .bm-allergen-tabel .bm-allergen-ret { min-width: 140px; max-width: 140px; font-size: 13px; } }

/* Price summary */
.bm-sum { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bm-sum td { padding: calc(6px * var(--bm-luft)) 0; }
.bm-sum td:last-child { text-align: right; }
.bm-sum tr.is-total td { font-weight: 800; font-size: 18px; padding-top: calc(12px * var(--bm-luft)); border-top: 1px solid var(--bm-line); }

/* Status timeline (order tracking) */
.bm-timeline { list-style: none; margin: 0; padding: 0; }
.bm-timeline li { position: relative; padding: 0 0 calc(22px * var(--bm-luft)) calc(40px * var(--bm-luft)); color: var(--bm-ink-3); }
.bm-timeline li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--bm-line); }
.bm-timeline li:last-child::before { display: none; }
.bm-timeline li::after { content: ""; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--bm-line); background: var(--bm-surface); }
.bm-timeline li.is-done { color: var(--bm-ink); }
.bm-timeline li.is-done::after { background: var(--bm-green); border-color: var(--bm-green); }
.bm-timeline li.is-done::before { background: var(--bm-green); }
.bm-timeline li.is-active { color: var(--bm-ink); font-weight: 700; }
.bm-timeline li.is-active::after { border-color: var(--bm-primary); box-shadow: 0 0 0 5px var(--bm-primary-soft); animation: bm-pulse 1.6s infinite; color: var(--bm-primary); }

/* ---------- Backoffice shell (restaurant, admin) ---------- */
.bm-app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.bm-app .bm-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bm-surface); border-right: 1px solid var(--bm-line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.bm-app .bm-side .bm-brand { padding: 4px 8px 16px; }
.bm-side-group { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bm-ink-3); padding: 14px 10px 6px; }
.bm-app .bm-side a.bm-side-link { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 10px; flex: none; border-radius: var(--bm-r-sm); text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--bm-ink); }
.bm-app .bm-side a.bm-side-link:hover { background: var(--bm-surface-2); color: var(--bm-ink); }
.bm-app .bm-side a.bm-side-link.is-active { background: var(--bm-primary-soft); color: var(--bm-primary-dark); font-weight: 700; }
.bm-app .bm-side a.bm-side-link .bm-ico { flex: none; }
.bm-app .bm-side .bm-brand-mark .bm-ico { width: 20px; height: 20px; }
/* "Kom i gang" sits at the bottom, right above the user block, while setup is unfinished. */
.bm-app .bm-side a.bm-side-kig { margin-top: auto; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; border: 1px solid var(--bm-line); }
.bm-side-kig-top { display: flex; align-items: center; gap: 12px; }
.bm-side-kig-antal { margin-left: auto; font-size: 12.5px; color: var(--bm-ink-3); }
.bm-side-kig-bar { display: block; height: 6px; border-radius: var(--bm-r-pill); background: var(--bm-surface-2); overflow: hidden; }
.bm-side-kig-bar > span { display: block; height: 100%; width: 0; background: var(--bm-primary); }
.bm-side-bund { padding-top: 16px; }
.bm-side-kig[hidden] + .bm-side-bund { margin-top: auto; }
.bm-app .bm-side a.bm-side-link .bm-badge { margin-left: auto; }
.bm-main { min-width: 0; }
.bm-pagehead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 22px 28px 0; }
.bm-pagehead h1 { font-size: 26px; margin: 0; }
.bm-pagehead .bm-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.bm-content { padding: 22px 28px 48px; }
.bm-mobilebar { display: none; }
@media (max-width: 900px) {
  .bm-app { grid-template-columns: 1fr; }
  .bm-app .bm-side { position: fixed; z-index: 60; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s var(--bm-ease), box-shadow .25s; box-shadow: none; }
  .bm-app .bm-side.is-open { transform: none; box-shadow: var(--bm-shadow-lg); }
  .bm-mobilebar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 50; height: 58px; padding: 0 var(--bm-gutter); background: var(--bm-surface); border-bottom: 1px solid var(--bm-line); }
  .bm-pagehead { padding: 16px var(--bm-gutter) 0; }
  .bm-pagehead h1 { font-size: 22px; }
  .bm-content { padding: 16px var(--bm-gutter) 40px; }
}
.bm-scrim { position: fixed; inset: 0; z-index: 55; background: var(--bm-scrim); opacity: 0; pointer-events: none; transition: opacity .2s; }
.bm-scrim.is-open { opacity: 1; pointer-events: auto; }
/* The order board's icon rail (sidemenu(rute, true)); from 700px the full menu becomes a drawer. */
.bm-rail, .bm-side-luk { display: none; }
@media (min-width: 700px) {
  .bm-app-rail { grid-template-columns: 68px minmax(0, 1fr); }
  .bm-app-rail .bm-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; position: sticky; top: 0; height: 100vh; padding: 16px 10px; background: var(--bm-surface); border-right: 1px solid var(--bm-line); }
  .bm-app-rail .bm-side { position: fixed; z-index: 60; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s var(--bm-ease), box-shadow .25s; box-shadow: none; }
  .bm-app-rail .bm-side.is-open { transform: none; box-shadow: var(--bm-shadow-lg); }
  .bm-app-rail .bm-side-luk { display: inline-flex; align-self: flex-end; }
  .bm-app-rail .bm-mobilebar { display: none; }
  /* 24px sides so each of the three columns keeps 290px at 1024px. */
  .bm-app-rail .bm-pagehead, .bm-app-rail .bm-content { padding-left: 24px; padding-right: 24px; }
}
.bm-rail-knap { position: relative; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: var(--bm-r-md); color: var(--bm-ink); background: none; border: 0; cursor: pointer; text-decoration: none; }
.bm-rail-knap:hover { background: var(--bm-surface-2); }
.bm-rail-knap.is-active { background: var(--bm-primary-soft); color: var(--bm-primary-dark); }
.bm-rail-menu { border: 1px solid var(--bm-line); margin-bottom: 8px; }
.bm-rail .bm-ikon { width: 20px; height: 20px; }
.bm-rail-badge { position: absolute; top: 2px; right: 0; }

/* Opening hours (/restaurant/aabningstider), ported from mockups/restaurant/aabningstider.html */
.bm-at-head { flex-direction: column; align-items: flex-start; gap: 6px; }
.bm-at-status { margin: 0; font-size: 14.5px; color: var(--bm-ink-2); }
.bm-at-status strong { color: var(--bm-ink); }
.bm-at-prik { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: 1px; border-radius: 50%; flex: none; background: var(--bm-ink-3); }
.bm-at-prik.is-aaben { background: var(--bm-green); }
.bm-at-prik.is-pause { background: var(--bm-accent); }
.bm-at-prik.is-fejl { background: var(--bm-red); }
.bm-at-faste { padding: 20px 0 8px; border: 1.5px solid var(--bm-ink); }
.bm-at-pad { padding: 0 16px; gap: 12px; }
/* One shared grid for the header and all seven rows, so every input sits at the same x. Sized
   by the card, not the window, because the "Nye ordrer" panel may take 300px of it. */
.bm-at-grid { container-type: inline-size; }
.bm-at-dhead, .bm-at-dag { display: grid; grid-template-columns: 110px 56px 196px 232px minmax(0, 1fr) 44px; column-gap: 10px; align-items: center; padding: 0 16px; }
.bm-at-dhead { margin-top: 18px; padding-bottom: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--bm-ink-3); }
.bm-at-akse { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: 0; color: var(--bm-ink-3); }
.bm-at-dag { min-height: 68px; border-top: 1px solid var(--bm-line); }
.bm-at-navn strong { display: block; font-size: 15.5px; }
.bm-at-idag { display: block; font-size: 12px; font-weight: 700; color: var(--bm-primary); }
.bm-at-span { display: flex; align-items: center; gap: 4px; }
.bm-at-span input { width: 88px; height: 44px; flex: none; padding: 0 6px; font-variant-numeric: tabular-nums; text-align: center; }
.bm-at-span input::-webkit-calendar-picker-indicator { display: none; }
.bm-at-ekstra-felt { display: flex; align-items: center; gap: 0; }
.bm-at-ekstra-felt .bm-at-fjern { margin-left: 0; }
.bm-at-ekstra { width: 196px; height: 44px; border: 1.5px dashed var(--bm-line); border-radius: var(--bm-r-md); background: transparent; color: var(--bm-ink-2); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.bm-at-ekstra:hover { border-color: var(--bm-ink-3); color: var(--bm-ink); }
.bm-at-lukket-tekst { font-weight: 700; color: var(--bm-ink-3); }
.bm-at-spor { position: relative; height: 14px; border-radius: var(--bm-r-pill); background: var(--bm-surface-2); overflow: hidden; }
.bm-at-bar { position: absolute; top: 0; bottom: 0; border-radius: var(--bm-r-pill); background: var(--bm-accent); }
.bm-at-kopi { width: 44px; height: 44px; border: 0; border-radius: var(--bm-r-md); background: transparent; color: var(--bm-ink-2); font-size: 18px; cursor: pointer; }
.bm-at-kopi:hover { background: var(--bm-surface-2); color: var(--bm-ink); }
/* No room for the bar (or under 900px): it goes, and the day column and gaps tighten. */
@container (max-width: 800px) {
  .bm-at-dhead, .bm-at-dag { grid-template-columns: 80px 56px 196px 232px 44px; column-gap: 6px; padding-left: 10px; padding-right: 10px; }
  .bm-at-spor, .bm-at-akse { display: none; }
}
@media (max-width: 900px) {
  .bm-at-dhead, .bm-at-dag { grid-template-columns: 80px 56px 196px 232px 44px; column-gap: 6px; padding-left: 10px; padding-right: 10px; }
  .bm-at-spor, .bm-at-akse { display: none; }
}
/* Narrow: name and toggle on the first line, the spans underneath, inputs still 88px. */
@container (max-width: 651px) {
  .bm-at-dhead { display: none; }
  .bm-at-dag { grid-template-columns: minmax(0, 1fr) auto 44px; grid-template-areas: "d s k" "a a a" "b b b"; row-gap: 8px; padding-top: 12px; padding-bottom: 12px; }
  .bm-at-dag > .bm-at-navn { grid-area: d; }
  .bm-at-dag > .bm-switch { grid-area: s; }
  .bm-at-dag > :nth-child(3) { grid-area: a; }
  .bm-at-dag > :nth-child(4) { grid-area: b; }
  .bm-at-dag > .bm-at-spor { display: none; }
  .bm-at-dag > .bm-at-kopi { grid-area: k; }
  .bm-at-dag.is-closed > :nth-child(4) { display: none; }
}
.bm-at-under { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 900px) { .bm-at-under { grid-template-columns: minmax(0, 1fr); } }
.bm-at-seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1.5px solid var(--bm-ink); border-radius: var(--bm-r-md); overflow: hidden; }
.bm-at-seg-knap { min-height: 44px; padding: 0 2px; border: 0; background: var(--bm-surface); color: var(--bm-ink); font: inherit; font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; }
.bm-at-seg-knap + .bm-at-seg-knap { border-left: 1px solid var(--bm-line); }
.bm-at-seg-knap[aria-checked="true"] { background: var(--bm-ink); color: var(--bm-bg); }
.bm-at-seg-knap:focus-visible { outline: 3px solid color-mix(in srgb, var(--bm-primary) 40%, transparent); outline-offset: -3px; }
.bm-at-resultat { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--bm-r-md); background: var(--bm-surface-2); font-size: 14.5px; }
/* Save bar: sticky at the bottom of the main column, so it never covers the left menu and
   takes its own height in the flow, which keeps the last card clear of it. */
.bm-at-gembar { position: sticky; bottom: 0; z-index: 40; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 28px 16px; padding: 12px 16px; border-radius: var(--bm-r-md); background: var(--bm-ink); color: var(--bm-bg); box-shadow: var(--bm-shadow-lg); }
.bm-at-gembar[hidden] { display: none; }
.bm-at-gembar-tekst { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; font-weight: 700; }
.bm-at-gembar-knapper { display: flex; gap: 8px; margin-left: auto; }
.bm-at-gembar-knapper[hidden] { display: none; }
.bm-at-fortryd { background: transparent; color: var(--bm-bg); border: 1.5px solid currentColor; }
@media (max-width: 900px) { .bm-at-gembar { margin: 0 var(--bm-gutter) 12px; } }
.bm-at-pop { position: absolute; z-index: 80; width: 280px; max-width: calc(100vw - 16px); padding: 16px; border-radius: var(--bm-r-lg); background: var(--bm-surface); border: 1px solid var(--bm-line); box-shadow: var(--bm-shadow-lg); }
.bm-at-pop[hidden] { display: none; }
.bm-at-pop h4 { margin: 0 0 10px; }
.bm-at-pop .bm-row { gap: 8px; margin-bottom: 10px; }
.bm-at-pop .bm-check { min-height: 44px; padding: 6px 12px; }
.bm-at-pop .bm-check + .bm-check { margin-top: 4px; }
.bm-at-pop .bm-check:has(input:disabled) { opacity: .5; cursor: default; }
.bm-at-fejl { margin: 12px 0 0; color: var(--bm-red); font-size: 14px; font-weight: 600; }
.bm-at-saerlig { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--bm-line); }
.bm-at-saerlig:last-child { border-bottom: 0; }
.bm-at-saerlig .bm-grow { min-width: 0; }
.bm-at-saerlig-navn { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--bm-ink); cursor: pointer; text-align: left; }
.bm-at-kal { width: 52px; flex: none; border-radius: var(--bm-r-md); overflow: hidden; text-align: center; border: 1px solid var(--bm-line); background: var(--bm-surface); }
.bm-at-kal b { display: block; background: var(--bm-primary); color: var(--bm-primary-ink); font-size: 11px; padding: 2px 0; text-transform: uppercase; letter-spacing: .06em; }
.bm-at-kal span { display: block; font-size: 20px; font-weight: 800; padding: 2px 0 4px; }
.bm-at-lukket { color: var(--bm-red); font-weight: 700; }
.bm-at-fjern { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--bm-ink-3); font-size: 16px; margin-left: auto; flex: none; }
.bm-at-fjern:hover { background: var(--bm-red-soft); color: var(--bm-red); }

/* KPI tiles */
.bm-kpi { background: var(--bm-surface); border: 1px solid var(--bm-line); border-radius: var(--bm-r); padding: 16px 18px; }
.bm-kpi-label { font-size: 13px; font-weight: 700; color: var(--bm-ink-3); }
.bm-kpi-value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.bm-kpi-delta { font-size: 13px; font-weight: 700; color: var(--bm-green); }
.bm-kpi-delta.is-down { color: var(--bm-red); }

/* Tables */
.bm-table-wrap { overflow-x: auto; border: 1px solid var(--bm-line); border-radius: var(--bm-r); background: var(--bm-surface); }
.bm-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bm-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--bm-ink-3); font-weight: 800; padding: 12px 16px; border-bottom: 1px solid var(--bm-line); background: var(--bm-surface-2); white-space: nowrap; }
.bm-table td { padding: 12px 16px; border-bottom: 1px solid var(--bm-line); vertical-align: middle; }
.bm-table tr:last-child td { border-bottom: 0; }
.bm-table tbody tr:hover { background: color-mix(in srgb, var(--bm-surface-2) 50%, transparent); }
.bm-table .bm-num, .bm-table td.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.bm-table a { text-decoration: none; font-weight: 700; }

/* Simple bar chart (CSS only) */
.bm-bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 8px; }
.bm-bars > div { flex: 1; background: var(--bm-primary); border-radius: 6px 6px 2px 2px; min-height: 4px; position: relative; opacity: .85; }
.bm-bars > div:hover { opacity: 1; }
.bm-bars > div.is-muted { background: var(--bm-line); }
.bm-bars-labels { display: flex; gap: 6px; font-size: 11px; color: var(--bm-ink-3); margin-top: 6px; }
.bm-bars-labels > span { flex: 1; text-align: center; }

/* ---------- Overlays ---------- */
.bm-toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.bm-toast { background: var(--bm-ink); color: var(--bm-bg); padding: 12px 18px; border-radius: var(--bm-r-pill); font-weight: 700; font-size: 14px; max-width: 520px; box-shadow: var(--bm-shadow-lg); animation: bm-toast-in .3s var(--bm-ease); display: flex; align-items: center; gap: 14px; }
.bm-toast-knap { pointer-events: auto; min-height: 44px; padding: 0 12px; margin: -10px -8px -10px 0; background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@keyframes bm-toast-in { from { transform: translateY(12px); opacity: 0; } }
/* Phone: shrink-to-fit under left: 50% caps a toast at half the screen, so span the width instead. */
@media (max-width: 640px) { .bm-toast-host { left: 16px; right: 16px; transform: none; } .bm-toast { border-radius: var(--bm-r); } }
/* A toast must never cover a dialog's buttons (bottom sheets on phones): move it to the top. */
body:has(.bm-modal.is-open) .bm-toast-host { top: 16px; bottom: auto; }
.bm-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; background: var(--bm-scrim-strong); }
.bm-modal.is-open { display: flex; }
.bm-modal-box { background: var(--bm-surface); border-radius: var(--bm-r-lg); padding: 24px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: var(--bm-shadow-lg); animation: bm-toast-in .25s var(--bm-ease); }
@media (max-width: 600px) { .bm-modal { align-items: flex-end; padding: 0; } .bm-modal-box { border-radius: var(--bm-r-lg) var(--bm-r-lg) 0 0; max-width: none; } }

/* Empty state */
.bm-empty { text-align: center; padding: 48px 16px; color: var(--bm-ink-2); }
.bm-empty-ico { font-size: 56px; margin-bottom: 12px; }

/* Alert / notice */
.bm-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--bm-r); background: var(--bm-accent-soft); color: var(--bm-ink); font-size: 14.5px; }
.bm-notice-green { background: var(--bm-green-soft); }
.bm-notice-red { background: var(--bm-red-soft); }
.bm-notice-blue { background: var(--bm-blue-soft); }
.bm-forhaand-besked { margin: 0; padding: 8px 16px; background: var(--bm-blue-soft); color: var(--bm-ink); font-size: 14px; text-align: center; }
/* The public backoffice demo's banner: text and buttons side by side, the buttons under the text on a phone. */
.bm-demo-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; margin-bottom: 16px; }
.bm-demo-knapper { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .bm-demo-banner { grid-template-columns: auto minmax(0, 1fr); } .bm-demo-knapper { grid-column: 1 / -1; } }
/* The demo shift's goals bar and moment notices (#1795), under the banner's text and buttons. */
.bm-demo-vagt, .bm-demo-momenter { grid-column: 1 / -1; }
.bm-demo-vagt summary { cursor: pointer; font-weight: 700; }
.bm-demo-maal { margin: 8px 0 0; padding-left: 4px; list-style: none; }
.bm-demo-momenter { display: grid; gap: 8px; }
.bm-demo-momenter:empty { display: none; }

/* Live orders on every backoffice page: the connection banner across the top, the sound
   notice and the pulsing count of orders waiting for an answer. */
.bm-ord-forbindelse { position: sticky; top: 0; z-index: 80; padding: 14px 20px; text-align: center; font-size: 17px; font-weight: 800; background: var(--bm-red); color: var(--bm-red-ink); }
.bm-ord-forbindelse.is-tilbage { background: var(--bm-green); color: var(--bm-green-ink); }
.bm-ord-lyd { align-items: center; }
.bm-ord-nye { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.bm-ord-ny { align-items: center; }
.bm-badge-puls { animation: bm-badge-puls 1.2s ease-in-out infinite; }
@keyframes bm-badge-puls { 50% { box-shadow: 0 0 0 6px var(--bm-red-soft); } }
@media (prefers-reduced-motion: reduce) { .bm-badge-puls { animation: none; } }
#bm-menu-btn [data-nye-ordrer] { position: absolute; top: -4px; right: -6px; padding: 1px 6px; }
#bm-menu-btn { position: relative; }

/* Avatar */
.bm-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--bm-accent-soft); color: var(--bm-accent-ink); flex: none; font-size: 15px; }

/* Map placeholder (stylised SVG maps sit inside) */
.bm-map { position: relative; border-radius: var(--bm-r); overflow: hidden; background: var(--bm-map-bg); border: 1px solid var(--bm-line); }
.bm-map svg { display: block; width: 100%; height: 100%; }


/* Compact order summary (BM.cartPeek) for checkout screens on phones */
.bm-peek { background: var(--bm-surface); border: 1px solid var(--bm-line); border-radius: var(--bm-r); box-shadow: var(--bm-shadow-sm); }
.bm-peek > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; cursor: pointer; font-size: 15px; }
.bm-peek > summary::-webkit-details-marker { display: none; }
.bm-peek-ico { font-size: 18px; }
.bm-peek-chev { color: var(--bm-ink-3); font-size: 18px; transition: transform .2s var(--bm-ease); }
.bm-peek[open] .bm-peek-chev { transform: rotate(180deg); }
.bm-peek-body { padding: 0 14px 12px; border-top: 1px solid var(--bm-line); }
.bm-peek-line { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--bm-line); }
.bm-peek-line:last-of-type { border-bottom: 0; }
.bm-peek-q { font-weight: 800; color: var(--bm-primary); min-width: 24px; }
.bm-peek-sub { color: var(--bm-ink-2); }

/* Decorative QR (BM.qr) */
.bm-qr { display: block; width: 100%; height: auto; }

@media print { .bm-topbar, .bm-tabbar, .bm-app .bm-side, .bm-mobilebar { display: none !important; } body { background: var(--bm-surface); } }

/* Utilities */
.bm-mt-0 { margin-top: 0 !important; }
.bm-mt { margin-top: 16px; }
.bm-mt-lg { margin-top: 32px; }
.bm-mb { margin-bottom: 16px; }
.bm-hide-mobile { }
@media (max-width: 760px) { .bm-hide-mobile { display: none !important; } }
.bm-only-mobile { display: none !important; }
@media (max-width: 760px) { .bm-only-mobile { display: revert !important; } }

/* Dish sheet (bestil-ret.js): a bottom sheet on phone, a 560px dialog from 768px. The
   footer stays put while the content scrolls. */
.bm-laast, .bm-laast body { overflow: hidden; }
.bm-ret-ark { z-index: 95; }
.bm-ret-ark .bm-ret-ark-boks { position: relative; display: flex; flex-direction: column; max-width: 560px; max-height: 90vh; padding: 0; overflow: hidden; }
.bm-ret-ark-greb { display: block; width: 40px; height: 4px; margin: 8px auto 0; border-radius: var(--bm-r-pill); background: var(--bm-line); }
.bm-ret-ark-luk { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: var(--bm-r-pill); background: var(--bm-surface-2); color: var(--bm-ink); font-size: 24px; line-height: 1; cursor: pointer; }
.bm-ret-ark-indhold { flex: 1; overflow-y: auto; padding: calc(12px * var(--bm-luft)) 20px calc(16px * var(--bm-luft)); }
.bm-ret-ark-top { display: flex; gap: 12px; align-items: flex-start; padding-right: 44px; }
.bm-ret-ark-top h2 { margin: 0 0 4px; }
.bm-ret-ark-billede { flex: none; width: 72px; height: 72px; border-radius: var(--bm-r-md); background: var(--bm-food-bg); display: flex; align-items: center; justify-content: center; font-size: 36px; overflow: hidden; }
.bm-ret-ark-billede img { width: 100%; height: 100%; object-fit: cover; }
.bm-ret-ark .bm-tilvalg legend { display: flex; align-items: center; gap: 8px; }
.bm-badge-ink { background: var(--bm-ink); color: var(--bm-surface); }
.bm-ret-ark-valgfri { color: var(--bm-ink-3); font-size: 13px; }
.bm-ret-valg { min-height: 52px; border: 1px solid var(--bm-line); border-radius: var(--bm-r); padding: 0 12px; margin-top: 8px; }
.bm-ret-valg:has(input:checked) { border: 2px solid var(--bm-ink); padding: 0 11px; }
.bm-ret-valg.is-udsolgt { opacity: .55; }
.bm-ret-valg.is-udsolgt .bm-grow { text-decoration: line-through; }
.bm-ret-ark-fejl { color: var(--bm-red); font-weight: 700; margin: 4px 0 0; }
.bm-ret-ark-fejl:empty { display: none; }
.bm-ret-ark-notelink { min-height: 44px; margin-top: calc(12px * var(--bm-luft)); padding: 0; border: 0; background: none; cursor: pointer; }
.bm-ret-ark-note { margin-top: calc(12px * var(--bm-luft)); }
.bm-ret-ark-fod { display: flex; gap: 12px; align-items: center; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bm-line); background: var(--bm-surface); }
.bm-ret-ark-fod .bm-qty button { min-width: 44px; min-height: 44px; }
@media (min-width: 768px) { .bm-ret-ark-greb { display: none; } .bm-ret-ark-top { padding-top: 12px; } }

/* "Lagt i kurven: …": above the bottom bar on phone, above the panel's button on desktop. */
.bm-lagt-besked { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 40; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 16px; border-radius: var(--bm-r-pill); background: var(--bm-ink); color: var(--bm-surface); font-weight: 700; box-shadow: var(--bm-shadow); opacity: 0; pointer-events: none; transition: opacity .2s var(--bm-ease); }
.bm-lagt-besked.is-vist { opacity: 1; }
@media (min-width: 1024px) { .bm-lagt-besked { left: auto; right: max(var(--bm-gutter), calc((100vw - var(--bm-max)) / 2 + var(--bm-gutter))); transform: none; bottom: 120px; } }
@media (max-width: 767px) { .bm-ret-ark { align-items: flex-end; padding: 0; } .bm-ret-ark .bm-ret-ark-boks { max-width: none; border-radius: var(--bm-r-lg) var(--bm-r-lg) 0 0; } }
.bm-tilbage-kig { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; }

/* Opening prompts in the backoffice (#1887): the "not opened" banner sits in the page flow, so
   it never covers the order board's buttons. */
.bm-aabning-banner { align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.bm-aabning-banner .bm-ikon { color: var(--bm-red); }
.bm-aabning-tekst { flex: 1 1 220px; }
.bm-aabning-fejl { display: block; color: var(--bm-red); }
.bm-aabning-fejl[hidden] { display: none; }
.bm-aabning-knapper { display: grid; gap: 8px; margin-top: 16px; }
