/* =============================================================
   Sianetic Online Ordering Widget - Styles
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&display=swap');

:root {
  --bg: #0A0A0B;
  --surface: #141416;
  --surface-2: #1C1C20;
  --surface-3: #242428;
  --border: #2A2A2E;
  --border-light: #353539;
  --accent: #2DD4BF;
  --accent-dim: #0D9488;
  --accent-glow: rgba(45, 212, 191, 0.12);
  /* Button fill and the text on it. They follow the theme unless the venue
     has a brand colour (shared/brand-color.js sets all five accent vars). */
  --accent-fill: var(--accent);
  --on-accent: var(--bg);
  --coral: #FB7185;
  --coral-dim: rgba(251, 113, 133, 0.15);
  --add-green: #4ADE80;
  --add-green-dim: rgba(74, 222, 128, 0.12);
  --text: #F4F4F5;
  --text-2: #A1A1AA;
  --text-3: #71717A;
  --text-4: #52525B;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --font: 'DM Sans', sans-serif;
  --font-display: 'DM Sans', sans-serif;
  --transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Light Theme (?theme=light) ---- */
:root.theme-light {
  --bg: #FFFFFF;
  --surface: #F5F5F7;
  --surface-2: #EBEBEF;
  --surface-3: #E0E0E5;
  --border: #D4D4D8;
  --border-light: #C8C8CE;
  --accent: #0D9488;
  --accent-dim: #0F766E;
  --accent-glow: rgba(13, 148, 136, 0.1);
  --coral: #E11D48;
  --coral-dim: rgba(225, 29, 72, 0.1);
  --add-green: #16A34A;
  --add-green-dim: rgba(22, 163, 74, 0.08);
  --text: #18181B;
  --text-2: #3F3F46;
  --text-3: #71717A;
  --text-4: #A1A1AA;
}

/* ---- Warm Theme (?theme=warm) ---- */
:root.theme-warm {
  --bg: #FFFBF5;
  --surface: #F5F0E8;
  --surface-2: #EBE5DB;
  --surface-3: #E0D9CE;
  --border: #D4CCBF;
  --border-light: #C8BFB2;
  --accent: #B45309;
  --accent-dim: #92400E;
  --accent-glow: rgba(180, 83, 9, 0.1);
  --coral: #DC2626;
  --coral-dim: rgba(220, 38, 38, 0.1);
  --add-green: #16A34A;
  --add-green-dim: rgba(22, 163, 74, 0.08);
  --text: #1C1917;
  --text-2: #44403C;
  --text-3: #78716C;
  --text-4: #A8A29E;
}

/* ---- Ocean Theme (?theme=ocean) ---- */
:root.theme-ocean {
  --bg: #F0F9FF;
  --surface: #E0F2FE;
  --surface-2: #D6ECFA;
  --surface-3: #BAE6FD;
  --border: #7DD3FC;
  --border-light: #38BDF8;
  --accent: #0369A1;
  --accent-dim: #075985;
  --accent-glow: rgba(3, 105, 161, 0.1);
  --coral: #E11D48;
  --coral-dim: rgba(225, 29, 72, 0.1);
  --add-green: #16A34A;
  --add-green-dim: rgba(22, 163, 74, 0.08);
  --text: #0C4A6E;
  --text-2: #0E7490;
  --text-3: #6B7280;
  --text-4: #9CA3AF;
}

/* ---- Paper Theme (?theme=paper) ---- */
:root.theme-paper {
  --bg: #FAF7F2;
  --surface: #F1EDE5;
  --surface-2: #E8E3D9;
  --surface-3: #DDD7CB;
  --border: #D0C9BA;
  --border-light: #C2B9A8;
  --accent: #8B7355;
  --accent-dim: #6F5B3E;
  --accent-glow: rgba(139, 115, 85, 0.1);
  --coral: #C0392B;
  --coral-dim: rgba(192, 57, 43, 0.1);
  --add-green: #27774A;
  --add-green-dim: rgba(39, 119, 74, 0.08);
  --text: #2C2416;
  --text-2: #5C4F3C;
  --text-3: #8A7D6B;
  --text-4: #B0A590;
  --font-display: 'Fraunces', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---- Root ---- */
.w-root {
  font-family: var(--font); background: var(--bg); color: var(--text);
  min-height: 100vh; max-width: 480px; margin: 0 auto;
  position: relative; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

/* ---- Loading / Error ---- */
.w-loading, .w-error {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; padding: 40px; text-align: center; color: var(--text-2);
}
.w-loading-spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: wSpin 0.8s linear infinite; margin-bottom: 16px;
}
.w-error-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; display: flex; justify-content: center; }
.w-error-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.w-error-sub { font-size: 14px; line-height: 1.5; }
.w-error-phone { color: var(--accent); font-weight: 600; margin-top: 12px; font-size: 16px; }

/* ---- Header ---- */
/* Every fixed top offset adds --top-h, the pinned top row's height (Sections
   bar at the end of this file). It is unset for a venue with one section, so
   each value below is exactly the number it was before the bar existed. */
.w-header {
  position: fixed; top: var(--top-h, 0px); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 14px 20px;
}
.w-header-spacer { height: calc(60px + var(--top-h, 0px)); flex-shrink: 0; }
.w-header-spacer-cats { height: calc(105px + var(--top-h, 0px)); flex-shrink: 0; }
/* Floating announcement banner - fixed below the header so the menu visibly
   slides underneath it; .w-notice-spacer reserves flow space at scroll 0. */
.w-notice-spacer { height: 0; transition: height 0.25s ease; }
.w-notice-banner {
  position: fixed; left: 50%; transform: translateX(-50%);
  top: calc(66px + var(--top-h, 0px)); width: calc(100% - 24px); max-width: 456px; z-index: 95;
  padding: 12px 14px 12px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.10);
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: wNoticeIn 0.3s ease;
}
.w-root[data-view="menu"] .w-notice-banner { top: calc(111px + var(--top-h, 0px)); }
@keyframes wNoticeIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
/* Icon sits in a soft tinted disc - the disc carries the colour, the card stays neutral */
.w-notice-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); background: var(--accent-glow);
}
.w-notice-banner-text {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-2);
  flex: 1;
  align-self: center;
}
.w-notice-title { font-weight: 600; font-size: 14.5px; color: var(--text); margin-bottom: 2px; letter-spacing: -0.1px; }
.w-notice-banner-close {
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-size: 20px;
  line-height: 1;
  padding: 2px 4px;
  margin: -2px -4px;
  cursor: pointer;
  flex-shrink: 0;
}
.w-notice-banner-close:hover {
  color: var(--text);
}
/* Paused variant - same neutral card, the icon disc turns coral; not dismissible */
.w-notice-banner--paused .w-notice-icon { color: var(--coral); background: var(--coral-dim); }
.w-header-row { display: flex; align-items: center; justify-content: space-between; }
.w-rname { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }
.w-header-actions { display: flex; align-items: center; gap: 8px; }

/* ---- Language toggle (menu translations) ---- */
.w-lang-toggle {
  display: flex; align-items: center; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 10px;
  cursor: pointer; font-family: var(--font); font-size: 12px; font-weight: 600;
  color: var(--text-3); transition: var(--transition);
}
.w-lang-toggle:hover { border-color: var(--accent-dim); }
.w-lang-opt { padding: 0 3px; letter-spacing: 0.3px; }
.w-lang-opt.on { color: var(--accent); }
/* Hero variant floats beside the cart pill, same glassy treatment */
.w-hero-lang { position: absolute; top: 14px; left: 14px; z-index: 5; }
.w-hero-lang .w-lang-toggle {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-color: color-mix(in srgb, var(--border) 70%, transparent);
  padding: 8px 11px;
}

/* Honest-marker under the menu when machine translations are showing */
.w-translate-note {
  text-align: center; font-size: 11px; color: var(--text-4, var(--text-3));
  padding: 10px 16px 0;
}

/* ---- Hero ---- */
/* In-flow cover block above the standard menu; the fixed header starts
   offscreen (.w-header--offscreen) and slides in once the hero scrolls past. */
