/*
 * leverantorer.css — what admin/shared/css/page.css and admin/dackhotell/css/dackhotell.css lack for the tyre suppliers' pages
 * (admin/leverantorer/; round 41, owner-notes 77b(3) and 77c): the marketplace's search built for a desktop first (the search
 * field big, the filters in a rail beside the results, every tyre a dense row with its EU label), still fine on a tablet (the
 * rail above the results, a row in two lines) and readable on a phone. Colours from page.css's tokens and colour classes, the
 * EU label's own colours as classes; logical properties, so Arabic mirrors; nothing here is set from a script but by a class
 * or an attribute.
 */

/* ---- the page ---- */
.pg-page.lv-wide { max-width: 1760px; }
[class*="lv-"][hidden] { display: none !important; }
.lv-gap { margin-block-start: 14px; }
.lv-end { text-align: end; }
.lv-nowrap { white-space: nowrap; }
.lv-mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.lv-cart-btn { position: relative; }
.lv-cart-btn svg { width: 18px; height: 18px; }
.lv-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #6366f1; color: #fff; font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }

/* =====================================================================================================================
 * the search: one big field for the dimension, the season, the car's plate and the saved searches
 * ===================================================================================================================== */
.lv-hero {
  position: relative; z-index: 30; margin-block-end: 18px; padding: 22px 24px 18px; border-radius: 24px;
  background:
    radial-gradient(900px 260px at 0% 0%, rgba(99, 102, 241, .24), transparent 62%),
    radial-gradient(700px 240px at 100% 0%, rgba(6, 182, 212, .16), transparent 60%),
    var(--pg-surface);
  border: 1px solid var(--pg-line-hi); box-shadow: var(--pg-lift-hi);
}
[data-theme="light"] .lv-hero {
  background: radial-gradient(900px 260px at 0% 0%, rgba(99, 102, 241, .12), transparent 62%), radial-gradient(700px 240px at 100% 0%, rgba(6, 182, 212, .10), transparent 60%), #fff;
}
.lv-hero-title { margin: 0 0 4px; font-size: 22px; font-weight: 900; letter-spacing: -.02em; color: var(--pg-text); }
.lv-hero-sub { margin: 0 0 16px; font-size: 14px; color: var(--pg-muted); }
.lv-search { display: grid; grid-template-columns: minmax(340px, 1.5fr) auto auto; gap: 12px 14px; align-items: start; }
.lv-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--pg-muted); }

