/* Livelo #2 Configurator — UI kit styles
 * Design tokens (colors_and_type.css) and DM Sans are loaded via <link> in each
 * entry page (index.html, ar.html, ui_kits/configurator/index.html) — a CSS
 * @import here would serialize a render-blocking fetch after this file downloads.
 */

* { box-sizing: border-box; }

html, body, #root { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
button { font-family: inherit; }

/* ── App shell ───────────────────────────────────────── */

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 88px; /* leave room for fixed bottom bar */
}

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

.livelo-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 84px;
  padding: 0 2vw;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.wordmark {
  /* logo image: reset text-based token from colors_and_type */
  grid-column: 2;
  justify-self: center;
  display: block;
  width: max-content;
  line-height: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0;
}
.wordmark-img {
  display: block;
  height: 74px;
  width: auto;
  max-width: none;
  object-fit: contain;
}
.nav-link {
  grid-column: 3;
  justify-self: end;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.nav-link--balance {
  grid-column: 1;
  justify-self: start;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

/* ── Main grid ───────────────────────────────────────── */

.main-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 62fr 38fr;
  gap: 0;
  min-height: 0;
}

.viewer-col {
  padding: 32px 32px 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  flex: 1;
}
.panel-col {
  padding: 32px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/* ── Hero / viewer ───────────────────────────────────── */

.hero { display: flex; flex-direction: column; gap: 20px; flex: 1; min-height: 0; }
.hero-titles { display: flex; flex-direction: column; gap: 6px; }
.hero-h1 {
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 28.125px;
  font-weight: 700;
  color: #000000;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.hero-sub {
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #C4C4C4;
  margin-top: 4px;
}

.bike-viewer {
  flex: 1;
  height: 0;          /* forces a real computed pixel height in flex */
  min-height: 380px;
  background: #ffffff;
  position: relative;
}
.bike-viewer--fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1100;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  max-height: none;
  aspect-ratio: auto;
  background: #F2F2F2;
  padding:
    env(safe-area-inset-top, 0)
    env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
}
.bike-viewer--fullscreen charpstar-container,
.bike-viewer--fullscreen [id^="threeDViewer"] {
  background: #F2F2F2 !important;
}

/* Native browser fullscreen (hides Safari/Chrome chrome like YouTube) */
.bike-viewer:fullscreen,
.bike-viewer:-webkit-full-screen,
[id^="threeDViewer"]:fullscreen,
[id^="threeDViewer"]:-webkit-full-screen {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: #F2F2F2 !important;
}

html.viewer-fullscreen-active,
html.viewer-fullscreen-active body {
  overflow: hidden;
}
html.viewer-fullscreen-active .bottom-bar {
  display: none;
}
html.viewer-fullscreen-active .app-shell {
  padding-bottom: 0;
}

/* Hide app chrome during mobile fullscreen */
html.viewer-fullscreen-active .livelo-header,
html.viewer-fullscreen-active .tabs-wrap-mobile,
html.viewer-fullscreen-active .panel-col,
html.viewer-fullscreen-active .bottom-bar {
  display: none !important;
}

/* Small hint when native FS unavailable and phone is still portrait */
.viewer-rotate-hint {
  position: absolute;
  left: 50%;
  bottom: max(56px, calc(env(safe-area-inset-bottom, 0px) + 56px));
  transform: translateX(-50%);
  z-index: 25;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
}

/* Landscape mobile fullscreen: edge-to-edge */
html.viewer-fullscreen-active.viewer-fullscreen-mobile.viewer-fullscreen-landscape .bike-viewer--fullscreen {
  padding: 0;
}
html.viewer-fullscreen-active.viewer-fullscreen-mobile .viewer-fullscreen-btn {
  z-index: 40;
}
html.viewer-fullscreen-active.viewer-fullscreen-mobile.viewer-fullscreen-landscape .viewer-ar-btn,
html.viewer-fullscreen-active.viewer-fullscreen-mobile.viewer-fullscreen-landscape .viewer-fullscreen-btn,
html.viewer-fullscreen-active.viewer-fullscreen-mobile.viewer-fullscreen-landscape .livelo-toolbar {
  z-index: 40;
}
html.viewer-fullscreen-active.viewer-fullscreen-mobile.viewer-fullscreen-landscape .viewer-ar-btn,
html.viewer-fullscreen-active.viewer-fullscreen-mobile.viewer-fullscreen-landscape .livelo-toolbar {
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
}
html.viewer-fullscreen-active.viewer-fullscreen-mobile.viewer-fullscreen-landscape .viewer-fullscreen-btn {
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
}

.viewer-ar-btn,
.viewer-fullscreen-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 12px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s, border-color 0.15s;
  z-index: 10;
}
.viewer-ar-btn {
  left: 12px;
  min-width: 48px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.viewer-fullscreen-btn {
  right: 12px;
  width: 36px;
}
.viewer-ar-btn:hover,
.viewer-fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.45);
}