.w-hero {
  position: relative; height: 210px;
  background-size: cover; background-position: center;
  background-color: var(--surface);
  display: flex; align-items: flex-end;
}
.w-hero--plain {
  height: 120px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, var(--bg)), var(--bg) 78%);
}
.w-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.62) 100%);
}
.w-hero--plain .w-hero-shade { display: none; }
.w-hero-name {
  position: relative; padding: 0 20px 16px;
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  letter-spacing: -0.4px; color: #FFFFFF;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.w-hero--plain .w-hero-name { color: var(--text); text-shadow: none; }
.w-header { transition: transform 0.25s ease, opacity 0.25s ease; }
.w-header--offscreen { transform: translate(-50%, -110%); opacity: 0; pointer-events: none; }
/* While the header is offscreen the floating banner hugs the top edge */
.w-root[data-view="menu"] .w-notice-banner.w-notice-banner--no-header { top: calc(8px + var(--top-h, 0px)); }

/* ---- Cart Button ---- */
.w-cart-btn {
  position: relative; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 14px; color: var(--text-2);
  cursor: pointer; font-family: var(--font); font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 8px; transition: var(--transition);
}
.w-cart-btn:hover { border-color: var(--accent-dim); }
.w-cart-btn.active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }
.w-badge {
  background: var(--accent-fill); color: var(--on-accent); font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.w-cart-total { font-weight: 600; color: var(--text); }

/* ---- Cart pill (menu view): floats at the bottom while the cart has items ---- */
/* Below every sheet (200) and the toast (300), above the menu. The wrap is the
   fixed, centred box; it lets touches through beside the button. */
.w-cart-pill-wrap {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 150;
  bottom: max(14px, env(safe-area-inset-bottom));
  width: 100%; max-width: 480px; padding: 0 14px; pointer-events: none;
}
.w-cart-pill-wrap[hidden] { display: none; }
.w-cart-pill-wrap--in .w-cart-pill { animation: wPillIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes wPillIn { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.w-cart-pill {
  position: relative; pointer-events: auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 48px; padding: 0 16px; border: none; border-radius: 16px;
  background: var(--accent-fill); color: var(--on-accent);
  font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: var(--transition);
}
.w-cart-pill:hover { filter: brightness(0.95); }
.w-cart-pill:active { transform: scale(0.98); }
.w-cart-pill-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* The label is a one-line window: "Se kurv" and "Margherita tilføjet" are
   stacked in it, and a change slides the old line up and out as the new one
   rises in from below. */
.w-cart-pill-label { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; white-space: pre; line-height: 22px; }
.w-cart-pill-msg { grid-area: 1 / 1; display: flex; min-width: 0; }
.w-cart-pill-msg--in { animation: wPillMsgIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both; }
.w-cart-pill-msg--out { animation: wPillMsgOut 0.26s ease both; }
@keyframes wPillMsgIn { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes wPillMsgOut { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-100%); opacity: 0; } }
.w-cart-pill-cut { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.w-cart-pill-keep { flex: none; }
.w-cart-pill-n--pop { animation: wPillPop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes wPillPop { 0% { transform: scale(1); } 45% { transform: scale(1.28); } 100% { transform: scale(1); } }
.w-cart-pill-n {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--on-accent); color: var(--accent-fill); font-size: 12px; font-weight: 700;
}
.w-cart-pill-total { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The add-to-cart glide (landInPill in app.js): the item window slides away
   and a copy of its "Tilføj" button travels to the cart pill. */
.w-overlay--closing { pointer-events: none; animation: wOverlayOut 0.3s ease forwards; }
.w-overlay--closing .w-sheet, .w-overlay--closing .w-cart-sheet { animation: wSlideDown 0.3s cubic-bezier(0.4, 0, 1, 1) forwards; }
@keyframes wOverlayOut { from { background: rgba(0, 0, 0, 0.6); } to { background: rgba(0, 0, 0, 0); } }
@keyframes wSlideDown { from { transform: translateY(0); } to { transform: translateY(100%); } }
.w-fly {
  position: fixed; z-index: 250; pointer-events: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
  background: var(--accent-fill); color: var(--on-accent);
  font-family: var(--font); font-size: 15px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.18);
}

/* ---- Category Bar ---- */
.w-cat-bar {
  display: flex; gap: 6px; padding: 10px 0 2px;
  overflow-x: auto; scrollbar-width: none;
}
.w-cat-bar::-webkit-scrollbar { display: none; }
.w-cat-tab {
  flex-shrink: 0; padding: 7px 15px; border-radius: 20px; border: none;
  background: var(--surface-2); color: var(--text-3); font-family: var(--font);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.w-cat-tab:hover { color: var(--text-2); background: var(--surface-3); }
.w-cat-tab.active { background: var(--text); color: var(--bg); }

/* ---- Menu Section ---- */
.w-section { padding: 4px 20px 12px; scroll-margin-top: calc(110px + var(--top-h, 0px)); }
.w-paper-section { scroll-margin-top: calc(110px + var(--top-h, 0px)); }
.w-sec-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; padding: 14px 0 10px; letter-spacing: -0.2px; }

/* ---- Menu Item Card ---- */
.w-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 8px; cursor: pointer;
  transition: var(--transition); gap: 14px;
}
.w-item:hover { border-color: var(--border-light); background: var(--surface-2); }
.w-item:active { transform: scale(0.985); }
.w-item.sold-out { opacity: 0.35; pointer-events: none; }
.w-item-info { flex: 1; min-width: 0; }
.w-item-name { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.w-item-num { color: var(--text-3); font-weight: 500; }
.w-item-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.w-item-price { font-size: 15px; font-weight: 600; color: var(--accent); }
.w-sold { font-size: 10px; font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- Category Section Banner ---- */
.w-sec-banner { margin-top: 14px; height: 76px; border-radius: var(--radius); overflow: hidden; }
.w-sec-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Item Card Photo Variant ---- */
.w-item--img .w-item-price { margin-top: 6px; }
.w-item-thumb {
  position: relative; width: 84px; height: 84px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
}
.w-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-item.sold-out .w-item-thumb img { filter: grayscale(1); }
.w-item-thumb .w-sold {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  background: rgba(0, 0, 0, 0.55); color: #FFFFFF; padding: 3px 0;
}

/* ---- Gallery style: photo tiles (a category with at least one photo) ---- */
.w-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.w-tile {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: var(--transition);
}
.w-tile:hover { border-color: var(--border-light); background: var(--surface-2); }
.w-tile:active { transform: scale(0.985); }
.w-tile.sold-out { opacity: 0.35; pointer-events: none; }
.w-tile-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.w-tile-img--none { background: var(--accent-glow); }
/* Out of flow, so a tall photo cannot stretch the 4:3 box. */
.w-tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.w-tile.sold-out .w-tile-img img { filter: grayscale(1); }
.w-tile-img .w-sold {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  background: rgba(0, 0, 0, 0.55); color: #FFFFFF; padding: 3px 0;
}
.w-tile-body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; min-width: 0; }
.w-tile-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.25; margin-bottom: 3px; overflow-wrap: anywhere; }
.w-tile-desc { font-size: 12px; color: var(--text-3); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-tile-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.w-tile-price { font-size: 15px; font-weight: 600; color: var(--accent); }
.w-tile-add {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent-glow); color: var(--accent); font-size: 18px; font-weight: 600; line-height: 1;
}

/* ---- Bottom Sheet (Overlay) ---- */
.w-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200;
  display: flex; align-items: flex-end; justify-content: center; animation: wFadeIn 0.2s ease;
  overflow: hidden; touch-action: none;
  /* Sheets mount on <body>, outside .w-root, so they must carry the base font
     and text colour themselves - otherwise unstyled text (e.g. the guest
     sheet's subtitle, the auth sheet's labels) falls back to the browser serif. */
  font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased;
}
.w-sheet {
  background: var(--bg); border-radius: 20px 20px 0 0; width: 100%; max-width: 480px;
  height: 92vh; height: 92dvh; display: flex; flex-direction: column; animation: wSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.w-sheet-handle { width: 36px; height: 4px; background: var(--text-4); border-radius: 2px; margin: 10px auto 0; flex-shrink: 0; }
/* The handle is a real grip on the item and combo window (dragToClose in
   item-sheet.js): a bigger invisible touch area around the 4px line. */
.w-sheet > .w-sheet-handle { position: relative; cursor: grab; }
.w-sheet > .w-sheet-handle::before { content: ""; position: absolute; inset: -12px -40px; }
.w-sheet .w-sheet-photo, .w-sheet .w-sh-name-row { touch-action: none; }
/* Item photo at the top of the sheet; the drag handle overlays it */
.w-sheet { position: relative; }
.w-sheet-photo { flex-shrink: 0; height: 190px; border-radius: 20px 20px 0 0; overflow: hidden; transition: height 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease; }
/* A little way into the options the photo folds away to give them the room
   (foldPhotoOnScroll in item-sheet.js); the drag handle goes back to its
   normal colour on the plain background. */
.w-sheet--photo-gone .w-sheet-photo { height: 0; opacity: 0; }
.w-sheet--photo-gone .w-sheet-photo + .w-sheet-handle { background: var(--text-4); }
.w-sheet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-sheet-photo + .w-sheet-handle {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  margin: 0; background: rgba(255, 255, 255, 0.8); z-index: 2;
}

/* ---- Sheet Fixed Top ---- */
.w-sh-fixed {
  flex-shrink: 0; padding: 16px 22px 0;
  border-bottom: 1px solid var(--border);
}
.w-sh-name-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.w-sh-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.3px; }
.w-sh-price { font-size: 17px; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ---- Sheet Body ---- */
.w-sh-body { flex: 1; overflow-y: auto; padding: 0 22px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; overscroll-behavior: contain; touch-action: pan-y; }

/* ---- Sheet Tabs ---- */
/* Sideways only. The active tab's underline hangs 1px below the row, which
   made the row scrollable up and down too (a phone then lets a finger drag
   the tabs vertically): the row now makes room for that pixel and is locked
   to sideways scrolling. */
.w-sh-tabrow {
  display: flex; gap: 0; margin-top: 10px;
  padding-bottom: 1px; margin-bottom: -1px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  touch-action: pan-x; overscroll-behavior: contain;
}
.w-sh-tabrow::-webkit-scrollbar { display: none; }
.w-sh-tab {
  padding: 10px 0; margin-right: 20px; border: none; background: none; color: var(--text-3);
  font-family: var(--font); font-size: 13px; font-weight: 500; cursor: pointer;
  position: relative; transition: var(--transition); white-space: nowrap; flex-shrink: 0;
}
.w-sh-tab:hover { color: var(--text-2); }
.w-sh-tab.active { color: var(--text); }
.w-sh-tab.active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--accent); border-radius: 1px; }