/* the dimension: a big field with the tyre at its start and the server's suggestions under it */
.lv-dim { position: relative; min-width: 0; }
.lv-dim-box { position: relative; display: flex; align-items: center; }
.lv-dim-box > svg { position: absolute; inset-inline-start: 18px; width: 28px; height: 28px; color: #818cf8; pointer-events: none; }
.lv-dim-input {
  width: 100%; min-height: 68px; padding: 10px 18px; padding-inline-start: 60px; border-radius: 18px; border: 2px solid rgba(99, 102, 241, .45);
  background: var(--pg-field); color: var(--pg-text); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 27px; font-weight: 800; letter-spacing: .04em;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .18); transition: border-color .15s ease, box-shadow .15s ease;
}
.lv-dim-input::placeholder { color: var(--pg-muted); opacity: .7; font-weight: 700; font-size: 22px; }
.lv-dim-input:focus { outline: none; border-color: #818cf8; box-shadow: 0 0 0 4px rgba(99, 102, 241, .24), inset 0 2px 6px rgba(0, 0, 0, .18); }
.lv-dim-input.bad { border-color: #f59e0b; }
.lv-dim-hint { margin: 6px 2px 0; font-size: 13px; color: var(--pg-muted); }
.lv-dim-hint.bad { color: var(--orange); }
[data-theme="light"] .lv-dim-hint.bad { color: #b45309; }
.lv-suggest {
  position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 60; margin: 0; padding: 6px; list-style: none; border-radius: 16px;
  background: var(--card); border: 1px solid var(--pg-line-hi); box-shadow: 0 24px 48px rgba(0, 0, 0, .45); max-height: 380px; overflow-y: auto;
}
[data-theme="light"] .lv-suggest { background: #fff; box-shadow: 0 24px 48px rgba(15, 23, 42, .16); }
.lv-suggest li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 11px; cursor: pointer; }
.lv-suggest li .t { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 18px; font-weight: 800; color: var(--pg-text); letter-spacing: .03em; }
.lv-suggest li .t mark { background: none; color: var(--primary); }
[data-theme="light"] .lv-suggest li .t mark { color: #4f46e5; }
.lv-suggest li .n { font-size: 13px; font-weight: 700; color: var(--pg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-suggest li[aria-selected="true"], .lv-suggest li:hover { background: rgba(99, 102, 241, .18); }
.lv-suggest .empty { cursor: default; color: var(--pg-muted); font-size: 14px; }
.lv-suggest .empty:hover { background: none; }

/* the season: three choices, and the studs under winter */
.lv-seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; background: var(--pg-inner); border: 1px solid var(--pg-line); }
.lv-seg label { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 56px; padding: 6px 16px; border-radius: 12px; font-size: 15px; font-weight: 800; color: var(--pg-muted); cursor: pointer; white-space: nowrap; }
.lv-seg label svg { width: 20px; height: 20px; }
.lv-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lv-seg label:has(input:checked) { background: var(--pg-surface); color: var(--pg-text); box-shadow: 0 2px 10px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .08); }
.lv-seg label:has(input:focus-visible) { outline: 2px solid #6366f1; outline-offset: 1px; }
.lv-seg label.summer:has(input:checked) svg { color: var(--orange); }
.lv-seg label.winter:has(input:checked) svg { color: #22d3ee; }
.lv-seg label.all_season:has(input:checked) svg { color: #c084fc; }
.lv-seg.sm label { min-height: 36px; padding: 4px 12px; font-size: 14px; }
.lv-studs { margin-block-start: 8px; }
.lv-go { min-height: 68px !important; padding-inline: 28px !important; border-radius: 18px !important; font-size: 17px !important; }
.lv-go svg { width: 20px; height: 20px; }

/* the second line: the car's plate, its sets, the saved searches */
.lv-hero-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 28px; margin-block-start: 16px; padding-block-start: 16px; border-block-start: 1px solid var(--pg-line); }
.lv-car { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.lv-car > .lv-label, .lv-car > .pg-form-msg, .lv-car > .lv-sets { flex-basis: 100%; margin: 0; }
.lv-car > .lv-sets:empty { display: none; }
.lv-plate { display: inline-flex; align-items: stretch; min-height: 48px; border-radius: 10px; overflow: hidden; border: 2px solid var(--border-hi); background: var(--card); box-shadow: var(--shadow); }
.lv-plate-eu { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 28px; padding-block-end: 4px; background: #1d4ed8; color: #fde047; font-size: 12px; font-weight: 900; }
.lv-plate-eu svg { width: 14px; height: 14px; margin-block-end: auto; margin-block-start: 5px; }
.lv-plate input { width: 9.5ch; min-width: 0; padding: 6px 12px; border: 0; background: transparent; color: var(--text); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 22px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lv-plate input::placeholder { color: var(--muted); letter-spacing: .06em; }
.lv-plate input:focus { outline: none; background: #eef2ff; }
.lv-plate:focus-within { box-shadow: 0 0 0 4px rgba(99, 102, 241, .3); }
.lv-sets { display: flex; flex-wrap: wrap; gap: 8px; }
.lv-set {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--pg-line-hi);
  background: var(--pg-inner); color: var(--pg-text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.lv-set:hover { border-color: rgba(99, 102, 241, .55); }
.lv-set[aria-pressed="true"] { border-color: #6366f1; background: rgba(99, 102, 241, .18); }
.lv-set .lv-mono { font-weight: 800; }
.lv-set .lv-season-tile { width: 26px; height: 26px; border-radius: 8px; box-shadow: none; }
.lv-set .lv-season-tile svg { width: 15px; height: 15px; }
.pg-form-msg.warn { color: var(--orange); }
[data-theme="light"] .pg-form-msg.warn { color: #b45309; }
.lv-saved { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-inline-start: auto; max-width: 640px; }
.lv-saved > .lv-label { flex-basis: 100%; margin: 0; }
.lv-saved-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lv-saved-chip { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--pg-line-hi); background: var(--pg-inner); overflow: hidden; }
.lv-saved-chip button { border: 0; background: none; color: var(--pg-text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 6px 12px; }
.lv-saved-chip button:hover { background: rgba(99, 102, 241, .14); }
.lv-saved-chip .x { padding-inline: 10px; color: var(--pg-muted); border-inline-start: 1px solid var(--pg-line); }
.lv-saved-chip .x:hover { color: var(--red); background: rgba(239, 68, 68, .12); }
.lv-saved-chip .lv-saved-ico { width: 15px; height: 15px; margin-inline-start: 10px; color: var(--orange); }

/* =====================================================================================================================
 * the filters in a rail beside the results
 * ===================================================================================================================== */
.lv-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.lv-rail { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; margin: 0; scrollbar-width: thin; }
.lv-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-block-end: 1px solid var(--pg-line); }
.lv-rail-head h2 { margin: 0; font-size: 16px; font-weight: 900; color: var(--pg-text); }
.lv-fgroup { padding: 14px 18px 16px; border-block-end: 1px solid var(--pg-line); }
.lv-fgroup:last-child { border-block-end: 0; }
.lv-fgroup > h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--pg-muted); }
.lv-fgroup .pg-field { width: 100%; }
.lv-brands { display: flex; flex-direction: column; gap: 2px; }
.lv-brand { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 4px 8px; margin-inline: -8px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--pg-text); cursor: pointer; }
.lv-brand:hover { background: rgba(99, 102, 241, .08); }
.lv-brand input { width: 18px; height: 18px; accent-color: #6366f1; flex: none; }
.lv-brand .n { margin-inline-start: auto; font-size: 13px; color: var(--pg-muted); font-variant-numeric: tabular-nums; }
.lv-brand.off { opacity: .55; }
.lv-more-link { margin-block-start: 6px; padding: 4px 0; border: 0; background: none; color: var(--primary); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
[data-theme="light"] .lv-more-link { color: #4f46e5; }
.lv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-two label, .lv-one label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--pg-muted); }
.lv-toggles { display: flex; flex-direction: column; gap: 8px; }
.lv-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; color: var(--pg-text); cursor: pointer; }
.lv-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lv-toggle .sw { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: rgba(148, 163, 184, .3); border: 1px solid var(--pg-line-hi); transition: background .15s ease; }
.lv-toggle .sw::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: inset-inline-start .15s ease; }
.lv-toggle input:checked + .sw { background: #6366f1; border-color: #6366f1; }
.lv-toggle input:checked + .sw::after { inset-inline-start: 18px; }
.lv-toggle input:focus-visible + .sw { outline: 2px solid #818cf8; outline-offset: 2px; }
.lv-toggle input:disabled + .sw { opacity: .45; }
@media (prefers-reduced-motion: reduce) { .lv-toggle .sw, .lv-toggle .sw::after { transition: none; } }

/* the EU classes as letters to pick, each in its label colour when on */
.lv-classes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.lv-class { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 46px; padding: 5px 0; border-radius: 10px; border: 1px solid var(--pg-line-hi); background: var(--pg-inner); color: var(--pg-text); font: inherit; font-size: 16px; font-weight: 900; cursor: pointer; position: relative; overflow: hidden; }
.lv-class::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--eu); }
.lv-class small { font-size: 11px; font-weight: 700; color: var(--pg-muted); font-variant-numeric: tabular-nums; }
.lv-class[aria-pressed="true"] { background: var(--eu); border-color: var(--eu); color: var(--eu-ink); }
.lv-class[aria-pressed="true"] small { color: var(--eu-ink); opacity: .8; }
.lv-class:disabled { opacity: .35; cursor: not-allowed; }
.lv-class.c-A, .lv-eu-b.c-A { --eu: #009a44; --eu-ink: #fff; }
.lv-class.c-B, .lv-eu-b.c-B { --eu: #52ae32; --eu-ink: #fff; }
.lv-class.c-C, .lv-eu-b.c-C { --eu: #c8d400; --eu-ink: #1f2937; }
.lv-class.c-D, .lv-eu-b.c-D { --eu: #fecc00; --eu-ink: #1f2937; }
.lv-class.c-E, .lv-eu-b.c-E { --eu: #ef7d00; --eu-ink: #fff; }

/* =====================================================================================================================
 * the results: the count and the query in words, the sort, a dense row per tyre, the pages
 * ===================================================================================================================== */
.lv-results { min-width: 0; }
.lv-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 12px; }
.lv-count { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.02em; color: var(--pg-text); }
.lv-count small { font-size: 15px; font-weight: 700; color: var(--pg-muted); letter-spacing: 0; }
.lv-active { display: flex; flex-wrap: wrap; gap: 6px; margin-block-end: 12px; }
.lv-active .pg-chip { cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; }
.lv-active .pg-chip span[aria-hidden] { font-size: 15px; line-height: 1; opacity: .75; }
.lv-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--pg-muted); }
.lv-sort .pg-tabs { margin: 0; }
.lv-list { display: flex; flex-direction: column; gap: 10px; }

.lv-tyre {
  display: grid; align-items: center; gap: 12px 18px; padding: 14px 18px; border-radius: 18px;
  grid-template-columns: 52px minmax(200px, 1.5fr) 212px minmax(130px, .7fr) minmax(160px, .9fr) minmax(140px, .7fr) 236px;
  grid-template-areas: "icon name eu stock supplier price act";
  background: var(--pg-surface); border: 1px solid var(--pg-line); box-shadow: var(--pg-lift);
  transition: border-color .15s ease, box-shadow .2s ease, transform .2s cubic-bezier(.2, .8, .2, 1);
}
.lv-tyre:hover { border-color: rgba(99, 102, 241, .4); box-shadow: var(--pg-lift-hi); }
.lv-tyre.is-compared { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99, 102, 241, .35), var(--pg-lift-hi); }
.lv-tyre.out { opacity: .78; }
.lv-tyre > .a-icon { grid-area: icon; }
.lv-tyre > .a-name { grid-area: name; min-width: 0; }
.lv-tyre > .a-eu { grid-area: eu; }
.lv-tyre > .a-stock { grid-area: stock; min-width: 0; }
.lv-tyre > .a-supplier { grid-area: supplier; min-width: 0; }
.lv-tyre > .a-price { grid-area: price; }
.lv-tyre > .a-act { grid-area: act; }
.lv-brand-name { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
[data-theme="light"] .lv-brand-name { color: #4f46e5; }
.lv-model { margin: 1px 0 3px; font-size: 17px; font-weight: 800; color: var(--pg-text); line-height: 1.25; overflow-wrap: anywhere; }
.lv-dimline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lv-dimline .lv-mono { font-size: 15px; font-weight: 800; color: var(--pg-text); }
.lv-dimline .pg-chip { padding: 1px 8px; font-size: 12px; }
.lv-sub { margin-block-start: 3px; font-size: 13px; color: var(--pg-muted); }
.lv-season-tile { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 15px; border: 1px solid var(--a-line); background: var(--a-bg); color: var(--a); box-shadow: 0 0 16px var(--a-bg); }
.lv-season-tile svg { width: 26px; height: 26px; }
.lv-season-tile.summer { --a: var(--orange); --a-bg: rgba(245, 158, 11, .14); --a-line: rgba(245, 158, 11, .34); }
.lv-season-tile.winter { --a: #22d3ee; --a-bg: rgba(6, 182, 212, .14); --a-line: rgba(6, 182, 212, .34); }
.lv-season-tile.all_season { --a: #c084fc; --a-bg: rgba(139, 92, 246, .14); --a-line: rgba(139, 92, 246, .34); }
.lv-season-tile.none { --a: var(--muted); --a-bg: rgba(148, 163, 184, .12); --a-line: rgba(148, 163, 184, .3); }
.lv-season-tile.lv-tiny { width: 24px; height: 24px; border-radius: 7px; box-shadow: none; }
.lv-season-tile.lv-tiny svg { width: 14px; height: 14px; }
[data-theme="light"] .lv-season-tile.summer { --a: #b45309; }
[data-theme="light"] .lv-season-tile.winter { --a: #0e7490; }
[data-theme="light"] .lv-season-tile.all_season { --a: #7c3aed; }

/* the EU label: fuel and wet grip as the label's arrows in their class's colour, noise in dB with its waves */
.lv-eu { display: inline-flex; align-items: center; gap: 5px; flex-wrap: nowrap; }
.lv-eu-b { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px 0 7px; border-radius: 7px; font-size: 16px; line-height: 1; color: var(--eu-ink, var(--pg-text)); background: var(--eu, var(--pg-inner)); white-space: nowrap; }
.lv-eu-b svg { width: 16px; height: 16px; flex: none; }
.lv-eu-b b { font-weight: 900; }
.lv-eu-b.fuel, .lv-eu-b.wet { padding-inline-end: 15px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); border-radius: 7px 0 0 7px; }
[dir="rtl"] .lv-eu-b.fuel, [dir="rtl"] .lv-eu-b.wet { clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); border-radius: 0 7px 7px 0; }
.lv-eu-b.noise { border: 1px solid var(--pg-line-hi); background: var(--pg-inner); color: var(--pg-text); font-size: 15px; }
.lv-eu-b.noise small { font-size: 11px; font-weight: 800; color: var(--pg-muted); }
.lv-eu-b.noise i { margin-inline-start: 2px; padding: 1px 5px; border-radius: 5px; font-style: normal; font-size: 12px; font-weight: 900; background: rgba(148, 163, 184, .2); }
.lv-eu-b.noise.n-A .w2, .lv-eu-b.noise.n-A .w3, .lv-eu-b.noise.n-B .w3 { opacity: .22; }
.lv-eu-b.none { background: transparent; border: 1px dashed var(--pg-line-hi); color: var(--pg-muted); clip-path: none; border-radius: 7px; padding-inline-end: 8px; }
.lv-eu.sm .lv-eu-b { height: 26px; font-size: 14px; }
.lv-eu.sm .lv-eu-b svg { width: 13px; height: 13px; }

/* stock, delivery and the supplier */
.lv-stock { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.lv-stock .lv-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.lv-stock.in { color: var(--accent); } .lv-stock.in .lv-dot { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.lv-stock.out { color: var(--pg-muted); } .lv-stock.out .lv-dot { background: #64748b; }
[data-theme="light"] .lv-stock.in { color: #047857; }
.lv-delivery { margin-block-start: 3px; font-size: 13px; color: var(--pg-muted); }
.lv-supplier-name { font-size: 14px; font-weight: 800; color: var(--pg-text); overflow-wrap: anywhere; }
.lv-rating { display: inline-flex; align-items: center; gap: 5px; margin-block-start: 3px; font-size: 13px; color: var(--pg-text); font-variant-numeric: tabular-nums; }
.lv-rating .lv-star { color: var(--orange); font-size: 15px; }
.lv-rating.none { color: var(--pg-muted); }

/* the price: ex moms first (what a business compares), inc moms under it */
.lv-price { display: flex; flex-direction: column; align-items: flex-end; text-align: end; }
.lv-price strong { font-size: 21px; font-weight: 900; letter-spacing: -.01em; color: var(--pg-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-price span { font-size: 12px; font-weight: 700; color: var(--pg-muted); white-space: nowrap; }
.lv-price .inc { margin-block-start: 3px; font-size: 13px; font-weight: 700; color: var(--pg-muted); font-variant-numeric: tabular-nums; }

/* the row's actions: compare, the quantity and «Lägg i varukorgen» */
.lv-act { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.lv-act-line { display: flex; align-items: center; gap: 8px; }
.lv-qty { display: inline-flex; align-items: center; height: 40px; border-radius: 11px; border: 1px solid var(--pg-line-hi); background: var(--pg-field); overflow: hidden; flex: none; }
.lv-qty button { width: 32px; height: 100%; border: 0; background: none; color: var(--pg-text); font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.lv-qty button:hover { background: rgba(99, 102, 241, .14); }
.lv-qty input { width: 40px; height: 100%; border: 0; border-inline: 1px solid var(--pg-line); background: none; color: var(--pg-text); font: inherit; font-size: 15px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.lv-qty input::-webkit-outer-spin-button, .lv-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lv-qty input:focus { outline: none; background: rgba(99, 102, 241, .1); }
.lv-act-line .pg-btn { flex: 1 1 auto; }
.lv-compare { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--pg-muted); cursor: pointer; }
.lv-compare input { width: 17px; height: 17px; accent-color: #6366f1; }
.lv-compare:has(input:checked) { color: var(--primary); }
[data-theme="light"] .lv-compare:has(input:checked) { color: #4f46e5; }
.lv-in-cart { font-size: 13px; font-weight: 800; color: var(--accent); }
[data-theme="light"] .lv-in-cart { color: #047857; }

/* the pages under the list */
.lv-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-block-start: 16px; }
.lv-pages button { min-width: 40px; min-height: 40px; padding: 6px 12px; border-radius: 11px; border: 1px solid var(--pg-line-hi); background: var(--pg-inner); color: var(--pg-text); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; font-variant-numeric: tabular-nums; }
.lv-pages button:hover:not(:disabled) { border-color: rgba(99, 102, 241, .55); }
.lv-pages button[aria-current="page"] { background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%); border-color: transparent; color: #fff; }
.lv-pages button:disabled { opacity: .4; cursor: not-allowed; }
.lv-pages .gap { color: var(--pg-muted); padding: 0 4px; }

/* the empty and loading states of the results */
.lv-blank { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 24px; text-align: center; border-radius: 20px; border: 1px dashed var(--pg-line-hi); background: var(--pg-inner); }
.lv-blank svg { width: 46px; height: 46px; color: #818cf8; opacity: .8; }
.lv-blank h3 { margin: 0; font-size: 18px; font-weight: 900; color: var(--pg-text); }
.lv-blank p { margin: 0; max-width: 520px; font-size: 14px; line-height: 1.5; color: var(--pg-muted); }
.lv-skel { height: 82px; border-radius: 18px; }

/* the compare bar at the foot of the screen, and the comparison side by side */
.lv-compare-bar {
  position: fixed; inset-inline: 0; bottom: 18px; z-index: 900; margin-inline: auto; width: min(980px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px 12px 18px; border-radius: 20px;
  background: rgba(15, 23, 42, .94); border: 1px solid rgba(99, 102, 241, .45); box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #ffffff;
}
[data-theme="light"] .lv-compare-bar { background: rgba(255, 255, 255, .96); color: var(--text); box-shadow: 0 24px 60px rgba(15, 23, 42, .2); }
.lv-compare-bar > strong { font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.lv-compare-slots { display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.lv-slot { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; padding: 6px 6px 6px 12px; border-radius: 12px; background: rgba(99, 102, 241, .16); border: 1px solid rgba(99, 102, 241, .35); font-size: 13px; font-weight: 800; }
.lv-slot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-slot button { width: 26px; height: 26px; border: 0; border-radius: 8px; background: none; color: inherit; font-size: 16px; cursor: pointer; }
.lv-slot button:hover { background: rgba(239, 68, 68, .2); }
.lv-slot.empty { background: none; border-style: dashed; color: var(--pg-muted); padding-inline-end: 12px; }
.modal-box.lv-xwide { max-width: 1120px; }
.lv-cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.lv-cmp th, .lv-cmp td { padding: 10px 12px; border-block-end: 1px solid var(--pg-line); text-align: start; vertical-align: middle; }
.lv-cmp thead th { vertical-align: top; }
.lv-cmp tbody th { width: 170px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--pg-muted); white-space: nowrap; }
.lv-cmp td { font-weight: 700; color: var(--pg-text); font-variant-numeric: tabular-nums; }
.lv-cmp td.best { background: rgba(16, 185, 129, .1); box-shadow: inset 3px 0 0 #10b981; }
[dir="rtl"] .lv-cmp td.best { box-shadow: inset -3px 0 0 #10b981; }
.lv-cmp td.best::after { content: 'Bäst'; margin-inline-start: 8px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; background: rgba(16, 185, 129, .2); color: var(--accent); }
[data-theme="light"] .lv-cmp td.best::after { color: #047857; }
.lv-cmp-head { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.lv-cmp-wrap { overflow-x: auto; }

/* =====================================================================================================================
 * the cart: a drawer from the side, one group per supplier, each its own order
 * ===================================================================================================================== */
.pg-drawer.lv-cart { width: min(640px, 100vw); }
.lv-cart-group { border-radius: 18px; border: 1px solid var(--pg-line-hi); background: var(--pg-inner); overflow: hidden; }
.lv-cart-group.done { border-color: rgba(16, 185, 129, .5); }
.lv-cart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px; border-block-end: 1px solid var(--pg-line); }
.lv-cart-head h3 { margin: 0; font-size: 16px; font-weight: 900; color: var(--pg-text); }
.lv-terms { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.lv-terms li { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(148, 163, 184, .14); color: var(--pg-muted); }
.lv-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 16px; border-block-end: 1px solid var(--pg-line); }
.lv-line-name { font-size: 14px; font-weight: 800; color: var(--pg-text); overflow-wrap: anywhere; }
.lv-line-sub { margin-block-start: 2px; font-size: 13px; color: var(--pg-muted); }
.lv-line .lv-unit { font-size: 13px; font-weight: 700; color: var(--pg-muted); text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lv-line .lv-unit strong { display: block; font-size: 15px; color: var(--pg-text); }
.lv-line-x { width: 30px; height: 30px; border: 0; border-radius: 9px; background: none; color: var(--pg-muted); font-size: 18px; cursor: pointer; }
.lv-line-x:hover { color: var(--red); background: rgba(239, 68, 68, .12); }
.lv-cart-form { padding: 14px 16px 4px; }
.lv-cart-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 16px; border-block-start: 1px solid var(--pg-line); background: rgba(0, 0, 0, .08); }
.lv-cart-foot .pg-form-msg { flex: 1 1 220px; margin-inline-end: auto; }
.lv-hint { margin: 0; font-size: 13px; line-height: 1.45; color: var(--pg-muted); }

/* an order's sums as the server answered: never added up in the page */
.lv-sums { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--pg-inner); border: 1px solid var(--pg-line); font-size: 14px; }
.lv-sums > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.lv-sums dt { margin: 0; color: var(--pg-muted); font-weight: 700; }
.lv-sums dd { margin: 0; font-weight: 800; color: var(--pg-text); }
.lv-sums > div.total { margin-block-start: 6px; padding-block-start: 8px; border-block-start: 1px solid var(--pg-line); font-size: 16px; }
.lv-sums > div.total dt, .lv-sums > div.total dd { color: var(--pg-text); font-weight: 900; }

/* the stars of «Betygsätt» */
.lv-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.lv-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lv-stars label { font-size: 38px; line-height: 1; color: rgba(148, 163, 184, .4); cursor: pointer; transition: color .1s ease, transform .1s ease; }
.lv-stars label:hover, .lv-stars label:hover ~ label, .lv-stars input:checked ~ label { color: var(--orange); }
.lv-stars input:focus-visible + label { outline: 2px solid #6366f1; outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .lv-stars label { transition: none; } }

/* =====================================================================================================================
 * the supplier's desk and the staff's page: the catalogue's inline fields, the import, the steps of an application
 * ===================================================================================================================== */
.lv-cell { width: 96px; min-height: 36px; padding: 5px 9px; border-radius: 9px; border: 1px solid var(--pg-line-hi); background: var(--pg-field); color: var(--pg-text); font: inherit; font-size: 14px; font-weight: 700; text-align: end; font-variant-numeric: tabular-nums; }
.lv-cell.narrow { width: 70px; }
.lv-cell:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .22); }
.lv-cell.changed { border-color: #f59e0b; }
.lv-cell.bad { border-color: #ef4444; }
.lv-cell:disabled { opacity: .55; }
tr.lv-saved td { animation: lv-flash 1.4s ease-out 1; }
@keyframes lv-flash { 0% { background: rgba(16, 185, 129, .22); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { tr.lv-saved td { animation: none; } }
tr.lv-off td { opacity: .62; }
.lv-row-msg { font-size: 13px; font-weight: 700; color: var(--pg-muted); }
.lv-row-msg.error { color: var(--red); }
.lv-row-msg.ok { color: var(--accent); }
[data-theme="light"] .lv-row-msg.error { color: #b91c1c; }
[data-theme="light"] .lv-row-msg.ok { color: #047857; }
.lv-cols { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.lv-cols code { padding: 3px 8px; border-radius: 8px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; font-weight: 700; background: var(--pg-inner); border: 1px solid var(--pg-line); color: var(--pg-text); }
.lv-cols code.need { border-color: rgba(99, 102, 241, .55); background: rgba(99, 102, 241, .14); }
.lv-paste { width: 100%; min-height: 160px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; white-space: pre; }
.lv-drop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 14px; border: 1px dashed var(--pg-line-hi); background: var(--pg-inner); }
.lv-file { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lv-report { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 10px; }
.lv-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0; }
.lv-steps li { position: relative; display: flex; gap: 14px; padding-block-end: 18px; }
.lv-steps li:last-child { padding-block-end: 0; }
.lv-steps li::before { content: ''; position: absolute; top: 26px; bottom: 0; inset-inline-start: 13px; width: 2px; background: var(--pg-line-hi); }
.lv-steps li:last-child::before { display: none; }
.lv-step-dot { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--pg-line-hi); background: var(--pg-inner); color: var(--pg-muted); font-size: 13px; font-weight: 900; }
.lv-steps li.done .lv-step-dot { border-color: #10b981; background: #10b981; color: #fff; }
.lv-steps li.now .lv-step-dot { border-color: #f59e0b; color: var(--orange); box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); }
.lv-steps strong { display: block; font-size: 15px; font-weight: 800; color: var(--pg-text); }
.lv-steps span { font-size: 14px; color: var(--pg-muted); }
.lv-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 0 14px; }
.lv-form-grid .wide { grid-column: 1 / -1; }
.lv-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lv-history { display: flex; flex-direction: column; gap: 8px; }
.lv-history .pg-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.lv-history .pg-item.now { border-color: rgba(16, 185, 129, .5); }

/* =====================================================================================================================
 * a tablet: the rail above the results, a tyre in two lines; a phone: a tyre stacked
 * ===================================================================================================================== */
/* one line needs about 1240 px of results beside the rail: under 1680 px of screen a tyre takes two lines */
@media (max-width: 1680px) {
  .lv-tyre { grid-template-columns: 52px minmax(0, 1fr) auto auto; grid-template-areas: "icon name eu price" "icon stock supplier act"; }
}
@media (max-width: 1100px) {
  .lv-search { grid-template-columns: minmax(0, 1fr); }
  .lv-seg { width: 100%; }
  .lv-seg label { flex: 1 1 0; justify-content: center; }
  .lv-go { width: 100%; }
  .lv-layout { grid-template-columns: minmax(0, 1fr); }
  .lv-rail { position: static; max-height: none; overflow: visible; }
  .lv-rail-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .lv-fgroup { border-inline-end: 1px solid var(--pg-line); }
  .lv-saved { margin-inline-start: 0; }
}
@media (max-width: 760px) {
  .lv-hero { padding: 16px; border-radius: 20px; }
  .lv-dim-input { font-size: 21px; min-height: 58px; }
  .lv-tyre { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "icon name" "eu eu" "stock supplier" "price price" "act act"; padding: 14px; }
  .lv-season-tile { width: 44px; height: 44px; }
  .lv-tyre > .a-price .lv-price { align-items: flex-start; text-align: start; }
  .lv-tyre > .a-act .lv-act { flex-direction: column; align-items: stretch; }
  .lv-compare-bar { bottom: 8px; padding: 10px; }
  .lv-line { grid-template-columns: minmax(0, 1fr) auto; }
  .lv-line .lv-unit { grid-column: 1 / -1; text-align: start; }
}
@media print { .lv-hero, .lv-rail, .lv-compare-bar, .pg-head { display: none !important; } }