.bike-viewer-note {
  font-size: 11px;
  color: var(--muted-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── 3D viewer animation toolbar ─────────────────────── */
/* Built dynamically by livelo-animations.js. Active state is pure CSS so
 * it stays correct across orientation changes and viewport resizes. */

.livelo-toolbar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: stretch;
  padding: 4px;
  gap: 2px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  max-width: calc(100% - 120px);
}
.livelo-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  min-height: 36px;
  background: transparent;
  border: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, opacity 0.15s ease;
}
.livelo-toolbar button .livelo-toolbar-mobile-label {
  display: none;
}
.livelo-toolbar button svg {
  flex: none;
  opacity: 0.9;
}
.livelo-toolbar button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.livelo-toolbar button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}
.livelo-toolbar button.active {
  background-color: #45DB83;
  color: #0a0a0a;
}
.livelo-toolbar button.active svg {
  opacity: 1;
}
.livelo-toolbar.disabled button {
  opacity: 0.5;
  pointer-events: none;
}
.livelo-light-select:disabled {
  opacity: 0.5;
  cursor: default;
}
.livelo-light-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 6px;
  margin-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.livelo-light-label {
  opacity: 0.85;
}
.livelo-light-select {
  min-height: 30px;
  max-width: 104px;
  padding: 0 24px 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.livelo-light-select option {
  color: #111;
  background: #fff;
}
@media (max-width: 600px), (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  .livelo-toolbar {
    max-width: calc(100% - 24px);
  }
  .livelo-toolbar button {
    flex-direction: column;
    gap: 3px;
    padding: 6px 12px;
    font-size: 10px;
    line-height: 1.1;
    min-height: 44px;
  }
  .livelo-toolbar button .livelo-toolbar-label {
    display: none;
  }
  .livelo-toolbar button .livelo-toolbar-mobile-label {
    display: block;
  }
  .livelo-light-control {
    gap: 4px;
    padding-left: 5px;
    margin-left: 2px;
    font-size: 9px;
  }
  .livelo-light-label {
    display: none;
  }
  .livelo-light-select {
    min-height: 32px;
    max-width: 76px;
    padding: 0 18px 0 7px;
    font-size: 9px;
  }
}

/* ── Tabs ────────────────────────────────────────────── */

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
  padding: 6px;
  background: var(--panel);
  border-radius: var(--r-md);
  border-bottom: 1px solid var(--border);
}
.tab {
  padding: 10px 2px;
  white-space: nowrap;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #C4C4C4;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  min-height: var(--tap-min);
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.tab:hover { color: var(--fg); }
.tab-active {
  color: var(--fg);
  background: var(--bg);
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(0, 0, 0, 0.04);
}
.tabs-wrap-mobile { display: none; }

.tab-content {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  opacity: 1;
  overflow: hidden;
}

/* ── Tab bodies ──────────────────────────────────────── */

.tab-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.section-h {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 4px 0;
}
.section-sub {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #C4C4C4;
  margin: 0 0 16px 0;
}

.option-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}
/* Rows are flex children of a scroll container: without this they shrink
   below their content height once chips/discount rows make them taller. */
.option-list > * {
  flex-shrink: 0;
}

/* ── Option card ─────────────────────────────────────── */

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  /* clip-path clips children in all browsers including Safari (overflow:hidden on <button> is unreliable) */
  clip-path: inset(0 round var(--r-md));
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  min-height: var(--tap-min);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.option:hover {
  border-color: var(--accent);
  background: #F5FDF8;
}
.option-selected {
  border-color: var(--accent);
  background: #F5FDF8;
}
.option-selected:hover { border-color: var(--accent); }
/* Locked: stays selected, no click affordance (Gates Carbon under Enviolo). */
.option-locked,
.option-locked:hover { cursor: default; }