/* ---- Section Blocks (all-on-one-page) ---- */
.w-section-block { padding-top: 4px; border-radius: 8px; transition: background 0.3s; }
.w-section-block:not(:last-child) { border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.w-section-missing { animation: wShake 0.4s ease; background: rgba(239, 68, 68, 0.08); }
.w-section-missing .w-mand-hint { color: #ef4444 !important; font-weight: 600 !important; }
.w-section-missing .w-section-label { color: #ef4444; }
@keyframes wShake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.w-sheet-toast { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); background: #ef4444; color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 100; animation: wFadeIn 0.2s ease, wFadeOut 0.3s ease 2.2s forwards; white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
@keyframes wFadeOut { to { opacity: 0; transform: translateX(-50%) translateY(4px); } }
.w-section-label {
  font-size: 15px; font-weight: 600; padding: 10px 0 2px;
  position: sticky; top: 0; background: var(--bg); z-index: 1;
}

.w-tab-content { padding: 4px 0 10px; }

/* ---- Ingredients (inline) ---- */
.w-ingr-desc { font-size: 14px; color: var(--text-2); line-height: 1.7; padding: 14px 0; }
.w-ingr-desc .ingr-word { cursor: pointer; transition: var(--transition); border-bottom: 1px dashed var(--text-4); padding-bottom: 1px; }
.w-ingr-desc .ingr-word:hover { color: var(--accent); border-color: var(--accent); }
.w-ingr-desc .ingr-word.struck { text-decoration: line-through; color: var(--coral); border-bottom-color: transparent; opacity: 0.6; }
.w-ingr-desc .ingr-word.ingr-added { color: var(--add-green); border-bottom-color: var(--add-green); }
.w-ingr-desc .ingr-word.ingr-added:hover { color: var(--coral); }
.w-ingr-desc .ingr-sep { color: var(--text-4); }

/* ---- Mandatory Modifiers ---- */
.w-mand-group { padding: 12px 0; border-top: 1px solid var(--border); }
.w-mand-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.w-mand-hint { font-size: 11px; color: var(--coral); margin-bottom: 10px; font-weight: 500; }
.w-mand-opt { display: flex; align-items: center; padding: 10px 12px; border-radius: var(--radius-xs); cursor: pointer; transition: var(--transition); margin-bottom: 2px; }
.w-mand-opt:hover { background: var(--surface-2); }
.w-mand-opt.selected { background: var(--accent-glow); }
.w-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--text-4); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); margin-right: 10px; }
.w-radio.on { border-color: var(--accent-fill); background: var(--accent-fill); }
.w-radio-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--on-accent); }
.w-mand-opt-name { font-size: 14px; flex: 1; }
.w-mand-opt-price { font-size: 13px; color: var(--text-3); flex-shrink: 0; }
.w-mand-opt.sold-out { opacity: 0.4; cursor: not-allowed; }
.w-mand-opt.sold-out:hover { background: transparent; }
.w-mand-opt.sold-out .w-mand-opt-name,
.w-mand-opt.sold-out .w-mand-opt-price { text-decoration: line-through; }
.w-mand-opt-soldout { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--coral, #d33); margin-left: 8px; flex-shrink: 0; }
.w-tab-content.sold-out { /* group-level greying is conveyed by per-option styles + header hint */ }
.w-sh-tab.sold-out { opacity: 0.55; }

/* ---- Add-on Ingredients ---- */
.w-addon-cat { padding: 12px 0; }
.w-addon-cat:not(:last-child) { border-bottom: 1px solid var(--border); }
.w-addon-cat-name { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; margin-top: 12px; }
.w-addon-cat-name:first-child { margin-top: 0; }
.w-addon-subcat-name { font-size: 11px; font-weight: 600; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.4px; margin: 10px 0 6px 4px; }
.w-addon-item { display: flex; align-items: center; padding: 9px 12px; border-radius: var(--radius-xs); cursor: pointer; transition: var(--transition); margin-bottom: 2px; min-height: 44px; }
.w-addon-item:hover { background: var(--surface-2); }
.w-addon-item.selected { background: var(--add-green-dim); }
.w-check { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--text-4); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); margin-right: 10px; font-size: 11px; font-weight: 700; }
.w-check.on { border-color: var(--add-green); background: var(--add-green); color: var(--bg); }
.w-addon-name { font-size: 14px; flex: 1; }
.w-addon-price { font-size: 13px; color: var(--text-3); flex-shrink: 0; }
.w-addon-item.sold-out { opacity: 0.4; cursor: not-allowed; }
.w-addon-item.sold-out:hover { background: transparent; }
.w-addon-item.sold-out .w-addon-name,
.w-addon-item.sold-out .w-addon-price { text-decoration: line-through; }

/* ---- Add-on Quantity Stepper ---- */
.w-addon-qty-ctrl {
  display: flex; align-items: center; gap: 0;
  background: var(--surface-2); border-radius: 6px; border: 1px solid var(--add-green);
  overflow: hidden; margin-right: 10px; flex-shrink: 0;
}
.w-addon-qty-btn {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  color: var(--add-green); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: var(--transition); font-family: var(--font); background: none; border: none;
}
.w-addon-qty-btn:hover { background: var(--add-green-dim); }
.w-addon-qty-num {
  width: 22px; text-align: center; font-size: 13px; font-weight: 600; color: var(--text);
}

/* ---- Notes ---- */
.w-notes-area { width: 100%; min-height: 120px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-family: var(--font); font-size: 14px; outline: none; resize: vertical; margin-top: 12px; transition: var(--transition); }
.w-notes-area:focus { border-color: var(--accent); }
.w-notes-area::placeholder { color: var(--text-4); }
.w-notes-hint { font-size: 12px; color: var(--text-4); margin-top: 8px; }

/* ---- Sheet Footer ---- */
/* The buttons float over the options: no strip, the list fades out behind
   them. The fade lets touches through so the list still scrolls under a
   finger; .w-sh-body-end is the room that lets the last option scroll clear. */
.w-sh-footer {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  /* Same bottom gap and button height (48px) as the cart pill on the menu,
     so the button and the pill sit in the same place on screen. */
  padding: 34px 22px 14px; padding-bottom: max(14px, env(safe-area-inset-bottom));
  display: flex; align-items: stretch; justify-content: space-between; gap: 14px; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 60%, transparent) 0%, color-mix(in srgb, var(--bg) 30%, transparent) 55%, transparent 100%);
}
.w-sh-footer > * { pointer-events: auto; }
.w-sh-footer .w-qty { background: var(--bg); border-radius: 16px; }
.w-sh-footer .w-qty-btn { height: 100%; min-height: 38px; }
/* The button is as wide as its text, on the right. Alone (a combo part has no
   quantity box) it keeps the full width. */
.w-sh-footer .w-addcart { flex: none; min-width: 150px; height: 48px; padding: 0 24px; border-radius: 16px; }
.w-sh-footer .w-addcart:only-child { flex: 1; }
.w-sh-footer .w-qty, .w-sh-footer .w-addcart { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.14); }
.w-sh-body-end { height: 100px; height: calc(86px + max(14px, env(safe-area-inset-bottom))); }
.w-qty { display: flex; align-items: center; background: var(--surface-2); border-radius: var(--radius-sm); border: 1px solid var(--border); overflow: hidden; }
.w-qty-btn { width: 38px; height: 38px; border: none; background: none; color: var(--text-2); font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: var(--font); transition: var(--transition); }
.w-qty-btn:hover { color: var(--accent); background: var(--accent-glow); }
.w-qty-btn:disabled { opacity: 0.3; pointer-events: none; }
.w-qty-val { width: 32px; text-align: center; font-size: 15px; font-weight: 600; }
.w-addcart { flex: 1; padding: 13px 18px; border-radius: var(--radius-sm); border: none; background: var(--accent-fill); color: var(--on-accent); font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.w-addcart:hover { filter: brightness(0.9); }
.w-addcart:active { transform: scale(0.97); }

/* ---- Views (Cart, Checkout) ---- */
.w-view { padding: 0 22px 40px; animation: wFadeIn 0.15s ease; }
.w-back { background: none; border: none; color: var(--text-2); font-family: var(--font); font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 4px 0; transition: var(--transition); }
.w-back:hover { color: var(--accent); }
/* Card step, while a payment is running: no way out (see checkout.js). */
.w-back:disabled, .w-card-edit:disabled,
.w-cart-btn:disabled, .w-acct-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.w-view-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.3px; margin: 12px 0 6px; }

/* ---- Cart Items ---- */
.w-cart-item { display: flex; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); gap: 10px; }
.w-ci-info { flex: 1; }
.w-ci-info.editable { cursor: pointer; }
.w-ci-name { font-size: 15px; font-weight: 500; }
.w-ci-mods { font-size: 11.5px; color: var(--text-3); margin-top: 3px; line-height: 1.4; }
.w-ci-price { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.w-ci-edit { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-size: 11.5px; font-weight: 600; color: var(--accent); }
.w-ci-actions { display: flex; align-items: center; gap: 2px; }
.w-ci-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: var(--font); transition: var(--transition); }
.w-ci-btn:hover { border-color: var(--accent-dim); color: var(--accent); }
.w-ci-btn.del:hover { border-color: var(--coral); color: var(--coral); }
.w-ci-qty { width: 26px; text-align: center; font-size: 13px; font-weight: 600; }
.w-cart-empty { text-align: center; padding: 50px 20px; color: var(--text-3); }

