/* Carista Vehicle Selector — self-contained styles.
 * All rules are namespaced under .cvs so the plugin never collides with a
 * theme. Colours/fonts use the Carista design tokens when present, with
 * sensible fallbacks so it also looks right on any other theme. */

.cvs {
  --_fg: var(--fg, #0B1426);
  --_fg2: var(--fg-2, #2C3A52);
  --_fg3: var(--fg-3, #5A6B85);
  --_fg4: var(--fg-4, #8E9CB2);
  --_surface: var(--surface, #fff);
  --_surface2: var(--surface-2, #F4F6FA);
  --_line: var(--line, #E1E6EE);
  --_line2: var(--line-2, #D4DBE6);
  --_blue: var(--blue, #4B7BEC);
  --_mint: var(--mint, #4B7BEC);
  --_rmd: var(--r-md, 6px);
  --_disp: var(--f-display, "Inter Tight", system-ui, sans-serif);
  --_mono: var(--f-mono, "JetBrains Mono", ui-monospace, monospace);

  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  min-height: 60vh;
  color: var(--_fg);
  font-family: var(--f-body, "Inter", system-ui, sans-serif);
}

/* sidebar */
.cvs-side {
  background: var(--_surface);
  border-right: 1px solid var(--_line);
  padding: 36px 26px;
}
.cvs-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--_mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--_fg3); margin-bottom: 16px;
}
.cvs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--_blue); }
.cvs-h1 { font-family: var(--_disp); font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 8px; color: var(--_fg); }
.cvs-desc { font-size: 13px; color: var(--_fg3); line-height: 1.55; margin: 0 0 24px; }

.cvs-pick-list { display: flex; flex-direction: column; border: 1px solid var(--_line); border-radius: var(--_rmd); overflow: hidden; margin-bottom: 18px; }
.cvs-pick { background: var(--_surface2); padding: 13px 15px; display: flex; align-items: center; gap: 13px; cursor: pointer; border-bottom: 1px solid var(--_line); transition: background .15s; }
.cvs-pick:last-child { border-bottom: 0; }
.cvs-pick:hover { background: #EEF2F8; }
.cvs-pick.empty { opacity: .65; cursor: default; }
.cvs-pick.active { background: rgba(75,123,236,.06); box-shadow: inset 3px 0 0 var(--_blue); }
.cvs-num { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--_line2); border-radius: 50%; font-family: var(--_mono); font-size: 10px; color: var(--_fg3); background: var(--_surface); }
.cvs-pick.done .cvs-num { border-color: var(--_mint); color: #fff; background: var(--_mint); }
.cvs-pick.active .cvs-num { border-color: var(--_blue); color: var(--_blue); background: rgba(75,123,236,.1); }
.cvs-k { display: block; font-family: var(--_mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--_fg3); margin-bottom: 2px; }
.cvs-v { font-family: var(--_disp); font-size: 14px; font-weight: 600; color: var(--_fg); }
.cvs-pick.empty .cvs-v { color: var(--_fg4); font-weight: 400; }
.cvs-check { margin-left: auto; color: var(--_mint); opacity: 0; font-weight: 700; }
.cvs-pick.done .cvs-check { opacity: 1; }

.cvs-reset { width: 100%; padding: 10px; font-family: var(--_mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--_fg3); background: var(--_surface); border: 1px solid var(--_line); border-radius: var(--_rmd); cursor: pointer; }
.cvs-reset:hover { color: var(--_blue); border-color: var(--_blue); }

/* main */
.cvs-main { padding: 40px 44px 64px; }

.cvs-progress { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 34px; font-family: var(--_mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--_fg3); }
.cvs-progress-eyebrow { display: flex; align-items: center; }
.cvs-progress-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cvs-pstep-group { display: inline-flex; align-items: center; gap: 8px; }
.cvs-pdot { width: 8px; height: 8px; border-radius: 50%; background: var(--_line2); flex: 0 0 auto; }
.cvs-pdot.done { background: var(--_mint); }
.cvs-pdot.now { background: var(--_blue); box-shadow: 0 0 0 4px rgba(75,123,236,.18); }
.cvs-line { width: 24px; height: 1px; background: var(--_line2); flex: 0 0 24px; }
.cvs-pstep.now { color: var(--_blue); }
.cvs-pstep.done { color: var(--_fg2); }

.cvs-head { margin-bottom: 28px; }
.cvs-head h2 { font-family: var(--_disp); font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; margin: 0 0 12px; color: var(--_fg); }
.cvs-head p { font-size: 15px; color: var(--_fg3); max-width: 560px; margin: 0; }

.cvs-search { display: flex; align-items: center; gap: 10px; background: var(--_surface); border: 1px solid var(--_line); border-radius: var(--_rmd); padding: 11px 15px; margin-bottom: 22px; max-width: 460px; color: var(--_fg3); }
.cvs-search input { flex: 1; background: none; border: 0; outline: 0; color: var(--_fg); font: 14px var(--_disp); }
.cvs-search input::placeholder { color: var(--_fg4); }
.cvs-count { font-family: var(--_mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--_fg4); }

/* brand grid */
.cvs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cvs-opt { background: var(--_surface); border: 1px solid var(--_line); border-radius: var(--_rmd); padding: 18px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; cursor: pointer; transition: border-color .15s, transform .15s; }
.cvs-opt:hover { border-color: var(--_blue); transform: translateY(-1px); }
.cvs-opt.sel { border-color: var(--_blue); box-shadow: 0 0 0 1px var(--_blue); }
.cvs-logo { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--_surface2); font-family: var(--_disp); font-weight: 700; font-size: 14px; color: var(--_fg2); }
.cvs-opt .cvs-name { font-family: var(--_disp); font-weight: 600; font-size: 14px; color: var(--_fg); }
.cvs-opt .cvs-sub { font-family: var(--_mono); font-size: 10px; color: var(--_fg4); }

/* model list */
.cvs-list { display: flex; flex-direction: column; gap: 8px; }
.cvs-row { display: flex; align-items: center; gap: 14px; background: var(--_surface); border: 1px solid var(--_line); border-radius: var(--_rmd); padding: 14px 16px; cursor: pointer; transition: border-color .15s; }
.cvs-row:hover { border-color: var(--_blue); }
.cvs-row.sel { border-color: var(--_blue); box-shadow: 0 0 0 1px var(--_blue); }
.cvs-info .cvs-name { font-family: var(--_disp); font-weight: 600; font-size: 15px; color: var(--_fg); }
.cvs-info .cvs-meta { font-family: var(--_mono); font-size: 10px; letter-spacing: .04em; color: var(--_fg4); margin-top: 2px; }
.cvs-chev { margin-left: auto; color: var(--_fg4); font-size: 20px; line-height: 1; }

/* generation (engine-style) rows */
.cvs-engines { display: flex; flex-direction: column; gap: 8px; }
.cvs-engine { display: flex; align-items: center; gap: 14px; background: var(--_surface); border: 1px solid var(--_line); border-radius: var(--_rmd); padding: 14px 16px; cursor: pointer; transition: border-color .15s; }
.cvs-engine:hover { border-color: var(--_blue); }
.cvs-engine.sel { border-color: var(--_blue); box-shadow: 0 0 0 1px var(--_blue); }
.cvs-code { font-family: var(--_mono); font-size: 11px; color: var(--_fg4); }
.cvs-engine .cvs-name { font-family: var(--_disp); font-weight: 600; font-size: 15px; color: var(--_fg); }
.cvs-engine .cvs-meta { font-family: var(--_mono); font-size: 10px; color: var(--_fg4); margin-top: 2px; }
.cvs-power { margin-left: auto; text-align: right; font-family: var(--_disp); font-weight: 600; font-size: 14px; color: var(--_fg); }
.cvs-power .cvs-lbl { display: block; font-family: var(--_mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--_fg4); font-weight: 400; }
.cvs-badge { font-family: var(--_mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--_mint); border: 1px solid var(--_mint); border-radius: 999px; padding: 3px 9px; }

/* result */
.cvs-result { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.cvs-vehicle { background: var(--_surface); border: 1px solid var(--_line); border-radius: var(--_rmd); padding: 26px; }
.cvs-tag { font-family: var(--_mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--_mint); }
.cvs-vehicle h2 { font-family: var(--_disp); font-weight: 600; font-size: 22px; letter-spacing: -.02em; margin: 10px 0 4px; color: var(--_fg); }
.cvs-vmeta { font-family: var(--_mono); font-size: 11px; color: var(--_fg3); margin-bottom: 18px; }
.cvs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--_line); padding-top: 20px; margin-top: 4px; }
.cvs-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.cvs-snum { display: block; font-family: var(--_disp); font-weight: 700; font-size: 22px; line-height: 1; color: var(--_blue); }
.cvs-slbl { font-family: var(--_mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--_fg4); line-height: 1.3; min-height: 2.6em; display: flex; align-items: flex-start; justify-content: center; }

.cvs-feats { display: flex; flex-direction: column; border: 1px solid var(--_line); border-radius: var(--_rmd); overflow: hidden; margin-bottom: 18px; }
.cvs-rf { display: flex; align-items: center; gap: 12px; padding: 11px 15px; border-bottom: 1px solid var(--_line); font-size: 13px; }
.cvs-rf:last-child { border-bottom: 0; }
.cvs-ic { color: var(--_mint); font-weight: 700; }
.cvs-rf .cvs-grow { flex: 1; }
.cvs-rf .cvs-name { color: var(--_fg2); font-weight: 500; }
.cvs-tagcat { font-family: var(--_mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--_fg4); }

.cvs-cta { background: var(--_surface2); border: 1px solid var(--_line); border-radius: var(--_rmd); padding: 22px; margin-top: 22px; }
.cvs-cta h3 { font-family: var(--_disp); font-weight: 600; font-size: 18px; margin: 0 0 6px; color: var(--_fg); }
.cvs-cta p { font-size: 13px; color: var(--_fg3); margin: 0 0 16px; }
.cvs-cta-row { display: flex; align-items: center; gap: 18px; }
.cvs-cta-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cvs-cta-btn { width: 100%; text-align: center; padding: 11px 14px; font-size: 13.5px; white-space: nowrap; }
.cvs-price { font-family: var(--_disp); font-weight: 700; font-size: 24px; line-height: 1; color: var(--_fg); }

/* buttons / misc */
.cvs-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--_disp); font-weight: 600; font-size: 14px; padding: 11px 18px; border-radius: var(--_rmd); border: 1px solid var(--_line); background: var(--_surface); color: var(--_fg); cursor: pointer; text-decoration: none; }
.cvs-btn-primary { background: var(--_blue); border-color: var(--_blue); color: #fff; }
.cvs-btn-primary:hover { filter: brightness(1.05); }
.cvs-ghost { background: none; }
.cvs-ghost:hover { border-color: var(--_blue); color: var(--_blue); }
.cvs-nav { margin-top: 26px; display: flex; gap: 12px; }

.cvs-center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px 0; }
.cvs-vt { font-family: var(--_disp); font-weight: 600; font-size: 22px; letter-spacing: -.02em; margin: 0 0 10px; color: var(--_fg); }
.cvs-vp { color: var(--_fg3); max-width: 440px; margin: 0 0 20px; }
.cvs-spinner { width: 34px; height: 34px; border: 3px solid var(--_line2); border-top-color: var(--_blue); border-radius: 50%; animation: cvs-spin .8s linear infinite; margin-bottom: 22px; }
@keyframes cvs-spin { to { transform: rotate(360deg); } }

/* responsive */
@media (max-width: 900px) {
  .cvs { grid-template-columns: 1fr; }
  .cvs-side { border-right: 0; border-bottom: 1px solid var(--_line); }
  .cvs-result { grid-template-columns: 1fr; }
  .cvs-main { padding: 28px 20px 48px; }
}
@media (max-width: 600px) {
  .cvs-progress { gap: 10px; font-size: 10px; letter-spacing: .1em; margin-bottom: 22px; }
  .cvs-progress-steps { gap: 10px; }
  .cvs-progress-steps .cvs-line { display: none; }
  .cvs-vehicle { padding: 22px; }
  .cvs-product-img { width: 72px; height: 72px; }
  .cvs-price { font-size: 22px; }
  .cvs-snum { font-size: 20px; }
}
@media (max-width: 480px) {
  .cvs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- per-vehicle detail groups + popup ---- */
.cvs-groups-wrap { display: flex; flex-direction: column; gap: 14px; }
.cvs-detail-loading { display: flex; align-items: center; gap: 12px; color: var(--_fg3); font-size: 14px; padding: 28px 4px; }
.cvs-detail-err { padding: 20px; border: 1px dashed var(--_line2); border-radius: var(--_rmd); color: var(--_fg3); font-size: 13px; }
.cvs-spinner-sm { width: 20px; height: 20px; border-width: 2px; margin: 0; }

.cvs-group { background: var(--_surface); border: 1px solid var(--_line); border-radius: var(--_rmd); padding: 18px; }
.cvs-group-head { width: 100%; display: flex; align-items: flex-start; gap: 14px; text-align: left; background: none; border: 0; cursor: pointer; padding: 0; font: inherit; color: inherit; margin-bottom: 14px; transition: opacity .12s; }
.cvs-group.closed .cvs-group-head { margin-bottom: 0; }
.cvs-group-head:hover .cvs-group-chev { color: var(--_fg); }
.cvs-group-head h3 { font-family: var(--_disp); font-weight: 600; font-size: 18px; letter-spacing: -.01em; margin: 0 0 4px; color: var(--_fg); }
.cvs-group-head p { font-size: 12.5px; color: var(--_fg3); line-height: 1.5; margin: 0; }
.cvs-group-total { flex: 0 0 auto; font-family: var(--_mono); font-size: 12px; font-weight: 500; color: var(--_blue); background: var(--_surface2); border: 1px solid var(--_line); border-radius: 999px; padding: 3px 11px; }
.cvs-group-chev { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; color: var(--_fg4); transition: transform .2s, color .12s; margin-top: 2px; }
.cvs-group.open .cvs-group-chev { transform: rotate(180deg); }
.cvs-group.closed .cvs-group-body { display: none; }

/* customize sub-category cards */
.cvs-subgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.cvs-subcard { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; background: var(--_surface2); border: 1px solid var(--_line); border-radius: var(--_rmd); padding: 12px 14px; cursor: pointer; transition: border-color .15s, transform .12s; font: inherit; }
.cvs-subcard:hover { border-color: var(--_blue); transform: translateY(-1px); }
.cvs-subname { font-family: var(--_disp); font-weight: 600; font-size: 13.5px; color: var(--_fg); line-height: 1.25; }
.cvs-subcount { flex: 0 0 auto; font-family: var(--_mono); font-size: 11px; color: var(--_fg3); background: var(--_surface); border: 1px solid var(--_line); border-radius: 999px; min-width: 22px; text-align: center; padding: 2px 7px; }

/* diagnose / live data / service item rows */
.cvs-itemlist { display: flex; flex-direction: column; border: 1px solid var(--_line); border-radius: var(--_rmd); overflow: hidden; }
.cvs-item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: var(--_surface); border: 0; border-bottom: 1px solid var(--_line); padding: 11px 15px; cursor: pointer; font: inherit; transition: background .12s; }
.cvs-item:last-child { border-bottom: 0; }
.cvs-item:hover { background: var(--_surface2); }
.cvs-item-flat { cursor: default; }
.cvs-item-flat:hover { background: var(--_surface); }
.cvs-item .cvs-ic { color: var(--_mint); font-weight: 700; }
.cvs-itemname { flex: 1; font-size: 13.5px; color: var(--_fg2); font-weight: 500; }
.cvs-item .cvs-chev { color: var(--_fg4); font-size: 20px; line-height: 1; }

.cvs-hint { font-family: var(--_mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--_fg4); padding: 2px 2px 0; }

/* popup — rendered into document.body so the .cvs local vars don't apply;
   theme tokens are used directly with explicit fallbacks so background is
   never transparent. */
.cvs-modal-overlay { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(11, 20, 38, .55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: cvs-fade .15s ease; }
@keyframes cvs-fade { from { opacity: 0; } to { opacity: 1; } }
.cvs-modal { width: 100%; max-width: 560px; max-height: 86vh; display: flex; flex-direction: column; background: var(--surface, #ffffff); color: var(--fg, #0b1426); border: 1px solid var(--line, #e6e9ef); border-radius: var(--r-lg, 10px); box-shadow: 0 24px 60px -12px rgba(11, 20, 38, .35); overflow: hidden; }
.cvs-modal-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line, #e6e9ef); background: var(--surface, #ffffff); }
.cvs-modal-head h3 { flex: 1; font-family: var(--f-display, system-ui, -apple-system, sans-serif); font-weight: 600; font-size: 17px; letter-spacing: -.01em; margin: 0; color: var(--fg, #0b1426); }
.cvs-modal-x { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--fg3, #6b7280); background: var(--surface2, #f3f4f6); border: 1px solid var(--line, #e6e9ef); border-radius: 50%; cursor: pointer; padding: 0; }
.cvs-modal-x:hover { color: var(--fg, #0b1426); border-color: var(--line2, #d1d5db); }
.cvs-modal-body { overflow-y: auto; overscroll-behavior: contain; padding: 6px 20px 20px; background: var(--surface, #ffffff); }

.cvs-setting { padding: 16px 0; border-bottom: 1px solid var(--line, #e6e9ef); }
.cvs-setting:last-child { border-bottom: 0; }
.cvs-setting-name { font-family: var(--f-display, system-ui, -apple-system, sans-serif); font-weight: 600; font-size: 14.5px; color: var(--fg, #0b1426); margin-bottom: 8px; }
.cvs-optvals { display: flex; flex-wrap: wrap; gap: 6px; }
.cvs-optval { font-size: 12px; color: var(--fg2, #374151); background: var(--surface2, #f3f4f6); border: 1px solid var(--line, #e6e9ef); border-radius: var(--r-md, 6px); padding: 3px 9px; }
.cvs-optdesc { font-size: 12.5px; color: var(--fg3, #6b7280); line-height: 1.55; margin: 9px 0 0; }

@media (max-width: 900px) {
  .cvs-subgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---- result-card extras (product image, disclaimer, pro-app note) ---- */
.cvs-product-img { display: block; flex: 0 0 auto; width: 80px; height: 80px; object-fit: contain; background: transparent; border: 0; padding: 0; }
.cvs-disclaimer { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.55; color: var(--_fg3); margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--_line); }
.cvs-disclaimer .cvs-info { flex: 0 0 auto; color: var(--_blue); font-size: 14px; line-height: 1.25; }
.cvs-pro-note { font-size: 12px; line-height: 1.55; color: var(--_fg3); background: var(--_surface2); border: 1px solid var(--_line); border-left: 3px solid var(--_blue); border-radius: var(--_rmd); padding: 10px 14px; margin: 4px 0 0; }

/* ---- neutralise theme (GeneratePress) <button>/<input>/a.button hover/focus
   ramp inside our scope. Without this, accordion headers, subgroup cards,
   item rows and the modal close button all flip to dark grey on hover. ---- */
.cvs button,
.cvs-modal-overlay button {
  background: transparent;
  color: inherit;
}
.cvs button:hover,
.cvs button:focus,
.cvs-modal-overlay button:hover,
.cvs-modal-overlay button:focus {
  background: transparent;
  color: inherit;
}
/* keep our primary action visually distinct on hover/focus */
.cvs a.cvs-btn-primary,
.cvs a.cvs-btn-primary:link,
.cvs a.cvs-btn-primary:visited { background: var(--_blue); color: #fff; }
.cvs a.cvs-btn-primary:hover,
.cvs a.cvs-btn-primary:focus { background: var(--_blue-dark, #3460c9); color: #fff; }
/* restore the small per-component hovers that the reset above neutralises */
.cvs button.cvs-subcard:hover,
.cvs button.cvs-subcard:focus { background: var(--_surface2); border-color: var(--_blue); }
.cvs button.cvs-item:hover,
.cvs button.cvs-item:focus { background: var(--_surface2); color: inherit; }
.cvs button.cvs-item-flat:hover,
.cvs button.cvs-item-flat:focus { background: var(--_surface); }
.cvs button.cvs-group-head:hover .cvs-group-chev,
.cvs button.cvs-group-head:focus .cvs-group-chev { color: var(--_fg); }
.cvs-modal-overlay button.cvs-modal-x:hover,
.cvs-modal-overlay button.cvs-modal-x:focus { background: var(--surface2, #f3f4f6); color: var(--fg, #0b1426); border-color: var(--line2, #d1d5db); }

/* ============================================================
   v1.5 — stepper removed; vehicle summary card moved into the
   sidebar (under the pick list); extra top clearance so the
   floating theme header never crowds the first content
   ============================================================ */
.cvs-result { display: block; }
.cvs-side-card { margin-top: 18px; }
.cvs-side-card:empty { display: none; }
.cvs-side-card .cvs-vehicle { padding: 22px; }
.cvs-side { padding-top: 56px; }
.cvs-main { padding-top: 64px; }
@media (max-width: 900px) {
  .cvs-side { padding-top: 32px; }
  .cvs-main { padding-top: 24px; }
}

/* ============================================================
   v1.6 — full-height sticky sidebar, group badge/chevron pushed
   to the row edge, tabular pick numbers, mobile: restored top
   breathing room + selection confirmation as a sticky footer
   ============================================================ */
/* white sidebar runs the full page height; its content follows you */
.cvs { min-height: calc(100vh - 88px); }
/* results are full-width now — count badge + chevron belong at the far right */
.cvs-group-head .cvs-grow { flex: 1; }
/* pick numbers: theme maps the mono var to a proportional font — force
   even digits + true centering */
.cvs-num { line-height: 1; text-align: center; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cvs-side-card { margin-top: 22px; }

@media (min-width: 901px) {
  .cvs-side-inner { position: sticky; top: 104px; }
}

@media (max-width: 900px) {
  /* the removed stepper used to provide this air */
  .cvs-side { padding-top: 40px; }
  .cvs-main { padding-top: 36px; padding-bottom: 110px; }

  /* selection confirmation: sticky footer bar (tap a cell to jump back) */
  .cvs-pick-list {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    border: 0;
    border-top: 1px solid var(--_line);
    border-radius: 0;
    background: var(--_surface);
    box-shadow: 0 -8px 24px rgba(11, 20, 38, 0.08);
  }
  .cvs-pick { border-bottom: 0; border-right: 1px solid var(--_line); padding: 10px 12px; gap: 8px; }
  .cvs-pick:last-child { border-right: 0; }
  .cvs-pick .cvs-check { display: none; }
  .cvs-pick > div { min-width: 0; }
  .cvs-num { width: 18px; height: 18px; font-size: 9px; flex: 0 0 auto; }
  .cvs-k { font-size: 8px; letter-spacing: 0.08em; margin-bottom: 1px; }
  .cvs-v { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ============================================================
   v1.7 — mobile result bar: at the result step the pick-list
   footer swaps for reset + vehicle + price + Pirkti, and the
   page lands on the feature list (buy lives in the bar)
   ============================================================ */
.cvs-mobile-bar { display: none; }
@media (max-width: 900px) {
  .cvs--result .cvs-pick-list { display: none; }
  .cvs-mobile-bar[hidden] { display: none !important; }
  .cvs--result .cvs-mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: 10px 16px;
    background: var(--_surface);
    border-top: 1px solid var(--_line);
    box-shadow: 0 -8px 24px rgba(11, 20, 38, 0.08);
  }
  .cvs-mb-reset {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    background: var(--_surface);
    border: 1px solid var(--_line);
    border-radius: var(--_rmd);
    color: var(--_fg3);
    font-size: 18px;
    cursor: pointer;
  }
  .cvs-mb-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .cvs-mb-name { font-family: var(--_disp); font-weight: 600; font-size: 13px; color: var(--_fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cvs-mb-price { font-family: var(--_disp); font-weight: 700; font-size: 15px; color: var(--_fg); }
  .cvs-mb-buy { flex: 0 0 auto; white-space: nowrap; }
}

/* ============================================================
   v1.8 — the floating header now sits ON TOP of the white
   sidebar (module pulled up behind it), wider side panel,
   result-step back button removed (pick list covers it)
   ============================================================ */
.cvs {
  grid-template-columns: 360px 1fr;
  margin-top: -72px;   /* theme header strip height — sidebar white runs under it */
  min-height: 100vh;
}
.cvs-side { padding-top: 128px; }
.cvs-main { padding-top: 136px; }
@media (max-width: 900px) {
  .cvs { grid-template-columns: 1fr; }
  .cvs-side { padding-top: 112px; }
  .cvs-main { padding-top: 36px; }
}

/* v1.11 — bottom bars: max(cushion, safe-area) — no double padding */
@media (max-width: 900px) {
  .cvs-pick-list { padding-bottom: max(0px, env(safe-area-inset-bottom, 0px)); }
  .cvs--result .cvs-mobile-bar { padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
}