.option-thumb {
  width: 52px; height: 52px; flex: none;
  background: var(--panel-alt);
  border-radius: 8px;
  overflow: hidden;
}
.option-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.option-meta { flex: 1; min-width: 0; }
.option-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.option-desc {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #9CA3AF;
  margin-top: 3px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Per-item "Visa mer" (longDescription from the dashboard). The link sits
   inline after the short description, so that line wraps instead of clipping
   the link away behind the ellipsis. */
.option-desc-has-more {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.option-more-toggle {
  color: #111827;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  cursor: pointer;
}
.option-more-toggle:hover { color: var(--accent); }
.option-more-text {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #6B7280;
  line-height: 1.5;
  margin-top: 6px;
  white-space: pre-line;
}
.option-price {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: none;
}

/* Circular selection indicator */
.radio {
  width: 20px; height: 20px; flex: none;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.radio-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.radio-check { display: block; }

.mesh-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: calc(100% - 18px);
  margin: -2px 0 2px 18px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: #000000;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.mesh-toggle:hover { border-color: var(--border-strong); }
.mesh-toggle-active {
  border-color: var(--accent);
  background: #F5FDF8;
}
.mesh-toggle-title {
  font-size: 12px;
  font-weight: 500;
}
.mesh-toggle-state {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
}

/* ── Overview panel ─────────────────────────────────── */

.overview-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.overview-row { display: flex; justify-content: space-between; align-items: baseline; }
.overview-name {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #000000;
}
.overview-price {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #000000;
  font-variant-numeric: tabular-nums;
}
.overview-empty {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #C4C4C4;
}
.overview-items { display: flex; flex-direction: column; gap: 6px; }
.overview-item {
  display: flex;
  justify-content: space-between;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #C4C4C4;
  gap: 12px;
}
.overview-item-name { min-width: 0; }
.overview-item-price { color: #C4C4C4; font-variant-numeric: tabular-nums; white-space: nowrap; }

.divider { height: 1px; background: var(--border); margin: 16px 0; }
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 20px;
}
.total-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #C4C4C4;
}
.total-value {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #000000;
  font-variant-numeric: tabular-nums;
}

.cta-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 0 32px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: var(--fw-medium);
  line-height: 1;
  white-space: nowrap;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.cta-stack .btn-primary,
.cta-stack .btn-secondary { width: 100%; }

.btn-primary  { background: #49DA88; color: #000000; border-color: #49DA88; }
.btn-primary:hover { background: #3ec87a; border-color: #3ec87a; }
.btn-secondary { background: var(--bg); color: #000000; border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--panel-alt); border-color: var(--border-strong); }

/* ── Panel summary (mobile-only, top of panel, expands downward) ─ */

.panel-summary { display: none; }

/* ── Bottom bar ──────────────────────────────────────── */

.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: 10;
}
.bottom-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
.summary-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #C4C4C4;
  background: transparent; border: none; cursor: pointer;
  padding: 6px 4px;
  min-height: var(--tap-min);
  transition: color var(--dur-fast) var(--ease);
}
.summary-toggle:hover { color: var(--fg); }

.bottom-total { text-align: right; line-height: 1.1; }
.bottom-total-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  color: #C4C4C4;
}
.bottom-total-value {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.summary-list {
  padding: 10px 32px 14px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #C4C4C4;
}
.summary-line { display: flex; justify-content: space-between; gap: 12px; }
.summary-line-price { color: #C4C4C4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-line-base { color: #000000; }
.summary-line-base .summary-line-price { color: #000000; }

/* ── Quote Modal ─────────────────────────────────────── */

.qm-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: qmFade 160ms var(--ease, ease-out);
}
.qm-card {
  background: var(--bg);
  width: 100%; max-width: 560px;
  /* % of the fixed overlay, not vh: iOS 100vh is the toolbar-collapsed height,
     which pushed the card's top/bottom outside the visible viewport. */
  max-height: 100%;
  overflow-y: auto;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
  animation: qmRise 200ms var(--ease, cubic-bezier(.2,.8,.2,1));
}

@keyframes qmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qmRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.qm-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 28px 28px 8px;
  gap: 16px;
}
.qm-eyebrow {
  font-size: 11px; font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.qm-title {
  font-size: 22px; font-weight: 700;
  color: var(--fg);
  margin: 0;
  letter-spacing: -0.01em;
}
.qm-sub {
  font-size: 13px; color: var(--muted);
  margin: 4px 0 0;
}

.qm-close {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  flex: none;
}
.qm-close:hover { background: var(--panel-alt); border-color: var(--border-strong); }

.qm-form {
  padding: 8px 28px 24px;
  display: flex; flex-direction: column; gap: 24px;
}

.qm-section {
  border: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.qm-legend {
  font-size: 11px; font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--border);
  width: 100%;
  margin-bottom: 4px;
}

.qm-grid { display: grid; gap: 12px; }
.qm-grid-2 { grid-template-columns: 1fr 1fr; }
.qm-grid-postal { grid-template-columns: 110px 1fr 1fr; }

.qm-field {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.qm-label {
  font-size: 12px; font-weight: 500;
  color: var(--fg);
}

.qm-input {
  font: inherit;
  font-size: 14px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 42px;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.qm-input:hover  { border-color: var(--border-strong); }
.qm-input:focus  {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(69, 219, 132, 0.18);
}
.qm-input::placeholder { color: var(--muted-soft, #b8b8b8); }

.qm-textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
}

.qm-select { appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.qm-field-error .qm-input { border-color: #d4434f; box-shadow: 0 0 0 3px rgba(212, 67, 79, 0.12); }

.qm-actions {
  display: flex; gap: 10px; margin-top: 4px;
}
.qm-actions .btn-primary,
.qm-actions .btn-secondary { flex: 1; }

.success-card {
  width: 100%;
  max-width: 420px;
  max-height: 100%;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 28px;
  animation: qmRise 200ms var(--ease, cubic-bezier(.2,.8,.2,1));
}

.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(69, 219, 132, 0.14);
  color: var(--accent);
  margin-bottom: 18px;
}

.success-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.success-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.success-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.success-button {
  width: 100%;
  margin-top: 24px;
}

@media (max-width: 540px) {
  .qm-header  { padding: 22px 20px 8px; }
  .qm-form    { padding: 8px 20px 20px; }
  .qm-grid-2,
  .qm-grid-postal { grid-template-columns: 1fr; }
  .success-card { padding: 24px 20px; border-radius: 20px; }
  .success-title { font-size: 24px; }
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 1023px) {
  .viewer-col { padding: 24px; }
  .panel-col  { padding: 24px; }
}

@media (max-width: 767px) {
  html,
  body,
  #root {
    height: 100%;
    overflow: hidden;
  }

  .app-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    /* Bottom bar is in-flow (position:static) on mobile, not fixed, so nothing to reserve. */
    padding-bottom: 0;
    background: var(--bg);
  }

  .viewer-fullscreen-btn {
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
  }
  .viewer-ar-btn {
    left: 10px;
    bottom: 10px;
    min-width: 42px;
    height: 32px;
    padding: 0 11px;
    border-radius: 7px;
    font-size: 11px;
    letter-spacing: 0.05em;
  }
  .livelo-toolbar {
    bottom: 10px;
    padding: 3px;
    gap: 1px;
    border-radius: 9px;
    max-width: calc(100% - 112px);
  }
  .livelo-toolbar button {
    gap: 2px;
    padding: 4px 9px;
    min-height: 34px;
    font-size: 9px;
  }
  .livelo-toolbar button svg {
    width: 13px;
    height: 13px;
  }

  .livelo-header {
    height: auto;
    min-height: 48px;
    padding: 8px 18px;
    flex: none;
    z-index: 6;
  }
  .wordmark-img {
    height: 32px;
  }
  .nav-link {
    font-size: 12px;
  }

  .main-grid {
    /* flex:0 1 auto — size to content and shrink if needed, but never grow. This
       stops the panel from stretching, so the in-flow total sits directly under
       the list. When the list is long, main-grid shrinks and the list scrolls
       INTERNALLY (below) — the page itself never scrolls (app-shell is hidden). */
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .viewer-col {
    flex: none;
    padding: 10px 18px 0;
    position: relative;
    z-index: 5;
    background: var(--bg);
  }

  /* grow:0 flex chain so the panel sizes to content (the in-flow total sits
     directly under the last item, no dead space) and shrink:1 + min-height:0 so
     tab-content — the single scroll container per tab — scrolls internally when
     its content exceeds the height. tab-content (not .option-list) is the
     scroller so every tab scrolls, including Overview, whose summary + action
     buttons (Ladda ner PDF / Boka provtur) have no .option-list to scroll. */
  .panel-col {
    flex: 0 1 auto;
    min-height: 0;
    padding: 18px;
    border-left: none;
    border-top: 1px solid var(--border);
    overflow: hidden;
  }

  .tab-content {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }

  .tab-body {
    height: auto;
    min-height: 0;
  }

  .option-list {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
  }

  .bike-viewer:not(.bike-viewer--fullscreen) { width: calc(100% + 36px); margin: 0 -18px; height: auto; aspect-ratio: 4 / 3; min-height: 0; max-height: 35vh; background: transparent; }

  /* Compact the hero area to recover vertical space for the panel. */
  .hero {
    position: relative;
    gap: 8px;
  }
  .hero-h1 { font-size: 22px; }
  .hero-sub { font-size: 13px; margin-top: 0; }

  /* Give the section subtitle a bit less breathing room. */
  .section-sub { font-size: 13px; margin-bottom: 10px; }

  .tabs-wrap-desktop { display: none; }
  .tabs-wrap-mobile {
    display: block;
    padding: 12px 0;
    background: var(--bg);
  }
  .bottom-bar-inner { padding: 7px 18px 8px; }
  .summary-toggle {
    min-height: 32px;
    padding: 2px 4px;
    font-size: 13px;
  }
  .bottom-total-label { font-size: 10px; }
  .bottom-total-value {
    font-size: 17px;
    margin-top: 1px;
  }
  .summary-list { padding: 8px 18px 10px; }
  .tab { font-size: 13px; padding: 10px 0; }

  /* In-flow (not fixed) so the total sits directly under the panel content. */
  .bottom-bar { display: block; position: static; }
}

/* ── Extra-compact layout for short phones (iPhone SE, older Androids ≤ 700 px tall) ── */
@media (max-width: 767px) and (max-height: 700px) {
  .bike-viewer:not(.bike-viewer--fullscreen) { max-height: 27vh; }
  .panel-col { padding: 12px 18px; }
  .section-h { font-size: 15px; }
  /* Drop the subtitle text entirely on small screens to maximise list room. */
  .section-sub { display: none; }
}

/* ── Landscape phones (flipped) ──────────────────────────
 * Wide but very short viewports (e.g. 844×390). These fall outside the
 * ≤767px portrait breakpoint, so without this they inherit the desktop
 * layout and overflow vertically (tall header, 380px min viewer, 88px
 * bottom padding). Keep the side-by-side split but compact all vertical
 * chrome so the viewer and panel both fit the short height. */
@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  html,
  body,
  #root {
    height: 100%;
    overflow: hidden;
  }

  .app-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 50px;
  }

  /* Compact header */
  .livelo-header {
    height: auto;
    min-height: 38px;
    padding: 4px 16px;
  }
  .wordmark-img { height: 26px; }
  .nav-link { font-size: 11px; }

  /* Keep the side-by-side split; let it fill the remaining height */
  .main-grid {
    display: grid;
    grid-template-columns: 56fr 44fr;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .viewer-col {
    padding: 6px 12px;
    min-height: 0;
  }
  .panel-col {
    padding: 8px 14px;
    gap: 8px;
    min-height: 0;
    overflow: hidden;
    border-left: 1px solid var(--border);
    border-top: none;
  }

  /* Viewer flexes to fill its column instead of forcing 380px / 35vh */
  .bike-viewer:not(.bike-viewer--fullscreen) {
    flex: 1;
    height: 0;
    min-height: 0;
    max-height: none;
    width: 100%;
    margin: 0;
    aspect-ratio: auto;
    background: transparent;
  }

  /* Tighten hero text so the bike gets the vertical space */
  .hero { gap: 4px; }
  .hero-h1 { font-size: 16px; }
  .hero-sub { font-size: 11px; margin-top: 0; }

  /* Use the in-panel desktop tabs, not the stacked mobile arrangement */
  .tabs-wrap-desktop { display: block; }
  .tabs-wrap-mobile { display: none; }
  .tab { font-size: 12px; padding: 7px 0; min-height: 32px; }
  .section-h { font-size: 14px; }
  .section-sub { display: none; }

  /* Panel list scrolls within the short height */
  .tab-content,
  .tab-body {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* .bottom-bar is position:fixed and floats over this scroll area rather
       than pushing it up, so this must clear its collapsed rendered height
       or the last list row scrolls in underneath it. */
    padding-bottom: 56px;
  }
  .option-list {
    min-height: 0;
    overflow-y: auto;
  }

  /* Landscape keeps the fill-and-scroll model with a fixed bar, so neutralize the
     portrait grow:0 panel chain that would otherwise leak in on ≤767px-wide
     landscape phones. */
  .tab-content { display: block; }
  .panel-col,
  .tab-content,
  .tab-body,
  .option-list { flex: 1 1 auto; }

  /* Compact bottom bar — stays fixed in the short landscape layout (portrait
     sets position:static, which landscape phones ≤767px wide would inherit). */
  .bottom-bar { display: block; position: fixed; }
  .bottom-bar-inner { padding: 6px 16px; }
  .summary-toggle { min-height: 30px; font-size: 12px; }
  .bottom-total-label { font-size: 10px; }
  .bottom-total-value { font-size: 16px; margin-top: 0; }

  /* Compact the floating viewer controls */
  .viewer-fullscreen-btn {
    right: 8px;
    bottom: 8px;
    width: 30px;
    height: 30px;
  }
  .viewer-ar-btn {
    left: 8px;
    bottom: 8px;
    min-width: 40px;
    height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }
  .livelo-toolbar {
    bottom: 8px;
    padding: 3px;
    max-width: calc(100% - 100px);
  }
  .livelo-toolbar button {
    flex-direction: column;
    gap: 2px;
    min-height: 32px;
    padding: 4px 9px;
    font-size: 9px;
    line-height: 1.1;
  }
  .livelo-toolbar button svg {
    width: 13px;
    height: 13px;
  }
}

/* ── Viewer info (maneuvering help) ──────────────────── */

.viewer-info-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s, border-color 0.15s;
  z-index: 10;
}
.viewer-info-btn:hover {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.45);
}
html.viewer-fullscreen-active.viewer-fullscreen-mobile .viewer-info-btn {
  top: max(12px, env(safe-area-inset-top, 12px));
  z-index: 40;
}

.viewer-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: viewer-info-fade 0.18s ease;
}
.viewer-info-card {
  width: 100%;
  max-width: 380px;
  /* % of the fixed overlay, not vh — see .qm-card */
  max-height: min(100%, 680px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 16px;
  padding: 20px 20px 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #111;
  outline: none;
  animation: viewer-info-pop 0.2s ease;
}
.viewer-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.viewer-info-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.viewer-info-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: none;
  border-radius: 8px;
  background: #F3F4F6;
  color: #111;
  cursor: pointer;
  transition: background 0.15s;
}
.viewer-info-close:hover { background: #E5E7EB; }
.viewer-info-sub {
  margin: 4px 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted, #6B7280);
}
.viewer-info-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.viewer-info-section-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #6B7280);
}
.viewer-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.viewer-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 12px;
}
.viewer-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: #F3F4F6;
  color: #111;
}
.viewer-info-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.viewer-info-label {
  font-size: 14px;
  font-weight: 600;
}
.viewer-info-detail {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted, #6B7280);
}
.viewer-info-foot {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted, #6B7280);
  line-height: 1.45;
}