/* ---- Bottom Bar ---- */
.w-bottom { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--border); padding: 14px 22px; padding-bottom: max(14px, env(safe-area-inset-bottom)); z-index: 150; }
.w-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.w-total-label { font-size: 14px; color: var(--text-2); }
.w-total-val { font-size: 16px; font-weight: 600; }
.w-cta { width: 100%; padding: 14px; border-radius: var(--radius-sm); border: none; background: var(--accent-fill); color: var(--on-accent); font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.w-cta:hover { filter: brightness(0.9); }
.w-cta:active { transform: scale(0.98); }
.w-cta:disabled { opacity: 0.4; pointer-events: none; }

/* ---- Form / Checkout ---- */
.w-form-section { padding: 14px 0; border-top: 1px solid var(--border); }
.w-form-label { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.w-input { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-family: var(--font); font-size: 16px; outline: none; transition: var(--transition); margin-bottom: 8px; }
.w-input:focus { border-color: var(--accent); }
.w-input::placeholder { color: var(--text-4); }

.w-otype-row { display: flex; gap: 8px; margin-bottom: 4px; }
.w-otype { flex: 1; padding: 11px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-family: var(--font); font-size: 14px; font-weight: 500; cursor: pointer; text-align: center; transition: var(--transition); }
.w-otype:hover { border-color: var(--border-light); }
.w-otype.active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }

.w-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 0; }
.w-slot { padding: 10px; border-radius: var(--radius-xs); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-family: var(--font); font-size: 13px; font-weight: 500; text-align: center; cursor: pointer; transition: var(--transition); }
.w-slot:hover { border-color: var(--border-light); }
.w-slot.on { border-color: var(--accent); background: var(--accent-glow); color: var(--accent); font-weight: 600; }
.w-slot.disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }
.w-fully-booked { padding: 16px 0; color: var(--text-3); font-size: 14px; }
.w-busy-note { margin-bottom: 10px; padding: 8px 10px; font-size: 13px; color: var(--text-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xs); }
.w-slot-skeleton { padding: 10px; border-radius: var(--radius-xs); border: 1px solid var(--border); background: linear-gradient(90deg, var(--surface) 25%, var(--bg-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: wSlotShimmer 1.5s infinite; height: 17px; }
@keyframes wSlotShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Date Picker Row ---- */
.w-date-row { display: flex; gap: 6px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.w-date-row::-webkit-scrollbar { display: none; }
.w-date-btn { padding: 8px 14px; border-radius: var(--radius-xs); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-family: var(--font); font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: var(--transition); flex-shrink: 0; }
.w-date-btn:hover { border-color: var(--border-light); }
.w-date-btn.on { border-color: var(--accent); background: var(--accent-glow); color: var(--accent); font-weight: 600; }
.w-date-btn.closed { text-decoration: line-through; opacity: 0.45; cursor: default; }
.w-date-btn.closed:hover { border-color: var(--border); }

/* ---- Closed Message ---- */
.w-closed-msg { padding: 20px; text-align: center; color: var(--text-3); font-size: 14px; border: 1px solid var(--border); border-radius: var(--radius-xs); background: var(--surface); }

/* ---- Confirmation ---- */
.w-confirm { text-align: center; padding: 70px 28px; animation: wFadeIn 0.3s ease; }
.w-conf-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-glow); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 28px; color: var(--accent); }
.w-conf-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.3px; }
.w-conf-sub { font-size: 14px; color: var(--text-3); line-height: 1.5; margin-bottom: 28px; }
.w-conf-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; text-align: left; }
.w-conf-lbl { font-size: 11px; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.w-conf-val { font-size: 15px; font-weight: 500; }
.w-neworder { margin-top: 28px; padding: 12px 28px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: var(--font); font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition); }
.w-neworder:hover { border-color: var(--accent-dim); }

/* ---- Confirmation (2026-11-22): the brand-coloured top + the slip ----
   The top is the venue's own colour (--accent-fill, with --on-accent on it),
   the slip sits half on it so the two read as one piece. */
.w-cf { animation: wFadeIn 0.3s ease; padding-bottom: 48px; }
.w-cf-banner { background: var(--accent-fill); color: var(--on-accent); padding: calc(16px + env(safe-area-inset-top, 0px)) 22px 46px; }
.w-cf-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.w-cf-back { display: inline-flex; align-items: center; gap: 4px; min-width: 0; margin-left: -4px; padding: 6px 4px; border: none; background: none; color: inherit; font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -0.2px; cursor: pointer; }
.w-cf-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-cf-back svg { flex: none; }
.w-cf-label { flex: none; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.72; }
.w-cf-check { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 44px 0 16px; border: 1px solid color-mix(in srgb, var(--on-accent) 60%, transparent); border-radius: 50%; }
.w-cf-head { font-family: var(--font-display); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -1.2px; }
.w-cf-head span { display: block; overflow-wrap: anywhere; }
/* Another day: "tirsdag 18:00" is longer than a bare time, so it is set smaller to stay on one line. */
.w-cf-head--day { font-size: 36px; letter-spacing: -0.9px; }
.w-cf-sub { margin-top: 12px; font-size: 14px; font-weight: 500; opacity: 0.88; }
.w-cf-tag { display: inline-block; margin-top: 16px; padding: 7px 11px; border-radius: 99px; background: var(--on-accent); color: var(--accent-fill); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.w-cf-body { padding: 0 18px; }
.w-cf-slip { position: relative; margin-top: -24px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14); }
:root:is(.theme-light, .theme-warm, .theme-ocean, .theme-paper) .w-cf-slip { background: color-mix(in srgb, var(--bg) 35%, #fff); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); }
.w-cf-line { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: 14px; line-height: 1.35; }
.w-cf-line small { display: block; margin-top: 1px; color: var(--text-3); font-size: 12px; }
.w-cf-line b { flex: none; font-weight: 600; white-space: nowrap; }
.w-cf-more { padding: 4px 0 2px; color: var(--text-3); font-size: 12.5px; }
.w-cf-total { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--border-light); font-size: 16px; font-weight: 700; }
.w-cf-slip > .w-cf-total:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.w-cf-pay { display: inline-block; margin-top: 10px; padding: 5px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); font-size: 11.5px; font-weight: 600; }
.w-cf-where { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 16px; }
.w-cf-where-txt { flex: 1; min-width: 0; }
.w-cf-where-txt strong { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.w-cf-where-sub { display: block; color: var(--text-3); font-size: 12.5px; }
.w-cf-lbl { display: block; margin-bottom: 3px; color: var(--text-3); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.w-cf-go { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 11px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 700; text-decoration: none; }
.w-cf-body .w-acct-save, .w-cf-body .w-acct-saved-line { margin: 12px 0 0; }
.w-cf-body .w-acct-save { border-radius: 16px; }
.w-cf-note { margin-top: 8px; font-size: 13px; line-height: 1.4; opacity: 0.88; }
/* Accept-by-hand venues: the top is neutral while waiting, and fades into the
   brand colour on the accepted screen when the answer arrives on an open page. */
.w-cf--wait .w-cf-banner { background: var(--surface-2); color: var(--text); }
.w-cf--wait .w-cf-tag { background: var(--bg); color: var(--text-2); text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; }
.w-cf--wait .w-cf-check { border-color: var(--text-3); }
.w-cf--wait .m-wait-ring { width: 56px; height: 56px; margin: 38px 0 16px; }
.w-cf-back--plain { cursor: default; margin-left: 0; padding-left: 0; }
.w-cf--wait .w-cf-body > :first-child { position: relative; margin-top: -24px; }
.w-cf--wait .w-cf-body > .m-steps:first-child { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); }
.w-cf--wait .w-cf-body > .w-cf-slip:not(:first-child) { margin-top: 12px; box-shadow: none; }
.w-cf--wait .m-steps, .w-cf--wait .m-warn { margin-bottom: 0; border-radius: 16px; }
.w-cf--wait .m-warn + .m-steps { margin-top: 12px; }
.w-cf--wait .m-keep-open { text-align: center; margin-top: 16px; }
.w-cf--wait .m-call-link { display: block; text-align: center; }
.w-cf--flip { animation: none; }
.w-cf--flip .w-cf-banner { animation: wCfFlip 0.9s ease both; }
.w-cf--flip .w-cf-tag { animation: wFadeIn 0.9s ease both; }
@keyframes wCfFlip { from { background: var(--surface-2); color: var(--text); } to { background: var(--accent-fill); color: var(--on-accent); } }
@media (prefers-reduced-motion: reduce) { .w-cf--flip .w-cf-banner, .w-cf--flip .w-cf-tag { animation: none; } }
.w-cf-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12px; line-height: 1.7; text-align: center; }
.w-cf-foot b { color: var(--text-2); font-weight: 600; }
.w-cf-foot:empty { display: none; }

/* ---- Inline card step (Verifone's card fields inside the checkout view) ---- */
.w-card-step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.w-card-edit { border: none; background: none; padding: 0 0 8px; color: var(--accent); font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; }
/* Verifone's frame is always white, whatever the widget theme: round it off so it reads as one card. */
.w-card-frame { min-height: 150px; background: #fff; border-radius: var(--radius); overflow: hidden; }
.w-card-frame iframe { display: block; }
.w-card-decline { background: color-mix(in srgb, #d33 12%, transparent); color: #b32020; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; margin-bottom: 8px; }
.w-card-trust { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 8px; font-size: 12px; color: var(--text-3); }
.w-card-trust svg { width: 14px; height: 14px; flex: none; }

/* ---- Animations ---- */
@keyframes wFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes wSpin { to { transform: rotate(360deg); } }

/* ---- Cart Sheet (50vh half-sheet) ---- */
.w-cart-sheet {
  background: var(--bg); border-radius: 20px 20px 0 0; width: 100%; max-width: 480px;
  height: 50vh; display: flex; flex-direction: column;
  animation: wSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.w-cart-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px 12px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.w-cart-sheet-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.3px;
}
.w-cart-sheet-count { font-size: 13px; color: var(--text-3); }
.w-cart-sheet-body {
  flex: 1; overflow-y: auto; padding: 0 22px;
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
  overscroll-behavior: contain; touch-action: pan-y;
}
.w-cart-sheet-footer {
  flex-shrink: 0; padding: 14px 22px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}

/* ---- Cart Empty CTA ---- */
.w-cart-empty-cta {
  margin-top: 20px; padding: 12px 28px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-family: var(--font); font-size: 14px;
  font-weight: 500; cursor: pointer; transition: var(--transition);
}
.w-cart-empty-cta:hover { border-color: var(--accent-dim); color: var(--accent); }

/* ---- Cart Summary ---- */
.w-cart-summary { padding: 16px 0; margin-top: 8px; border-top: 1px solid var(--border); }
.w-cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); }

/* ---- Guest / Login Sheet ---- */
.w-guest-sheet {
  background: var(--bg); border-radius: 20px 20px 0 0; width: 100%; max-width: 480px;
  animation: wSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.w-guest-content { padding: 20px 22px; }
/* The guest / log in choice lives inside the cart window: fills it and fades in. */
.w-cart-sheet .w-guest-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 22px; padding-bottom: max(14px, env(safe-area-inset-bottom)); animation: wCartStepIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both; }
.w-guest-back { margin-bottom: 8px; }
/* Compact inside the cart window, so both choices are in view... */
.w-cart-sheet .w-guest-subtitle { margin-bottom: 14px; }
.w-cart-sheet .w-guest-option { padding: 12px 14px; margin-bottom: 8px; }
/* ...and on a short screen the window grows rather than hiding the second one. */
.w-cart-sheet:has(.w-guest-content) { height: auto; min-height: 50vh; max-height: 92vh; max-height: 92dvh; }
/* The choice comes in from the right, the cart comes back from the left. */
@keyframes wCartStepIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes wCartStepBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.w-cart-in-back { animation: wCartStepBack 0.28s cubic-bezier(0.16, 1, 0.3, 1) both; }
@media (prefers-reduced-motion: reduce) { .w-cart-sheet .w-guest-content, .w-cart-in-back { animation: none; } }
.w-guest-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  letter-spacing: -0.3px; margin-bottom: 4px;
}
.w-guest-subtitle { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }

.w-guest-option {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px; border-radius: var(--radius); cursor: pointer;
  font-family: var(--font); text-align: left; margin-bottom: 10px;
  transition: var(--transition); position: relative;
}
.w-guest-primary {
  background: var(--accent-glow); border: 1.5px solid var(--accent);
  color: var(--text);
}
.w-guest-primary:hover { background: var(--accent-fill); color: var(--on-accent); }
/* The small line under the title must be readable on the filled card too. */
.w-guest-primary:hover .w-guest-option-desc { color: var(--on-accent); opacity: 0.75; }
.w-guest-secondary {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text);
}
.w-guest-secondary:hover { border-color: var(--border-light); }

.w-guest-option-icon { font-size: 24px; flex-shrink: 0; width: 40px; display: flex; align-items: center; justify-content: center; }
.w-guest-option-text { flex: 1; }
.w-guest-option-title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.w-guest-option-desc { font-size: 12px; color: var(--text-3); }

.w-guest-soon {
  position: absolute; top: 12px; right: 14px;
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-4);
  background: var(--surface-2); padding: 3px 8px;
  border-radius: 4px;
}

/* ---- Form Validation ---- */
.w-input-error, .w-input.w-input-error { border-color: var(--coral); }
.w-input-error:focus { border-color: var(--coral); }
.w-form-error { font-size: 11px; color: var(--coral); margin: -4px 0 8px; font-weight: 500; }

/* ---- Checkout (restyled 2026-11-17) ----
   Everything is scoped to .w-co (the checkout container) or uses w-co-* names,
   because w-input, w-bottom, w-cta, w-slot... are shared with other screens. */
.w-view.w-co { padding-left: 16px; padding-right: 16px; }
.w-co .w-view-title { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; margin: 8px 0 14px; }

.w-co-card { background: var(--surface); border-radius: 18px; padding: 16px; margin-bottom: 12px; }
/* One box at a time: a box that just arrived slides in. */
.w-co-card.w-co-in { animation: wCoIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes wCoIn { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }
/* No "Dato" label: the days sit right under the heading. */
.w-co .w-co-card-h + .w-date-row { padding-top: 0; }
@media (prefers-reduced-motion: reduce) { .w-co-card.w-co-in { animation: none; } }
/* Light themes: the card sits a bit closer to the page colour (warm #F5F0E8 -> ~#F9F4ED).
   Browsers without color-mix keep --surface from the rule above. Dark is unchanged. */
:root:is(.theme-light, .theme-warm, .theme-ocean, .theme-paper) .w-co-card { background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }
.w-co-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.w-co-card-h h2 { font-family: var(--font); font-size: 16px; font-weight: 600; letter-spacing: -0.1px; }
.w-co-link, .w-co .w-card-edit { border: none; background: none; padding: 0; color: var(--accent); font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; }
.w-co-sub { font-size: 12.5px; font-weight: 500; color: var(--text-3); margin: 14px 0 8px; }
.w-co-card-h + .w-co-sub { margin-top: 0; }

/* Pickup / delivery */
.w-co-seg { display: flex; background: var(--surface-3); border-radius: 12px; padding: 3px; }
.w-co-seg button { flex: 1; height: 42px; border: none; border-radius: 10px; background: none; color: var(--text-2); font-family: var(--font); font-size: 15px; font-weight: 500; cursor: pointer; transition: var(--transition); }
.w-co-seg button.on { background: var(--bg); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.w-co-seg.w-input-error { box-shadow: 0 0 0 1px var(--coral); }

/* Dates + time slots: selected = solid fill */
.w-co .w-date-row { padding: 0 16px; margin: 0 -16px; }
.w-co .w-date-btn { height: 44px; padding: 0 16px; border-radius: 12px; background: none; font-size: 14px; }
.w-co .w-slots { grid-template-columns: repeat(4, 1fr); padding: 0; }
/* Slot times use the browser's normal text smoothing: the widget-wide thin
   smoothing (.w-root) makes 500 read as regular on a Mac, and 600 is too heavy. */
.w-co .w-slot { height: 44px; padding: 0; border-radius: 12px; background: none; color: var(--text); font-size: 15px; font-weight: 500; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; font-variant-numeric: tabular-nums; }
.w-co .w-date-btn.on, .w-co .w-slot.on { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); font-weight: 600; }
.w-co .w-slot.disabled { opacity: 1; color: var(--text-4); border-color: transparent; background: var(--surface-2); text-decoration: none; }
.w-co .w-slot-skeleton { height: 44px; padding: 0; border-radius: 12px; }
.w-co .w-busy-note, .w-co .w-closed-msg { background: var(--bg); border-radius: 12px; }
.w-co .w-busy-note { margin-bottom: 8px; }
.w-co .w-fully-booked { padding: 8px 0; }

/* Fields */
.w-co-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w-co-field { margin-bottom: 12px; min-width: 0; }
.w-co-card > .w-co-field:last-child { margin-bottom: 0; }
.w-co-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.w-co .w-input { height: 48px; padding: 0 14px; border-radius: 12px; background: var(--bg); margin-bottom: 0; }
.w-co .w-input:focus { box-shadow: 0 0 0 3px var(--accent-glow); }
.w-co .w-input.w-input-error { box-shadow: 0 0 0 3px var(--coral-dim); }
.w-co .w-form-error { font-size: 13px; margin: 6px 0 0; }
.w-co-sub-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; line-height: 18px; }
.w-co .w-co-sub-row .w-form-error { margin: 0; text-align: right; }
.w-co-help { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }

/* Payment rows */
.w-co-pay { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--border); background: none; color: var(--text); font-family: var(--font); text-align: left; cursor: pointer; margin-bottom: 8px; transition: var(--transition); }
.w-co-pay:last-child { margin-bottom: 0; }
.w-co-pay.on { border-color: var(--accent); background: var(--accent-glow); }
.w-co-pay-only { cursor: default; }
.w-co-pay svg { width: 22px; height: 22px; flex: none; color: var(--text-2); }
.w-co-pay.on svg { color: var(--accent); }
.w-co-pay-tx { flex: 1; min-width: 0; }
.w-co-pay-tx b { display: block; font-size: 15px; font-weight: 600; }
.w-co-pay-tx span { font-size: 12.5px; color: var(--text-3); }
.w-co-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-light); flex: none; }
.w-co-pay.on .w-co-radio { border: 6px solid var(--accent); }

/* Receipt */
.w-co-line { display: flex; gap: 10px; padding: 9px 0; font-size: 14.5px; }
.w-co-line + .w-co-line { border-top: 1px solid var(--border); }
.w-co-line-qty { color: var(--text-3); min-width: 22px; font-variant-numeric: tabular-nums; }
.w-co-line-name { flex: 1; min-width: 0; }
.w-co-line-price { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-co-warn { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--coral-dim); color: var(--coral); font-size: 13px; font-weight: 500; }

/* Card step: the details folded into a few lines */
.w-co-fold { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14.5px; }
.w-co-fold + .w-co-fold { border-top: 1px solid var(--border); }
.w-co-fold:last-child { padding-bottom: 0; }
.w-co-fold svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.w-co-fold span { min-width: 0; overflow-wrap: anywhere; }
.w-co-fold small { display: block; font-size: 12.5px; color: var(--text-3); }
.w-co .w-card-frame { border-radius: 12px; }
.w-co .w-card-decline { border-radius: 12px; margin-bottom: 10px; }
.w-co .w-card-trust { padding-top: 12px; font-size: 12.5px; }

/* The order and the button, at the bottom of the payment box (and of the card
   box while the card step is open). Heading, "Ret" and the total are always
   there; only the item lines fold away. */
.w-co-order { display: flex; flex-direction: column; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.w-co-order .w-co-card-h { margin: 0; }
.w-co-sum-toggle { align-self: flex-start; display: flex; align-items: center; gap: 8px; margin: 2px 0 0 -6px; padding: 4px 6px; border: none; background: none; color: var(--text-3); font-family: var(--font); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.w-co-sum-chev { width: 20px; height: 20px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); transform: rotate(180deg); transition: transform 0.2s ease; }
.w-co-order.open .w-co-sum-chev { transform: none; }
.w-co-sum-lines { display: none; }
.w-co-order.open .w-co-sum-lines { display: block; animation: wFadeIn 0.18s ease; }
.w-co-sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 0 14px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 15px; font-weight: 600; }
.w-co-sum-row b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-co-order .w-co-warn { margin: 8px 0 0; }
/* The button. "floating" = fixed to the bottom of the screen; without it the
   button rests in the empty place at the bottom of the last box (.w-co-slot).
   checkout.js switches the class when the page is scrolled so the two meet.
   .w-co-floatline is an unseen marker of where the floating button sits. */
.w-co-slot { height: 52px; }
.w-co-floatline { position: fixed; left: 0; width: 1px; height: 52px; bottom: max(14px, env(safe-area-inset-bottom)); visibility: hidden; pointer-events: none; }
.w-co-dock { position: relative; z-index: 150; height: 52px; margin: -80px 16px 28px; }
.w-co-dock.floating { position: fixed; bottom: max(14px, env(safe-area-inset-bottom)); left: 0; right: 0; width: 100%; max-width: 480px; margin: 0 auto; padding: 0 32px; }
.w-co-dock::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: -22px; bottom: calc(-1 * max(14px, env(safe-area-inset-bottom))); background: linear-gradient(to bottom, transparent, var(--bg) 22px); pointer-events: none; opacity: 0; transition: opacity 0.18s ease; }
.w-co-dock.floating::before { opacity: 1; }
.w-co-dock .w-cta { width: 100%; height: 52px; padding: 0 14px; border-radius: 14px; font-size: 16px; }
.w-co-warn-top { margin: 0 0 12px; }