@keyframes viewer-info-fade {
  from { opacity: 0; }
}
@keyframes viewer-info-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
}
@keyframes viewer-info-slide {
  from { opacity: 0; transform: translateY(24px); }
}

/* Wide screens: sections side by side so the whole guide is visible at once */
@media (min-width: 768px) {
  .viewer-info-card { max-width: 680px; }
  .viewer-info-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    align-items: start;
  }
}

/* Portrait phones: bottom sheet */
@media (max-width: 767px) {
  .viewer-info-btn {
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
  }
  .viewer-info-overlay {
    align-items: flex-end;
    padding: 0;
  }
  /* Bottom sheet: head + foot stay pinned, only the guide body scrolls */
  .viewer-info-card {
    display: flex;
    flex-direction: column;
    max-width: none;
    max-height: 85%;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    padding: 18px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    animation: viewer-info-slide 0.22s ease;
  }
  .viewer-info-body {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .viewer-info-list { gap: 8px; }
  .viewer-info-row { padding: 8px 10px; }
}

/* Short landscape phones: compact centered card, two columns to fit the height */
@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  .viewer-info-btn {
    top: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
  }
  .viewer-info-overlay {
    align-items: center;
    padding: 12px;
  }
  /* Head + foot stay pinned, the two-column body scrolls in between */
  .viewer-info-card {
    display: flex;
    flex-direction: column;
    max-width: 640px;
    max-height: 100%;
    overflow: hidden;
    border-radius: 14px;
    padding: 12px 16px;
    animation: viewer-info-pop 0.2s ease;
  }
  .viewer-info-title { font-size: 15px; }
  .viewer-info-sub { margin: 2px 0 8px; font-size: 12px; }
  .viewer-info-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
    align-items: start;
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .viewer-info-section-title { margin-bottom: 6px; }
  .viewer-info-list { gap: 6px; }
  .viewer-info-row { padding: 5px 10px; }
  .viewer-info-icon { width: 30px; height: 30px; border-radius: 8px; }
  .viewer-info-detail { font-size: 12px; }
  .viewer-info-foot { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .viewer-info-overlay,
  .viewer-info-card {
    animation: none;
  }
}

/* ── Tillbehörspaket (accessory bundle) ─────────────── */

/* Long tab labels swap to their short variant on phones (4 tabs per row) */
.tab-label-short { display: none; }
@media (max-width: 600px) {
  .tab { font-size: 12px; }
  .tab-label-full { display: none; }
  .tab-label-short { display: inline; }
}

.bundle-card {
  display: block;
  width: 100%;
  padding: 16px;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.bundle-card:hover { border-color: var(--border-strong); }
.bundle-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bundle-card-selected,
.bundle-card-selected:hover {
  border-color: var(--accent);
  background: #F7FEF9;
  box-shadow: 0 0 0 1px var(--accent);
}

.bundle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bundle-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.bundle-head-right { display: flex; align-items: center; gap: 10px; flex: none; }
.bundle-off {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.bundle-items { display: grid; gap: 7px; margin: 14px 0; }
.bundle-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--fg);
}
.bundle-item-name { min-width: 0; }
.bundle-item-price {
  margin-left: auto;
  color: var(--muted-soft);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Extras that come with the package but are not products (e.g. Telefonhållare). */
.bundle-item-included {
  color: var(--accent-hover);
  font-weight: 600;
}
.overview-item-included .overview-item-price {
  color: var(--accent-hover);
  font-weight: 600;
}
.bundle-tick {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: #DCFCE7;
  color: var(--accent-hover);
}

.bundle-foot {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
.bundle-card-selected .bundle-foot { border-top-color: #D3EAD8; }
.bundle-was {
  color: var(--muted-soft);
  font-size: 13.5px;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.bundle-now {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.bundle-save {
  padding: 3px 9px;
  border-radius: 999px;
  background: #DCFCE7;
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bundle-note {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* Bundle-covered items in the Tillbehör list */
.option-bundle-chip {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #DCFCE7;
  color: var(--accent-hover);
  font-size: 11px;
  font-weight: 700;
}
.option-price-covered {
  color: var(--muted-soft);
  font-weight: 500;
  text-decoration: line-through;
}

/* Discount lines in Översikt and the bottom-bar summary */
.overview-item-discount .overview-item-name,
.overview-item-discount .overview-item-price {
  color: var(--accent-hover);
  font-weight: 700;
}
.summary-line-discount,
.summary-line-discount .summary-line-price {
  color: var(--accent-hover);
  font-weight: 700;
}

/* Backend-driven per-option discount (discountedFixedCost) */
.option-price-discounted {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  color: var(--accent-hover);
  font-weight: 700;
}
.option-price-was {
  color: var(--muted-soft);
  font-weight: 500;
  font-size: 12px;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

/* ── Add-on options (e.g. Enviolo on Gates Carbon) ──── */
/* Nested under their base option with a connector spur. */
.option-addon {
  position: relative;
  margin-top: -2px;
  padding-left: 28px;
}
.option-addon::before {
  content: "";
  position: absolute;
  left: 13px;
  top: -8px;
  width: 14px;
  height: 50%;
  border-left: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  border-bottom-left-radius: 8px;
}
.option-addon .option { background: #FBFBFA; }
.option-addon .option.option-selected { background: var(--bg); }

.option-addon-chip {
  display: inline-block;
  margin-right: 7px;
  padding: 1px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* Base-price sale: struck ordinary next to the discounted "Från" price */
.hero-sub-was {
  color: var(--muted-soft);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.hero-sub-sale {
  color: var(--accent-hover);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Struck ordinary total in the bottom bar */
.bottom-total-was {
  display: inline-block;
  margin-right: 8px;
  color: var(--muted-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

/* Struck ordinary prices in Översikt rows */
.overview-was {
  margin-right: 7px;
  color: var(--muted-soft);
  font-size: 12.5px;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