.w-cta.submitting { opacity: 0.7; pointer-events: none; }

/* ---- Toast Notification ---- */
.w-toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
  max-width: 400px; padding: 12px 24px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 14px; font-weight: 500;
  z-index: 300; opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.w-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.w-toast-success { background: var(--accent-fill); color: var(--on-accent); }
.w-toast-error { background: var(--coral); color: white; }

/* ---- Paper Menu (Menu-Only Mode) ---- */
.w-paper-menu {
  padding: 8px 28px 100px;
}
.w-paper-section {
  margin-bottom: 12px;
}
.w-paper-cat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 0 16px;
}
.w-paper-cat-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.w-paper-cat-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.w-paper-item {
  padding: 10px 0;
  cursor: pointer;
  transition: var(--transition);
}
.w-paper-item:hover { opacity: 0.7; }
.w-paper-menu--view-only .w-paper-item {
  cursor: default;
}
.w-paper-menu--view-only .w-paper-item:hover { opacity: 1; }
.w-paper-item.sold-out { opacity: 0.3; pointer-events: none; }
.w-paper-item-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.w-paper-item-name {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.w-paper-num {
  color: var(--text-3);
  font-weight: 400;
}
.w-paper-dots {
  flex: 1;
  min-width: 20px;
  border-bottom: 1px dotted var(--text-4);
  margin-bottom: 4px;
}
.w-paper-item-price {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.w-paper-item-desc {
  font-size: 12.5px;
  color: var(--text-3);
  font-style: italic;
  line-height: 1.4;
  padding: 3px 0 0;
}
/* Opt-in item thumbnails (paperShowImages). Only rows with a photo get the
   flex layout; photo-less rows keep the plain typographic look. */
.w-paper-item--img {
  display: flex;
  align-items: center;
  gap: 12px;
}
.w-paper-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-2);
}
.w-paper-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.w-paper-item-body {
  flex: 1;
  min-width: 0;
}
.w-paper-sold {
  font-size: 10px;
  font-weight: 700;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ---- Combos ---- */
.w-combo-badge { display: inline-block; background: var(--accent-fill); color: var(--on-accent); font-size: 9px; font-weight: 800; letter-spacing: 0.6px; padding: 2px 6px; border-radius: 4px; vertical-align: middle; margin-left: 6px; }
.w-combo-desc { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.w-combo-group { padding: 14px 0; border-bottom: 1px solid var(--border); }
.w-combo-group:last-of-type { border-bottom: none; }
.w-combo-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.w-combo-group-label { font-size: 14px; font-weight: 600; color: var(--text); }
.w-combo-group-range { font-size: 11px; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap; }
.w-combo-group.incomplete .w-combo-group-range { color: var(--coral); }
.w-combo-fixed-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 14px; color: var(--text-2); }
.w-combo-check { color: var(--accent); font-size: 12px; }
.w-combo-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; transition: var(--transition); }
.w-combo-opt:last-child { margin-bottom: 0; }
.w-combo-opt.selected { border-color: var(--accent); background: var(--surface-3); }
.w-combo-opt.unavailable { opacity: 0.45; cursor: default; justify-content: space-between; }
.w-combo-opt-name { flex: 1; font-size: 14px; color: var(--text); }
.w-combo-radio { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--accent); flex-shrink: 0; }
.w-combo-opt.selected .w-combo-radio { border-color: var(--accent); }
.w-combo-delta { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.w-combo-stepper { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.w-combo-stepper .w-qty-btn { width: 30px; height: 30px; font-size: 15px; }
.w-combo-stepper .w-qty-btn:disabled { opacity: 0.3; cursor: default; }
.w-combo-count { min-width: 18px; text-align: center; font-size: 14px; font-weight: 600; color: var(--text); }
.w-combo-customise { background: none; border: 1px solid var(--border-light); color: var(--text-2); font-size: 11px; font-family: var(--font); padding: 4px 9px; border-radius: 999px; cursor: pointer; flex-shrink: 0; transition: var(--transition); }
.w-combo-customise:hover { border-color: var(--accent); color: var(--accent); }
.w-combo-config { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---- Wide layout (laptops / big tablets): two-column menu ---- */
/* Only the menu view widens; cart/checkout stay a focused 480px column.
   Items flow top-to-bottom then over (multicol), like a real two-page menu. */
@media (min-width: 900px) {
  .w-root[data-view="menu"] { max-width: 920px; }
  .w-root[data-view="menu"] .w-header { max-width: 920px; }
  .w-root[data-view="menu"] .w-notice-banner { max-width: 896px; }
  .w-root[data-view="menu"] .w-hero { height: 280px; }
  .w-root[data-view="menu"] .w-hero-name { font-size: 32px; }

  .w-section { padding-left: 24px; padding-right: 24px; }
  .w-items { column-count: 2; column-gap: 14px; }
  .w-item { break-inside: avoid; }
  .w-tiles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }

  .w-paper-menu { padding-left: 48px; padding-right: 48px; }
  .w-paper-items {
    column-count: 2; column-gap: 64px;
    column-rule: 1px solid var(--border);
  }
  .w-paper-item { break-inside: avoid; }
}

/* ---- Manual intake (Order Desk): checkout hint + waiting / accepted / rejected ---- */
/* From the signed-off board testing/Widget_ManualIntake_Mockup_2026-10-03.html.
   Titles and the big time are DM Sans 700 (var(--font)), not the display serif. */
.m-time-hint { font-size: 12.5px; color: var(--text-3); margin-top: 8px; line-height: 1.45; }

.m-status { text-align: center; padding: 44px 20px 32px; }
.m-wait-ring { position: relative; width: 72px; height: 72px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.m-wait-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: wSpin 1.1s linear infinite; }
.m-wait-ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--accent-glow); animation: mPulse 2s ease-in-out infinite; }
.m-wait-ring svg { position: relative; z-index: 1; }
@keyframes mPulse { 0%,100% { transform: scale(.88); opacity: .6; } 50% { transform: scale(1); opacity: 1; } }

.m-title { font-family: var(--font); font-size: 26px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 6px; }
.m-sub { font-size: 14px; color: var(--text-3); line-height: 1.5; margin-bottom: 20px; }
.m-elapsed { font-size: 12.5px; color: var(--text-4); margin: -12px 0 20px; }

.m-steps { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 16px; margin-bottom: 10px; text-align: left; }
.m-step { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; color: var(--text-3); }
.m-step + .m-step { border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }
.m-step.done { color: var(--text-2); }
.m-step.active { color: var(--text); font-weight: 600; }
.m-step.wish { color: var(--text-2); }
.m-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--text-4); flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.m-step.done .m-dot { border-color: var(--accent-fill); background: var(--accent-fill); color: var(--on-accent); }
.m-step.active .m-dot { border-color: var(--accent); }
.m-step.active .m-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: mPulse 1.2s ease-in-out infinite; }
.m-step-time { margin-left: auto; font-size: 12px; color: var(--text-4); font-weight: 400; }
.m-step-val { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--text); }
.m-step-val.on { color: var(--accent); font-size: 16px; }

.m-keep-open { font-size: 12.5px; color: var(--text-3); line-height: 1.5; margin: 14px 4px 0; }
.m-call-link { display: inline-block; margin-top: 16px; color: var(--accent); font-size: 13.5px; font-weight: 600; text-decoration: none; }

.m-warn { text-align: left; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; background: color-mix(in srgb, #F59E0B 14%, var(--bg)); border: 1px solid color-mix(in srgb, #F59E0B 55%, transparent); }
.m-warn-title { font-weight: 700; font-size: 14.5px; margin-bottom: 3px; }
.m-warn-text { font-size: 13px; color: var(--text-2); line-height: 1.45; margin-bottom: 12px; }
.m-call-btn { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-sizing: border-box; }

.m-icon-no { background: var(--coral-dim) !important; border-color: var(--coral) !important; color: var(--coral) !important; }

.m-time-card { background: var(--accent-glow); border: 1.5px solid var(--accent); border-radius: var(--radius); padding: 16px 16px 14px; margin-bottom: 10px; }
.m-time-lbl { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); }
.m-time-big { font-family: var(--font); font-size: 52px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.05; letter-spacing: -1.5px; color: var(--text); margin: 4px 0 2px; }
.m-time-in { font-size: 13.5px; color: var(--text-2); }
.m-time-diff { font-size: 12.5px; color: var(--text-3); margin-top: 10px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }

.m-reason-quote { font-size: 15px; font-style: italic; color: var(--text); line-height: 1.45; }
.m-actions { display: flex; flex-direction: column; gap: 8px; }
.m-secondary { width: 100%; padding: 13px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: var(--font); font-size: 14px; font-weight: 500; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; cursor: pointer; }

/* ---- Customer accounts (slice 1, preview-gated) ----
   Everything here is only rendered when venue-gate.accountsEnabled() is true,
   so a venue without the flag gets no DOM and no style from this block. */
.w-acct-btn {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
  cursor: pointer; padding: 0; font-family: var(--font); transition: var(--transition);
}
.w-acct-btn:hover { border-color: var(--accent-dim); color: var(--text); }
.w-acct-btn.on {
  background: var(--accent-glow); border: 1.5px solid var(--accent); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
}
.w-acct-btn svg { width: 18px; height: 18px; }
/* Header row: with four controls the venue name must give way, not wrap */
.w-header-row.has-acct .w-rname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; margin-right: 8px; }
/* Hero: the account button, top right */
.w-hero-actions { position: absolute; top: 14px; right: 14px; z-index: 5; display: flex; align-items: center; gap: 8px; }
.w-hero-actions .w-acct-btn {
  width: 38px; height: 38px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-color: color-mix(in srgb, var(--border) 70%, transparent); color: var(--text);
}
.w-hero-actions .w-acct-btn.on { border-color: var(--accent); color: var(--accent); }

/* Auth sheet (login / signup / welcome back / reset) */
.w-acct-form { display: block; }
.w-acct-lbl { font-size: 12px; color: var(--text-3); margin: 2px 0 6px; }
.w-acct-lbl span { color: var(--text-4); }
.w-acct-form .w-input { margin-bottom: 10px; }
.w-acct-form .w-form-error { margin: -6px 0 10px; }
.w-input.w-acct-ro { color: var(--text-2); background: var(--surface); }
.w-acct-right { text-align: right; margin: -4px 0 14px; }
.w-acct-link { background: none; border: none; padding: 0; color: var(--accent); font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; }
.w-acct-link:hover { text-decoration: underline; }
.w-acct-switch { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 16px; }
.w-acct-switch .w-acct-link { margin-left: 4px; }
.w-acct-fine { font-size: 12px; color: var(--text-4); line-height: 1.45; margin: -4px 0 10px; }
.w-acct-top-err { font-size: 12.5px; color: var(--coral); margin: -2px 0 12px; }
.w-acct-ok { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-glow); border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px; font-size: 13.5px; color: var(--text); line-height: 1.45; margin-top: 6px; }
.w-acct-ok svg { flex-shrink: 0; color: var(--accent); }

/* Checkout: prefilled-from-account line */
.w-acct-prefill { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); margin: -2px 0 10px; }
.w-acct-prefill b { color: var(--text-2); font-weight: 600; }
.w-acct-prefill .w-acct-btn { width: 20px; height: 20px; font-size: 8px; cursor: default; }

/* Account page */
.w-acct-prof { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.w-acct-prof .w-acct-btn { width: 48px; height: 48px; font-size: 16px; cursor: default; }
.w-acct-prof-name { font-size: 16px; font-weight: 600; }
.w-acct-prof-sub { font-size: 12.5px; color: var(--text-3); }
.w-acct-sec-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; }
.w-acct-sec-head .w-form-label { margin: 0; }
.w-acct-rows { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2px 14px; }
.w-acct-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 13.5px; }
.w-acct-row + .w-acct-row { border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }
.w-acct-row span:first-child { color: var(--text-3); flex-shrink: 0; }
.w-acct-row span:last-child { color: var(--text); text-align: right; word-break: break-word; }
.w-acct-row .w-acct-muted { color: var(--text-4) !important; }
.w-acct-edit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.w-acct-edit-actions { display: flex; gap: 8px; margin-top: 4px; }
.w-acct-edit-actions .w-cta { flex: 1; padding: 12px; font-size: 14px; }
.w-acct-edit-actions .w-neworder { flex: 1; margin: 0; padding: 12px; }
.w-acct-soon { font-size: 13px; color: var(--text-4); padding: 14px; text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }

/* Save-this-order card (confirmation + Order Desk waiting/accepted screens) */
.w-acct-save { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 4px 0 10px; text-align: left; }
.w-acct-save-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.w-acct-save-sub { font-size: 13px; color: var(--text-3); line-height: 1.45; margin-bottom: 12px; }
.w-acct-save-cta { width: 100%; margin: 0; }
.w-acct-save .w-acct-switch { margin-top: 10px; text-align: center; font-size: 13px; color: var(--text-3); }
/* The one-field save card: password + Gem on one row. */
.w-acct-quick-row { display: flex; gap: 8px; align-items: stretch; }
.w-acct-quick-row .w-input { flex: 1; min-width: 0; margin: 0; }
.w-acct-quick-row .w-cta { width: auto; flex: none; padding: 0 20px; }
.w-acct-quick .w-form-error { margin: 6px 0 0; }
.w-acct-quick-note { margin-top: 9px; font-size: 12px; color: var(--text-3); overflow-wrap: anywhere; }
.w-acct-saved-line { font-size: 13px; color: var(--text-3); line-height: 1.45; margin: 2px 0 10px; text-align: left; }
.m-status .w-acct-save { margin-top: 14px; }
.w-acct-foot { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.w-acct-foot button { background: none; border: none; text-align: left; padding: 8px 0; font-family: var(--font); font-size: 14px; color: var(--text-2); cursor: pointer; }
.w-acct-foot button:hover { color: var(--text); }
/* Slice 8: "Slet konto" - quiet in the foot, red only in the confirm sheet */
.w-acct-foot .w-acct-del { font-size: 13px; color: var(--text-3); }
.w-acct-foot .w-acct-del:hover { color: var(--coral); }
.w-acct-del-warn { font-size: 13px; line-height: 1.45; color: var(--text); margin: -4px 0 14px; }
.w-cta-danger { background: var(--coral); color: #fff; }

/* ---- Customer accounts slice 5: order history + active-order card ---- */
/* Ported from testing/Widget_Accounts_Mockup_2026-10-16.html sections 5 + 6
   (.a-ord, .a-pill, .a-mcard.live) with the w- prefix. */
.w-acct-orders-loading { font-size: 13px; color: var(--text-3); padding: 14px; text-align: center; }
.w-ord { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.w-ord-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.w-ord-code { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.w-ord-meta { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.w-ord-items { font-size: 13px; color: var(--text-2); line-height: 1.45; margin-bottom: 10px; word-break: break-word; }
.w-ord-foot { display: flex; justify-content: space-between; align-items: center; }
.w-ord-total { font-size: 14px; font-weight: 600; }
/* Status pills: quiet grey by default; only states that need attention get a solid colour */
.w-pill { flex-shrink: 0; font-size: 11px; font-weight: 600; letter-spacing: .2px; border-radius: 6px; padding: 4px 9px; background: var(--surface-3); color: var(--text-2); }
.w-pill.ok { background: var(--surface-3); color: var(--text-2); }
.w-pill.live { background: var(--add-green); color: var(--bg); }
.w-pill.warn { background: #F59E0B; color: #1F1300; }
.w-pill.no { background: var(--coral); color: #fff; }

/* Board 6a: the whole card is one button; 16px side gutters at phone width */
.w-active-order {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 12px 16px 0;
  padding: 12px 14px; border-radius: var(--radius); cursor: pointer; text-align: left;
  font-family: var(--font); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--add-green) 55%, transparent); background: var(--add-green-dim);
}
.w-active-order-ico { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--add-green); color: var(--bg); }
.w-active-order-txt { flex: 1; min-width: 0; display: block; }
.w-active-order-t { display: block; font-size: 13.5px; font-weight: 600; }
.w-active-order-s { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-active-order-act { font-size: 12.5px; font-weight: 600; color: var(--accent); flex-shrink: 0; }

/* ---- Customer accounts slice 6: Bestil igen + Det sædvanlige? ---- */
/* Board 5a .a-ord-btn and 6b .a-mcard (the quiet, not-live variant) */
.w-ord-btn { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 12px; font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.w-active-order.w-last-order { border-color: var(--border); background: var(--surface); }
.w-last-order .w-active-order-ico { background: var(--surface-2); color: var(--text-2); }
/* A toast with two sentences: fixed width so it doesn't shrink to half the screen */
.w-toast.w-toast-wide { width: min(400px, calc(100vw - 32px)); box-sizing: border-box; text-align: center; padding: 12px 16px; line-height: 1.45; }

/* ---- Sections bar (Menu / Book bord / Events) and the pinned top row ----
   Rendered only for a venue with two or more sections, or inside the order window that
   embed.js opens for one (?embed=1). It never moves: the photo scrolls away
   under it and the slide-in header comes in below it (opaque and above the
   header, so the hidden header never shows through). Its height is --top-h. */
.w-secbar {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 110;
  background: var(--bg);
}
.w-secbar--bar { padding: 10px 16px; }
/* The order window draws its pull-down handle over the top 28px on phones */
.w-grip .w-secbar { padding-top: 30px; }
.w-secbar-spacer { height: var(--top-h, 0px); }
/* Segmented, the build of the tested prototype (testing/widget-sections-prototype) */
.w-sec-nav { display: flex; max-width: 440px; margin: 0 auto; background: var(--surface-3); border-radius: 12px; padding: 3px; }
.w-sec-nav button {
  flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 10px; background: none; color: var(--text-2);
  font-family: var(--font); font-size: 14px; font-weight: 500; white-space: nowrap;
  cursor: pointer; transition: var(--transition); -webkit-tap-highlight-color: transparent;
}
.w-sec-nav button span { overflow: hidden; text-overflow: ellipsis; }
.w-sec-nav button svg { width: 16px; height: 16px; flex: none; }
.w-sec-nav button.on { background: var(--bg); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
@media (max-width: 379px) { .w-sec-nav button svg { display: none; } }
/* Screens with their own brand-coloured top (confirmation, Order Desk waiting /
   accepted) have no top row: the colour reaches under the handle instead. */
.w-grip .w-cf-banner { padding-top: calc(46px + env(safe-area-inset-top, 0px)); }
/* Book bord: the guest's form and its confirmation (views/booking.js). The box
   also carries .w-co, so the checkout's cards, fields, times and button look
   the same here; only the calendar and a few spacings are new. */
.w-bk { padding: 12px 16px 40px; }
.w-bk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Guests: heading and stepper on one row */
.w-bk-party-h { align-items: center; margin-bottom: 0; }
.w-bk .w-qty { flex: none; background: var(--bg); border-radius: 12px; }
.w-bk .w-qty-btn { width: 44px; height: 44px; font-size: 20px; }
.w-bk .w-qty-val { width: 36px; font-size: 17px; font-variant-numeric: tabular-nums; }
.w-bk-above { margin-top: 10px; line-height: 1.4; }
.w-bk-tel { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
/* Day: a month calendar, Monday first */
.w-bk-cal-h { align-items: center; }
.w-bk-month { display: flex; align-items: center; gap: 4px; min-width: 0; }
.w-bk-month-t { min-width: 0; font-size: 14px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-bk-nav { flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 10px; background: none; color: var(--text); cursor: pointer; transition: var(--transition); }
.w-bk-nav:hover { background: var(--surface-2); }
.w-bk-nav:disabled { opacity: 0.25; cursor: default; background: none; }
.w-bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.w-bk-wd { padding: 2px 0 6px; text-align: center; color: var(--text-3); font-size: 11.5px; font-weight: 600; }
.w-bk-day {
  height: 40px; padding: 0; border: none; border-radius: 10px; background: none; color: var(--text);
  font-family: var(--font); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; cursor: pointer; transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.w-bk-day:hover { background: var(--surface-2); }
.w-bk-day.on { background: var(--accent-fill); color: var(--on-accent); font-weight: 600; }
.w-bk-day:disabled { color: var(--text-4); background: none; cursor: default; }
.w-bk-day.closed:disabled { text-decoration: line-through; }
.w-bk-cal--wait .w-bk-grid { opacity: 0.5; }
/* Time: a full time stays in the row, struck through */
.w-bk .w-slot.disabled { text-decoration: line-through; }
.w-bk .w-slots + .w-closed-msg { margin-top: 10px; }
.w-bk .w-closed-msg { line-height: 1.45; }
.w-bk-fail { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.w-bk-fail .w-bk-retry { margin-top: 10px; }
/* Details: the note box sits like the inputs */
.w-bk .w-notes-area { display: block; min-height: 84px; margin-top: 0; border-radius: 12px; background: var(--bg); font-size: 16px; }
.w-bk .w-notes-area:focus { box-shadow: 0 0 0 3px var(--accent-glow); }
.w-bk .w-notes-area.w-input-error { border-color: var(--coral); }
.w-bk .w-co-field:last-child { margin-bottom: 0; }
/* The end: error line, button, summary */
.w-bk-end { padding: 4px 0 0; }
.w-bk-err { margin: 0 0 12px; line-height: 1.4; }
.w-bk-err:empty { display: none; }
.w-bk-err .w-bk-tel { color: inherit; text-decoration: underline; }
.w-bk .w-cta { height: 52px; padding: 0 14px; border-radius: 14px; font-size: 16px; }
.w-bk-sum { margin-top: 10px; color: var(--text-2); font-size: 13px; line-height: 1.45; text-align: center; }
.w-bk-sum:empty { display: none; }
/* After booking: the order confirmation's pieces, as a card in the column */
.w-bk-cf { padding-bottom: 0; }
.w-bk-cf .w-cf-banner { padding: 18px 20px 44px; border-radius: 18px; }
.w-bk-cf .w-cf-check { margin: 0 0 14px; }
.w-bk-cf .w-cf-head:focus { outline: none; }
.w-bk-cf .w-cf-line span { flex: none; color: var(--text-3); }
.w-bk-cf .w-cf-line b { flex: 0 1 auto; min-width: 0; white-space: normal; text-align: right; overflow-wrap: anywhere; }
.w-bk-cf .w-bk-until { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--border-light); color: var(--text-2); font-size: 13.5px; }
.w-bk-cf .w-cf-where > .w-cf-go:only-child { margin-left: auto; }
.w-bk-change { font-size: 13px; }
.w-bk-change .w-bk-tel { color: var(--text-2); }
.w-bk-again { text-align: center; }
.w-bk-again .w-neworder { margin-top: 18px; }
/* Slice 5: where the mail went, the cancel link, and "Jeres booking". */
.w-bk-sent { margin-top: 14px; color: var(--text-2); font-size: 13.5px; line-height: 1.45; text-align: center; overflow-wrap: anywhere; }
.w-bk-sent b { color: var(--text); font-weight: 600; }
.w-bk-cancel { display: block; width: max-content; margin: 8px auto 0; color: var(--text-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.w-bk-mg-h { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; }
.w-bk-mg-h:focus { outline: none; }
.w-bk-mg-when { margin-top: 4px; color: var(--text-2); font-size: 14px; }
.w-bk-mg-lines { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.w-bk-mg-lines .w-cf-line span { flex: none; color: var(--text-3); }
.w-bk-mg-lines .w-cf-line b { flex: 0 1 auto; min-width: 0; white-space: normal; text-align: right; overflow-wrap: anywhere; }
.w-bk-mg-lines--off { opacity: 0.55; }
.w-bk-mg-until { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--border-light); color: var(--text-2); font-size: 13.5px; }
.w-bk-mg-msg { margin-top: 16px; font-size: 15px; font-weight: 500; line-height: 1.45; }
.w-bk-mg-msg--alone { margin-top: 10px; }
.w-bk-mg-acts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.w-bk-mg-acts .w-neworder { margin-top: 0; width: 100%; }
/* Events: a list of cards under the name row, and a detail sheet
   (views/events.js). Theme variables only, so every theme and brand colour
   works. */
.w-events { padding: 12px 16px 40px; }
.w-events-list { display: flex; flex-direction: column; gap: 10px; }
.w-events-note {
  margin: 16px 0; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; font-size: 15px; line-height: 1.45; color: var(--text-2);
}
.w-events-spin {
  width: 22px; height: 22px; border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: wSpin 0.8s linear infinite;
}
.w-events-note .w-events-retry { margin-top: 4px; }
.w-event {
  display: flex; align-items: stretch; gap: 14px; width: 100%; padding: 12px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: var(--font); cursor: pointer; transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.w-event:hover { border-color: var(--border-light); background: var(--surface-2); }
.w-event:active { transform: scale(0.985); }
.w-event-art {
  position: relative; flex: none; width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--accent-glow); display: flex; align-items: center; justify-content: center;
}
.w-event-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.w-event-emoji { font-size: 38px; line-height: 1; }
.w-event-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.w-event-when { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.w-event-title {
  font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.w-event-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.w-event-cat {
  max-width: 100%; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2);
  font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w-event-off {
  padding: 2px 8px; border-radius: 999px; background: var(--coral-dim); color: var(--coral);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
/* A cancelled event stays in the list, faded, with its "Aflyst" mark */
.w-event--off .w-event-art, .w-event--off .w-event-when, .w-event--off .w-event-title { opacity: 0.55; }
/* The sheet is as tall as its text, up to the item sheet's height */
.w-sheet.w-sheet--event { height: auto; max-height: 92vh; max-height: 92dvh; }
.w-sheet--event:focus { outline: none; }
.w-ev-sh-top { padding-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.w-ev-sh-emoji-slot:empty { display: none; }
.w-ev-sh-emoji { display: block; font-size: 56px; line-height: 1; }
.w-ev-sh-when { font-size: 14px; font-weight: 600; color: var(--accent); }
.w-ev-sh-desc { padding-top: 16px; font-size: 15px; line-height: 1.55; color: var(--text-2); overflow-wrap: anywhere; }
.w-ev-link {
  display: flex; align-items: center; justify-content: center; margin-top: 20px; height: 48px; border-radius: 16px;
  background: var(--accent-fill); color: var(--on-accent); font-family: var(--font); font-size: 15px; font-weight: 600;
  text-decoration: none; transition: var(--transition);
}
.w-ev-link:hover { filter: brightness(0.9); }
.w-ev-sh-end { height: 24px; height: max(24px, calc(10px + env(safe-area-inset-bottom))); }
/* The sheet's sign-up footer: places left, Tilmeld (then the name field),
   "Du er tilmeldt" with a quiet Afmeld, the notes for no sign-up and
   cancelled, the error line, and Læg i kalender / Del side by side */
.w-ev-foot { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.w-ev-foot [hidden] { display: none; }
.w-ev-places { font-size: 14px; font-weight: 600; color: var(--text-2); }
.w-ev-places--full { color: var(--coral); }
.w-ev-signup { display: flex; flex-direction: column; gap: 10px; }
.w-ev-cta { height: 48px; padding: 0 14px; border-radius: 16px; }
.w-ev-form .w-input { margin-bottom: 0; }
.w-ev-form .w-input:focus { box-shadow: 0 0 0 3px var(--accent-glow); }
.w-ev-form .w-input.w-input-error { box-shadow: 0 0 0 3px var(--coral-dim); }
.w-ev-form .w-co-help { margin: 6px 0 12px; }
.w-ev-note { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.w-ev-joined {
  display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--accent-glow); color: var(--accent); font-size: 15px; font-weight: 600;
}
.w-ev-joined:focus { outline: none; }
.w-ev-joined svg { flex: none; }
.w-neworder.w-ev-leave { align-self: flex-start; margin: 0; padding: 10px 18px; }
.w-ev-leave:disabled, .w-ev-leave.submitting { opacity: 0.7; pointer-events: none; }
.w-ev-err { margin-top: 0; }
.w-ev-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.w-ev-act {
  flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-family: var(--font); font-size: 14px; font-weight: 600; text-decoration: none;
  white-space: nowrap; cursor: pointer; transition: var(--transition);
}
.w-ev-act:hover { border-color: var(--accent-dim); }
.w-ev-act svg { flex: none; }
/* "Tilmeldt" on the card of an event this phone signed up to */
.w-event-mine {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-glow); color: var(--accent); font-size: 11px; font-weight: 700;
}
.w-event-mine svg { width: 12px; height: 12px; }
/* Wide screens: the row follows the menu's width; Book bord and Events stay a 480px column */
@media (min-width: 900px) {
  .w-root[data-view="menu"] .w-secbar { max-width: 920px; }
  .w-root[data-view="menu"][data-section="book"],
  .w-root[data-view="menu"][data-section="book"] .w-header,
  .w-root[data-view="menu"][data-section="book"] .w-secbar,
  .w-root[data-view="menu"][data-section="events"],
  .w-root[data-view="menu"][data-section="events"] .w-header,
  .w-root[data-view="menu"][data-section="events"] .w-secbar { max-width: 480px; }
}
