/* ===============================================
   PMH CONFIGURATOR STYLES
   =============================================== */

[hidden] { display: none !important; }

/* PHASE B: Hide the global site header on configurator pages — cfg-topbar takes over.
   Scoped via body:has(.cfg-page) so it only applies when configurator is rendered. */
body:has(.cfg-page) .pmh-header-bottom,
body:has(.cfg-page) .pmh-header-top {
  display: none !important;
}

/* PHASE B: Force a clean white background on configurator pages (defensive against
   any beige/off-white set by wrapper layouts further up the tree). */
body:has(.cfg-page),
body:has(.cfg-page) main,
body:has(.cfg-page) .middle-bottom {
  background: #fff !important;
}

/* PASS C1: Let cfg-topbar break out of the 1240px .pmh-content wrapper so its
   background spans the full viewport and it sits flush at the very top.
   .cfg-page keeps its own max-width below, so content stays centered. */
body:has(.cfg-page) main.pmh-content {
  max-width: none;
  padding: 0;
  min-height: 0;
}

/* ─── Layout (Phase B: single-column, no sidebar; cfg-topbar above) ─── */
.cfg-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 32px 80px;
  background: #fff;
}

/* Legacy wrapper kept as block in case of cached/older markup */
.cfg-layout { display: block; }
.cfg-main   { display: block; }

/* ─── Configurator topbar (sticky, full-width, frosted glass) ─── */
.cfg-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.78));
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03), 0 8px 22px -12px rgba(15, 23, 42, 0.10);
}
/* Brand accent line above topbar — subtle gradient hint */
.cfg-topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-pmh-blue), var(--color-pmh-red));
  opacity: 0.9;
}
.cfg-topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 32px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cfg-topbar-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cfg-topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.cfg-topbar-actions .cfg-mini-summary {
  flex: 1 1 auto;
  min-width: 0;
}
.cfg-topbar-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
}
/* Compact nav buttons inside topbar (override base sizes) */
.cfg-topbar-nav .cfg-btn-back,
.cfg-topbar-nav .cfg-btn-next,
.cfg-topbar-nav .cfg-btn-skip {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
  min-height: 36px;
  width: auto;
  margin: 0;
}
.cfg-topbar-nav .cfg-btn-next {
  background: linear-gradient(135deg, var(--color-pmh-blue), #0086cc);
  box-shadow: 0 4px 12px -4px rgba(0,106,165,0.32);
  transition: background 0.2s, box-shadow 0.2s, transform 0.05s;
}
.cfg-topbar-nav .cfg-btn-next:hover:not(:disabled) {
  background: linear-gradient(135deg, #005888, #006ea8);
  box-shadow: 0 6px 18px -4px rgba(0,106,165,0.40);
}
.cfg-topbar-nav .cfg-btn-next:active:not(:disabled) { transform: translateY(1px); }
.cfg-topbar-nav .cfg-btn-skip {
  padding: 8px 10px;
  font-size: 12px;
  text-decoration: none;
}

/* ─── Nav hint — why "Pokračovat" is still disabled ─────────────────────────
   Row 3 of the sticky topbar, so it sits directly under the Continue button
   and stays visible while the customer scrolls the options.
   Brand blue, not a warning colour: nothing is wrong, the customer simply has
   a choice left to make. Same pill shape and tint as .cfg-summary-code, and
   the same blue .cfg-rod-fill-section.is-required already uses to mean
   "this one is mandatory". */
.cfg-nav-hint {
  align-self: flex-end;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 4px;
  max-width: 100%;
  margin: -2px 0 0;
  padding: 6px 15px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-pmh-blue);
  background: #eef5fc;
  border: 1px solid rgba(0, 106, 165, 0.22);
  border-radius: 999px;
}
.cfg-nav-hint[hidden] { display: none; }
.cfg-nav-hint b {
  font-weight: 600;
  white-space: nowrap;
}

/* ─── PASS M (FÁZE 2): Restart button — secondary/ghost, between Back and Next ─── */
.cfg-topbar-nav .cfg-btn-restart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  min-height: 36px;
  color: #64748b;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-btn-restart:hover {
    color: #1e293b;
    border-color: rgba(15, 23, 42, 0.28);
    background: rgba(15, 23, 42, 0.04);
  }
}
.cfg-btn-restart:focus-visible {
  outline: 2px solid var(--color-pmh-blue);
  outline-offset: 2px;
}
.cfg-btn-restart:active { background: rgba(15, 23, 42, 0.08); }
.cfg-btn-restart-icon { font-size: 15px; line-height: 1; opacity: 0.8; }
@media (max-width: 600px) {
  /* Mobile: icon-only ↺ (aria-label keeps it accessible) */
  .cfg-btn-restart .cfg-btn-restart-label { display: none; }
  .cfg-topbar-nav .cfg-btn-restart { padding: 6px 10px; min-height: 34px; gap: 0; }
}

/* ─── Topbar logo ─── */
.cfg-topbar-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  opacity: 0.82;
  transition: opacity 0.15s;
  text-decoration: none;
  margin-right: 4px;
}
.cfg-topbar-logo:hover { opacity: 1; }
.cfg-topbar-logo img {
  height: 22px;
  width: auto;
  display: block;
}

/* ─── Exit button + divider (exit control) ─── */
.cfg-exit-divider {
  display: block;
  width: 1px;
  height: 20px;
  background: rgba(15, 23, 42, 0.12);
  margin: 0 4px;
  flex-shrink: 0;
}
.cfg-btn-exit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: inherit;
  color: #64748b;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  flex-shrink: 0;
}
.cfg-btn-exit:hover,
.cfg-btn-exit:focus-visible {
  color: #1e293b;
  border-color: rgba(15, 23, 42, 0.28);
  background: rgba(15, 23, 42, 0.04);
  outline: none;
}
.cfg-btn-exit:active {
  background: rgba(15, 23, 42, 0.08);
}
.cfg-btn-exit-icon {
  font-size: 15px;
  line-height: 1;
  opacity: 0.7;
}

/* ─── Exit confirmation modal ─── */
.cfg-exit-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cfg-exit-modal[hidden] { display: none; }
.cfg-exit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.cfg-exit-modal-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  width: min(92vw, 380px);
  box-shadow: 0 20px 60px -12px rgba(15, 23, 42, 0.22), 0 4px 16px -4px rgba(15, 23, 42, 0.10);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cfg-exit-modal-title {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}
.cfg-exit-modal-text {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
  line-height: 1.55;
}
.cfg-exit-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.cfg-exit-modal-stay,
.cfg-exit-modal-leave {
  flex: 1;
  padding: 10px 16px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.cfg-exit-modal-stay {
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.10);
}
.cfg-exit-modal-stay:hover {
  background: rgba(15, 23, 42, 0.10);
}
.cfg-exit-modal-leave {
  background: linear-gradient(135deg, var(--color-pmh-blue), #0086cc);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(0,106,165,0.35);
}
.cfg-exit-modal-leave:hover {
  background: linear-gradient(135deg, #005888, #006ea8);
}

/* Mobile: hide label, show only × icon */
@media (max-width: 600px) {
  .cfg-btn-exit-label { display: none; }
  .cfg-btn-exit {
    padding: 6px 10px;
    gap: 0;
  }
  .cfg-btn-exit-icon { opacity: 0.9; }
  .cfg-exit-divider { margin: 0 2px; }
}

/* ─── Progress bar (Phase B: lives inside .cfg-topbar — topbar is the sticky element) ── */
.cfg-progress-labels,
.cfg-progress {
  position: static;
  background: transparent;
  z-index: auto;
}
.cfg-progress-labels {
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.cfg-progress {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  border-bottom: none;
}

.cfg-progress-step {
  flex: 1;
  min-width: 60px;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  transition: background 0.22s, opacity 0.22s, box-shadow 0.22s;
  position: relative;
  cursor: default;
}
/* B1: Brand gradient active step */
.cfg-progress-step.active  {
  background: linear-gradient(90deg, var(--color-pmh-blue), var(--color-pmh-red));
  box-shadow: 0 0 0 1px rgba(0,106,165,.18);
}
.cfg-progress-step.completed { background: var(--color-pmh-blue); }
.cfg-progress-step.empty { background: #d9dee5; }
.cfg-progress-step.skipped { background: #d5d9de; opacity: 0.5; }

.cfg-progress-label {
  flex: 1;
  min-width: 60px;
  font-size: 10px;
  color: #999;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
  cursor: default;
  padding: 4px 2px;
}
/* B1: Whole step label clickable */
.cfg-progress-step.is-clickable,
.cfg-progress-label.is-clickable {
  cursor: pointer;
}
.cfg-progress-label.is-clickable:hover {
  color: var(--color-pmh-blue);
}
.cfg-progress-label.active { color: var(--color-pmh-blue); font-weight: 700; }
.cfg-progress-label.completed   { color: #456b8b; font-weight: 600; }
.cfg-progress-label.empty { color: #9aa3ad; }

/* ─── Steps ──────────────────────────────────── */
.cfg-step {
  display: none;
}
.cfg-step.active {
  display: block;
  animation: cfg-fade-in 0.25s ease;
}

@keyframes cfg-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cfg-step-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-pmh-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

/* PASS C2 (C2-09): tighter, more confident step heading + subtle hairline
   under it so each step reads as its own self-contained "chapter". */
.cfg-step-heading {
  font-size: 30px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

/* ─── Navigation buttons ─────────────────────── */
.cfg-nav {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  align-items: center;
}
.cfg-nav-sidebar {
  position: sticky;
  top: 86px;
  z-index: 8;
  background: #fff;
  padding-top: 10px;
  width: 100%;
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 10px;
}
.cfg-nav-sidebar .cfg-btn-back,
.cfg-nav-sidebar .cfg-btn-next,
.cfg-nav-sidebar .cfg-btn-skip {
  width: 100%;
  margin: 0;
  justify-content: center;
}
.cfg-nav-sidebar .cfg-btn-skip {
  grid-column: 1 / -1;
  margin-left: 0;
}

.cfg-btn-back.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.cfg-btn-back {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-inter);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.cfg-btn-back:hover {
  border-color: var(--color-dark);
  color: var(--color-dark);
}

.cfg-btn-next {
  background: var(--color-pmh-blue);
  border: none;
  color: #fff;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-inter);
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.cfg-btn-next:hover:not(:disabled) { background: #005080; }
.cfg-btn-next:disabled { opacity: 0.4; cursor: default; }

.cfg-btn-skip {
  background: none;
  border: none;
  color: #999;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-inter);
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
  margin-left: auto;
}
.cfg-btn-skip:hover { color: var(--color-text); }

/* ─── Step 1: Heating type ───────────────────── */
.cfg-heating-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 640px;
}

@media (max-width: 600px) {
  .cfg-heating-cards { grid-template-columns: 1fr; }
}

.cfg-heating-card {
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 28px 20px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.25s, box-shadow 0.25s, transform 0.18s;
  user-select: none;
  background: #fff;
}
/* PASS C1: hover lift + soft brand shadow
   MOBILE-HOVER-FIX: hover-capable devices only — on touch the first tap
   used to merely trigger sticky :hover, forcing a second tap to select. */
@media (hover: hover) and (pointer: fine) {
  .cfg-heating-card:hover {
    border-color: var(--color-pmh-blue);
    background: linear-gradient(135deg, #f0f7ff, #fff6f5);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -10px rgba(0,106,165,0.25);
  }
}
/* PASS C1: selected state — brand gradient tint + crisper outline */
.cfg-heating-card.selected {
  border-color: var(--color-pmh-blue);
  border-width: 2px;
  background: linear-gradient(135deg, rgba(0,106,165,0.10), rgba(163,42,39,0.05));
  box-shadow: 0 4px 14px -4px rgba(0,106,165,0.22);
}
.cfg-heating-card.selected .cfg-heating-name {
  color: var(--color-pmh-blue);
  font-weight: 700;
}
.cfg-heating-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: var(--color-pmh-blue);
  margin-inline: auto;
}
.cfg-heating-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke-width: 1.9;
}
.cfg-heating-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
}
.cfg-heating-desc {
  font-size: 13px;
  color: #64748b;
  margin-top: 5px;
  font-weight: 400;
}
.cfg-heating-note {
  font-size: 12px;
  color: var(--color-pmh-blue);
  margin-top: 4px;
  font-style: italic;
}

/* PASS C1: Step 1 split — two sections (radiator vs dryer). Visual separation
   so the dryer no longer reads as a 4th heating type. */
.cfg-heat-section {
  margin-top: 4px;
  margin-bottom: 22px;
}
.cfg-heat-section + .cfg-heat-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed #dbe1ea;
}
.cfg-heat-section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 14px;
}
.cfg-heat-section--dryer .cfg-heat-section-title {
  color: var(--color-pmh-blue);
}

/* PASS C2 (C2-01) + PASS C4 (#2): hero banner above the radiator heating-type
   cards. PASS C4: dimensions and image treatment now mirror the dryer card
   exactly so the two introductory blocks read as a matched pair (compact media
   box, no inner white frame, same gradient backdrop). */
.cfg-heat-section-banner {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 26px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #f1f7fd 60%, #fdf6f5 100%);
  border: 1px solid #e2eaf3;
  box-shadow: 0 10px 28px -18px rgba(15, 52, 96, 0.18);
  max-width: 640px;
}
.cfg-heat-section-banner-visual {
  width: 130px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
  /* PASS C4 (#2): drop the inner white frame + border around the product photo
     — it was the most "humpolácky" bit of step 1. */
  background: transparent;
  border: 0;
  padding: 0;
}
.cfg-heat-section-banner-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* Soft drop-shadow so the image reads as a product render against the gradient. */
  filter: drop-shadow(0 6px 14px rgba(15, 52, 96, 0.15));
}
.cfg-heat-section-banner-text { min-width: 0; }
.cfg-heat-section-banner .cfg-heat-section-title {
  font-size: 18px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-pmh-blue);
  margin: 0 0 6px;
}
.cfg-heat-section-lede {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}
/* Dryer section kicker — slim "Nebo" label to separate the two flows */
.cfg-heat-section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.cfg-heat-section-title--dryer {
  font-size: 18px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
  color: var(--color-pmh-blue) !important;
  margin: 0 0 14px !important;
}
@media (max-width: 600px) {
  .cfg-heat-section-banner {
    grid-template-columns: 88px 1fr;
    gap: 14px;
    padding: 16px 18px;
  }
  .cfg-heat-section-banner-visual { width: 88px; height: 104px; }
  .cfg-heat-section-banner .cfg-heat-section-title { font-size: 16px; }
  .cfg-heat-section-lede { font-size: 13px; }
}

/* PASS C1: wide horizontal dryer tile, deliberately different layout vs heating cards. */
/* PASS C4 (#2): grid-template-columns + max-width now match .cfg-heat-section-banner
   so the radiator hero and the dryer tile read as a matched pair of cards. */
.cfg-heating-card--dryer {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  align-items: center;
  text-align: left;
  padding: 22px 26px;
  max-width: 640px;
  background: linear-gradient(135deg, #f8fbff 0%, #f1f7fd 60%, #fdf6f5 100%);
  border-color: #d2dbe6;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-heating-card--dryer:hover {
    background: linear-gradient(135deg, #eff6ff, #fbeae8);
    border-color: var(--color-pmh-blue);
  }
}
.cfg-heating-card--dryer.selected {
  background: linear-gradient(135deg, rgba(0,106,165,0.12), rgba(163,42,39,0.08));
}
.cfg-heating-card-dryer-visual {
  width: 130px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  /* PASS C4 (#2): match the radiator hero banner — remove inner white frame so
     both step-1 product images sit directly on the section gradient. */
  background: transparent;
  border: 0;
  padding: 0;
}
.cfg-heating-card-dryer-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(15, 52, 96, 0.15));
}
.cfg-heating-card-dryer-svg {
  width: 60%;
  height: 60%;
  color: var(--color-pmh-blue);
}
.cfg-heating-card-dryer-text { min-width: 0; }
.cfg-heating-card-dryer-text .cfg-heating-name {
  font-size: 18px;
  margin-bottom: 4px;
}
.cfg-heating-card-dryer-text .cfg-heating-desc {
  margin-top: 2px;
  line-height: 1.45;
}
.cfg-heating-card-dryer-link-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
}
.cfg-heating-card-dryer-link-hint .cfg-heating-note-link {
  color: var(--color-pmh-blue);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.cfg-heating-card-dryer-link-hint .cfg-heating-note-link:hover {
  border-bottom-style: solid;
}
@media (max-width: 600px) {
  .cfg-heating-card--dryer {
    grid-template-columns: 88px 1fr;
    gap: 14px;
    padding: 16px 18px;
  }
  .cfg-heating-card-dryer-visual { width: 88px; height: 104px; padding: 0; }
}

/* PASS C1: gentle pulse used as a pre-advance acknowledgement on one-click flows. */
@keyframes cfg-advance-pulse {
  0%   { transform: scale(1);    box-shadow: 0 4px 14px -4px rgba(0,106,165,0.22); }
  50%  { transform: scale(1.025); box-shadow: 0 10px 28px -6px rgba(0,106,165,0.35); }
  100% { transform: scale(1);    box-shadow: 0 4px 14px -4px rgba(0,106,165,0.22); }
}
.cfg-heating-card.is-advancing,
.cfg-radiator-card.is-advancing,
.cfg-color-card.is-advancing,
.cfg-variant-option.is-advancing {
  animation: cfg-advance-pulse 0.28s ease;
}

/* ─── Step 1: Intro + detail panel ──────────── */
.cfg-step-1-intro {
  font-size: 15px;
  color: #64748b;
  margin: 0 0 22px;
  max-width: 580px;
  line-height: 1.55;
}

/* PASS C2 (C2-09): frosted-glass refresh for the step-1 detail panel — matches
   the topbar tonality and adds quiet brand accent without heavy fills. */
.cfg-heat-detail-panel {
  max-width: 640px;
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.72);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  padding: 18px 22px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  box-shadow: 0 12px 28px -20px rgba(15, 52, 96, 0.18);
  position: relative;
  overflow: hidden;
}
.cfg-heat-detail-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-pmh-blue), var(--color-pmh-red));
  opacity: 0.7;
}
.cfg-heat-detail-panel.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cfg-heat-detail-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 6px;
}
.cfg-heat-detail-body {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}
.cfg-heat-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-pmh-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.cfg-heat-detail-link:hover {
  border-color: var(--color-pmh-blue);
}

/* ─── Step 2: Radiator grid ──────────────────── */
.cfg-radiator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.cfg-radiator-card {
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.18s, background 0.25s;
  text-align: center;
  user-select: none;
  background: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-radiator-card:hover {
    border-color: var(--color-pmh-blue);
    box-shadow: 0 10px 24px -10px rgba(0,106,165,0.25);
    transform: translateY(-2px);
  }
}
.cfg-radiator-card.selected {
  border-color: var(--color-pmh-blue);
  border-width: 2px;
  background: linear-gradient(135deg, rgba(0,106,165,0.10), rgba(163,42,39,0.05));
  box-shadow: 0 6px 18px -6px rgba(0,106,165,0.28);
}
.cfg-radiator-card.selected .cfg-radiator-name {
  color: var(--color-pmh-blue);
  font-weight: 700;
}
.cfg-radiator-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 6px;
}
.cfg-radiator-img-wrap .img-main,
.cfg-radiator-img-wrap .img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.35s ease;
}
.cfg-radiator-img-wrap .img-main { opacity: 1; z-index: 1; }
.cfg-radiator-img-wrap .img-hover { opacity: 0; z-index: 2; }
/* PASS C4 (#3): only fade out img-main on hover when there's actually an
   img-hover sibling to fade in. Without this gate, dryers / products that
   only ship one photo went BLANK on hover. */
@media (hover: hover) and (pointer: fine) {
  .cfg-radiator-card:hover .cfg-radiator-img-wrap:has(.img-hover) .img-main { opacity: 0; }
  .cfg-radiator-card:hover .cfg-radiator-img-wrap:has(.img-hover) .img-hover { opacity: 1; }
}
.cfg-radiator-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--color-lightgray);
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 28px;
}
.cfg-radiator-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
}

/* ─── Step 3: Variants ───────────────────────── */
/* PASS C2-HOTFIX (#2): give the SVG preview MORE width than the variant list
   (1.4fr vs 1fr) and a generous gap. The variant list is short text rows; the
   SVG is the visual centerpiece — it deserves the wider column. */
.cfg-variants-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.6fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 700px) {
  .cfg-variants-layout { grid-template-columns: 1fr; }
}

.cfg-variant-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* B7: SVG preview smaller */

.cfg-variant-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-variant-option:hover {
    border-color: var(--color-pmh-blue);
    background: #f0f7ff;
  }
}
.cfg-variant-option.selected {
  border-color: var(--color-pmh-blue);
  border-width: 2px;
  background: #e8f3fb;
  box-shadow: 0 2px 8px rgba(0,106,165,0.10);
}
.cfg-variant-option.selected .cfg-variant-label {
  color: var(--color-pmh-blue);
  font-weight: 700;
}

.cfg-variant-radio {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-pmh-blue);
}

.cfg-variant-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.4;
}

.cfg-variant-dims {
  font-size: 13px;
  color: #666;
}

/* PASS C2-HOTFIX (#2): the previous version anchored the SVG at its intrinsic
   width/height attributes (e.g. 30×68 from the file root) in the middle of a
   much larger frame, so it looked tiny. The fix forces the <img> to fill the
   frame (width:100%; height:100%) with object-fit:contain — the SVG now scales
   to whichever frame dimension is the limiting one. Frame uses a tall 3/4
   aspect because most variant drawings are tall radiator dimensional sketches. */
.cfg-svg-preview {
  width: 100%;
  max-width: 270px;
  margin: 0 auto;
  padding: 18px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid #e2eaf3;
  border-radius: 16px;
  box-shadow: 0 14px 32px -22px rgba(15, 52, 96, 0.20);
  position: relative;
  aspect-ratio: 3 / 4;
  display: block;
}
.cfg-svg-preview img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s, transform 0.3s;
}
.cfg-svg-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .cfg-svg-preview {
    max-width: 92vw;
    padding: 12px;
    aspect-ratio: 4 / 5;
  }
}

/* ─── Step 4: Colors (colorizing) ───────────── */
.cfg-color-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 800px) {
  .cfg-color-layout { grid-template-columns: 1fr; }
  .cfg-color-preview-col { order: -1; }
}

.cfg-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

/* PASS C2 (C2-09): color card — slightly larger touch target, cleaner border,
   gentler selected-state outline so the grid feels more elegant than tight. */
.cfg-color-card {
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  padding: 10px 8px 8px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.15s, background 0.25s;
  text-align: center;
  user-select: none;
  background: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-color-card:hover {
    border-color: var(--color-pmh-blue);
    box-shadow: 0 8px 20px -10px rgba(0,106,165,0.28);
    transform: translateY(-1px);
  }
}
.cfg-color-card.selected {
  border-color: var(--color-pmh-blue);
  background: linear-gradient(135deg, #f5faff, #ffffff 70%);
  box-shadow: 0 0 0 2px rgba(0,106,165,0.30), 0 8px 22px -10px rgba(0,106,165,0.30);
}

.cfg-color-sample {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
  background: #f0f0f0;
}
.cfg-color-sample img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cfg-color-sample-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #999;
}

.cfg-color-price {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cfg-color-stock {
  font-size: 10px;
}
.cfg-color-stock.in-stock { color: #22a06b; }
.cfg-color-stock.on-order { color: #888; }

/* PASS C2 (C2-05): finish-type chip on color card — lets the user tell apart
   colors that share a sample image but differ by finish (lesk vs pololesk). */
.cfg-color-type-chip {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #475569;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px 6px;
  margin: 2px 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: lowercase;
}
.cfg-color-card.selected .cfg-color-type-chip {
  background: #dbeafe;
  color: var(--color-pmh-blue);
}

/* Custom RAL card */
.cfg-ral-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f8f8, #e8e8e8);
}
.cfg-ral-card .cfg-color-sample {
  background: linear-gradient(135deg, #ddd, #bbb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-pmh-blue);
}

/* Colorizing preview */
/* PASS C2 (C2-09): softer preview surround so the bathroom-tile background
   reads as the foreground subject. */
.cfg-color-preview {
  background: #f5f5f5;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1/1;
  box-shadow: inset 0 0 0 1px rgba(15, 52, 96, 0.06),
              0 20px 40px -28px rgba(15, 52, 96, 0.22);
  position: relative;
  background-size: cover;
  background-position: center;
  border: 1px solid #e0e0e0;
}

.cfg-radiator-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  transition: opacity 0.3s;
}

/* RAL layers */
.cfg-rals-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  display: none;
}

.cfg-ralc-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: none;
  padding: 0;
}

/* V1 overlay slots (empty, display:none) */
.cfg-accessories-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cfg-overlay-valve,
.cfg-overlay-rod {
  display: none;
  position: absolute;
}

/* PASS C2 (C2-09): color detail bar — frosted card so it reads as a quiet info
   panel under the preview rather than a flat plain row. */
/* PASS C4 (#4): reserve a fixed footprint so the bar doesn't collapse to a
   couple of pixels when the user moves the cursor between color swatches —
   that was the "skok footeru / layoutu" the reviewer flagged. */
.cfg-color-details-bar {
  margin-top: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(248, 251, 255, 0.7);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  box-shadow: 0 10px 24px -20px rgba(15, 52, 96, 0.20);
  min-height: 102px;
}
/* Reserve a line of height per row even when the textContent is empty. */
.cfg-detail-title { font-size: 15px; font-weight: 600; color: var(--color-dark); min-height: 1.3em; line-height: 1.3; }
.cfg-detail-code  { font-size: 13px; color: #666; font-family: monospace; letter-spacing: 0.03em; min-height: 1.3em; line-height: 1.3; }
.cfg-detail-price { font-size: 18px; font-weight: 700; color: var(--color-pmh-blue); min-height: 1.3em; line-height: 1.3; }
.cfg-detail-stock { font-size: 13px; min-height: 1.3em; line-height: 1.3; }
.cfg-detail-stock.in-stock { color: #22a06b; }
.cfg-detail-stock.on-order { color: #888; }

.cfg-tile-chooser {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
}
.cfg-tile-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.cfg-tile-thumb.active { border-color: var(--color-pmh-blue); }
@media (hover: hover) and (pointer: fine) {
  .cfg-tile-thumb:hover { border-color: var(--color-pmh-blue); }
}
.cfg-tile-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cfg-tile-upload {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-tile-upload:hover { background: #e0e0e0; color: #666; }
}

/* ─── Step 5: Connection ─────────────────────── */
.cfg-connection-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
}

.cfg-connection-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.25s, box-shadow 0.25s, transform 0.15s;
  user-select: none;
  background: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-connection-card:hover {
    border-color: var(--color-pmh-blue);
    background: linear-gradient(135deg, #f0f7ff, #fdf6f5);
    box-shadow: 0 10px 22px -14px rgba(0, 106, 165, 0.25);
    transform: translateY(-1px);
  }
}
.cfg-connection-card.selected {
  border-color: var(--color-pmh-blue);
  border-width: 2px;
  background: linear-gradient(135deg, rgba(0,106,165,0.10), rgba(163,42,39,0.04));
  box-shadow: 0 6px 16px -6px rgba(0,106,165,0.25);
}
.cfg-connection-card.selected .cfg-connection-name {
  color: var(--color-pmh-blue);
  font-weight: 700;
}
/* PASS C4 (#5): drop the white inner frame around the connection SVG — the
   icon now sits directly on the card with a soft gradient backdrop so it
   reads as one cohesive composition instead of a small framed glyph. */
.cfg-connection-icon {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  border: 0;
}
.cfg-connection-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(15, 52, 96, 0.08));
}
.cfg-connection-name { font-size: 15px; font-weight: 500; color: var(--color-dark); }

/* ─── Step 6: Valves ─────────────────────────── */
.cfg-valve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.cfg-valve-card {
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-valve-card:hover {
    border-color: var(--color-pmh-blue);
    box-shadow: 0 4px 12px rgba(0,106,165,0.12);
  }
}
.cfg-valve-card.selected {
  border-color: var(--color-pmh-blue);
  border-width: 2px;
  background: #e8f3fb;
  box-shadow: 0 2px 10px rgba(0,106,165,0.12);
}
.cfg-valve-card.selected .cfg-valve-name {
  color: var(--color-pmh-blue);
  font-weight: 700;
}
.cfg-valve-img-wrap {
  position: relative;
  width: 100%;
  /* PASS C8: square container matches typical valve photo format; removes
     wide letterbox white-space that appeared with the old 4/3 ratio. */
  aspect-ratio: 1 / 1;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
}
.cfg-valve-img-wrap .img-main,
.cfg-valve-img-wrap .img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.35s ease;
}
.cfg-valve-img-wrap .img-main { opacity: 1; z-index: 1; }
.cfg-valve-img-wrap .img-hover { opacity: 0; z-index: 2; }
/* PASS C4 (#3): only fade-swap when both photos exist (parity with radiator). */
@media (hover: hover) and (pointer: fine) {
  .cfg-valve-card:hover .cfg-valve-img-wrap:has(.img-hover) .img-main { opacity: 0; }
  .cfg-valve-card:hover .cfg-valve-img-wrap:has(.img-hover) .img-hover { opacity: 1; }
}
/* PASS C2 (C2-07): when a color pill is hovered/active, force the secondary
   valve photo to stay visible as a fallback color preview until per-color
   assets are wired up. */
.cfg-valve-img-wrap.is-color-fallback .img-main { opacity: 0; }
.cfg-valve-img-wrap.is-color-fallback .img-hover { opacity: 1; }

/* PASS M (FÁZE 3): mobile swipe between the two valve photos.
   Desktop keeps the hover fade-swap above; on touch devices the wrapper
   becomes a horizontal scroll-snap carousel — the user swipes to the
   second photo instead of hovering. Dots below hint that a second photo
   exists. Only cards that ship BOTH photos render the dots (see loadStep6). */
.cfg-swipe-dots { display: none; }
@media (hover: none), (pointer: coarse) {
  .cfg-valve-img-wrap:has(.img-hover) {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cfg-valve-img-wrap:has(.img-hover)::-webkit-scrollbar { display: none; }
  .cfg-valve-img-wrap:has(.img-hover) .img-main,
  .cfg-valve-img-wrap:has(.img-hover) .img-hover {
    position: static;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    opacity: 1 !important; /* both slides always visible (overrides hover/fallback fades) */
  }
  .cfg-swipe-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: -4px 0 6px;
  }
  .cfg-swipe-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.18);
    transition: background 0.18s;
  }
  .cfg-swipe-dot.is-active { background: var(--color-pmh-blue); }
}

/* PASS C2 (C2-07): valve color pills with a leading color dot — keeps parity
   with the rod swatch language. */
.cfg-valve-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(15,23,42,0.10);
  flex-shrink: 0;
  display: inline-block;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.4), 0 1px 2px rgba(0,0,0,0.08);
  /* Override the generic .cfg-accessory-color-pill span rule below. */
  margin-left: 0;
  color: inherit;
  font-weight: inherit;
}
.cfg-accessory-color-pill.selected .cfg-valve-color-dot {
  border-color: rgba(0,106,165,0.40);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.5), 0 0 0 2px rgba(0,106,165,0.18);
}
.cfg-valve-color-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Neutral text style — only the price gets the brand color. */
  color: #1e293b;
  font-weight: 600;
  margin-left: 0;
}
.cfg-valve-color-price {
  margin-left: auto;
  color: var(--color-pmh-blue);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.cfg-valve-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-lightgray);
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 28px;
}
.cfg-valve-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 6px;
}

/* Left/Right variant selector — dedicated section below valve grid */
/* PASS C2-HOTFIX (#4): redesigned as image-led cards so the user sees the
   actual L vs R direction drawing (from x_media adresar='sady_r_l_u_obr'),
   not abstract buttons. Falls back to arrows when no image asset exists. */
.cfg-valve-lr-select {
  margin-top: 20px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  border: 1px solid #dbe2ea;
  border-radius: 14px;
}
.cfg-valve-lr-label {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-inter);
  color: #1f2937;
  margin-bottom: 6px;
}
.cfg-valve-lr-legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #64748b;
  margin: 0 0 12px;
}
.cfg-valve-lr-legend-item { display: inline-flex; align-items: center; gap: 4px; }
.cfg-valve-lr-arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  text-align: center;
  line-height: 16px;
  font-weight: 700;
  color: var(--color-pmh-blue);
}
/* PASS C4 (#5): red for "přívod" (hot supply), blue for "zpátečka" (return). */
.cfg-valve-lr-arrow--feed   { color: var(--color-pmh-red, #a32a27); }
.cfg-valve-lr-arrow--return { color: var(--color-pmh-blue); }
.cfg-valve-lr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cfg-lr-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .12s;
  font-family: var(--font-inter);
  align-items: center;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-lr-card:hover {
    border-color: var(--color-pmh-blue);
    box-shadow: 0 10px 22px -12px rgba(0,106,165,.30);
    transform: translateY(-1px);
  }
}
.cfg-lr-card.active {
  border-color: var(--color-pmh-blue);
  background: linear-gradient(135deg, rgba(0,106,165,0.08), rgba(163,42,39,0.04));
  box-shadow: 0 6px 16px -6px rgba(0,106,165,.30);
}
.cfg-lr-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* PASS C4 (#5): soft gradient surround (no hard border) so the actual
     product page image — with its red/blue arrows — reads as the subject. */
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  border: 0;
  padding: 6px;
  box-sizing: border-box;
}
.cfg-lr-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(15, 52, 96, 0.12));
}
.cfg-lr-card-fallback {
  font-size: 56px;
  color: #94a3b8;
  font-weight: 200;
  line-height: 1;
}
.cfg-lr-card.active .cfg-lr-card-fallback { color: var(--color-pmh-blue); }
.cfg-lr-card-label {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}
.cfg-lr-card.active .cfg-lr-card-label {
  color: var(--color-pmh-blue);
}
/* Legacy in-card lr buttons (rod-fill side selector still uses .cfg-lr-btn) */
.cfg-valve-lr-buttons {
  display: flex;
  gap: 10px;
}
.cfg-valve-lr-buttons .cfg-lr-btn {
  min-width: 100px;
  padding: 8px 18px;
  font-size: 14px;
}
/* Legacy in-card lr container — kept for safety but hidden now */
.cfg-valve-lr {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.cfg-lr-btn {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-inter);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-lr-btn:hover {
    border-color: var(--color-pmh-blue);
    color: var(--color-pmh-blue);
  }
}
.cfg-lr-btn.active {
  background: var(--color-pmh-blue);
  border-color: var(--color-pmh-blue);
  color: #fff;
}

/* Fitting section (B3: collapsible toggle) */
.cfg-fitting-section {
  margin-top: 24px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
}
.cfg-fitting-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-inter);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  transition: background 0.18s;
}
.cfg-fitting-toggle:hover {
  background: #eef2f7;
}
.cfg-fitting-toggle-arrow {
  font-size: 12px;
  color: #6b7280;
  transition: transform 0.25s ease;
}
.cfg-fitting-toggle.open .cfg-fitting-toggle-arrow {
  transform: rotate(180deg);
}
.cfg-fitting-body {
  padding: 0 18px 16px;
  animation: cfg-slide-down 0.2s ease;
}
@keyframes cfg-slide-down {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 800px; }
}

/* Legacy fitting info (keep for backward compat) */
.cfg-fitting-info {
  margin-top: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 10px;
  display: none;
  gap: 12px;
  align-items: center;
}
.cfg-fitting-info.visible { display: flex; }
.cfg-fitting-info img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
.cfg-fitting-info-text { font-size: 13px; color: var(--color-text); font-weight: 600; }
.cfg-fitting-info-name { font-size: 14px; font-weight: 600; color: var(--color-dark); }
.cfg-fitting-content { width: 100%; }
.cfg-fitting-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14px;
}
.cfg-fitting-choice-card {
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.cfg-fitting-choice-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-fitting-choice-card:hover {
    border-color: #9fb2c8;
  }
}
.cfg-fitting-choice-card.selected {
  border-color: var(--color-pmh-blue);
  background: #eef6ff;
  box-shadow: 0 0 0 2px rgba(15,106,165,.12);
}
/* PASS1 I-08: dvouřádkový label v kartě plnění */
.cfg-fitting-choice-card .cfg-fitting-choice-label {
  display: block;
  font-weight: 600;
  color: var(--color-dark);
  font-size: 14px;
  line-height: 1.3;
}
.cfg-fitting-choice-card .cfg-fitting-choice-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}
.cfg-fitting-note {
  margin-top: 8px;
  font-size: 12px;
  color: #777;
}
/* Rosette — NOVÁ SAMOSTATNÁ SEKCE (nezávislá na šroubení) */
.cfg-rosette-independent-section {
  margin-top: 20px;
  border-top: 1px solid #dbe2ea;
  padding-top: 14px;
}
.cfg-rosette-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}
.cfg-rosette-section-choices {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
/* Legacy: Rosette section — visually separated from fitting */
.cfg-rosette-section {
  margin-top: 16px;
  border-top: 1px solid #dbe2ea;
  padding-top: 12px;
}
.cfg-rosette-header {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

/* ─── Step 7: Plnění od výrobce ──────────────── */
.cfg-rod-fill-section {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
/* PASS C2 (C2-08): visually flag the section as required for electric-only
   radiators (heating_type_id=3) until the user makes a choice. */
.cfg-rod-fill-section.is-required {
  border-left: 4px solid var(--color-pmh-blue);
}
/* Unified with .cfg-nav-hint: "still to choose" speaks brand blue everywhere in
   the configurator. Amber stays reserved for .cfg-rod-recommendation, which is
   a tip rather than something the customer has to act on. */
.cfg-rod-fill-section.is-awaiting-choice {
  border-color: rgba(0, 106, 165, 0.35);
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%);
  box-shadow: 0 6px 18px -10px rgba(0, 106, 165, 0.30);
}
.cfg-rod-fill-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}
.cfg-rod-fill-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 14px;
  line-height: 1.5;
}
.cfg-rod-fill-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 560px) {
  .cfg-rod-fill-choices { grid-template-columns: 1fr; }
}
.cfg-rod-fill-validation {
  margin: 8px 0 12px;
  padding: 9px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-pmh-blue);
  background: #eef5fc;
  border: 1px solid rgba(0, 106, 165, 0.22);
  border-radius: 10px;
}
.cfg-rod-fill-side-wrap {
  margin-top: 4px;
}
.cfg-rod-fill-side-desc {
  font-size: 12px;
  color: #64748b;
  margin: 4px 0 10px;
  line-height: 1.5;
}
.cfg-rod-fill-side-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

/* PASS C2-HOTFIX (#5): fill choice cards become product-like callouts so the
   "Ano" option reads as the recommended upsell with a clear price. */
.cfg-rod-fill-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 4px;
  padding: 14px 16px !important;
  position: relative;
  cursor: pointer;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid #dbe2ea !important;
  transition: border-color .2s, box-shadow .2s, transform .12s, background .2s;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-rod-fill-card:hover {
    border-color: var(--color-pmh-blue) !important;
    box-shadow: 0 10px 20px -10px rgba(0,106,165,.30);
    transform: translateY(-1px);
  }
}
.cfg-rod-fill-card.selected {
  border-color: var(--color-pmh-blue) !important;
  background: linear-gradient(135deg, #f5faff 0%, #ffffff 60%, #fdf6f5 100%) !important;
  box-shadow: 0 0 0 2px rgba(15,106,165,.18), 0 12px 24px -10px rgba(0,106,165,.28) !important;
}
.cfg-rod-fill-card--yes {
  /* highlight the recommended option more strongly */
  border-color: rgba(0,106,165,.30) !important;
}
.cfg-rod-fill-card-tag {
  position: absolute;
  top: -10px;
  right: 14px;
  background: linear-gradient(135deg, var(--color-pmh-blue), #0086cc);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(0,106,165,.50);
}
.cfg-rod-fill-card-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-pmh-blue);
  margin-top: 6px;
  letter-spacing: -0.005em;
}
.cfg-rod-fill-card-price-note {
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
  font-style: italic;
}

/* B3: "Bez svěrného šroubení" option visually distinct at bottom */
.cfg-fitting-choice-without {
  margin-top: 12px;
  border-style: dashed;
  opacity: 0.85;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-fitting-choice-without:hover {
    opacity: 1;
  }
}
.cfg-accessory-config {
  margin: 8px 0 10px 24px;
  padding: 14px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #f8fbff;
  display: grid;
  gap: 12px;
}
.cfg-accessory-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.cfg-accessory-field-label { font-size: 13px; color: #334155; font-weight: 700; }
.cfg-accessory-options {
  display: grid;
  gap: 8px;
}
.cfg-accessory-pill {
  border: 1px solid #c5d2e2;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 12px;
  background: #fff;
  color: #1e293b;
  text-align: left;
  font-size: 14px;
  font-family: var(--font-inter);
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-accessory-pill:hover {
    border-color: #7fa4c7;
  }
}
.cfg-accessory-pill.selected {
  border-color: var(--color-pmh-blue);
  background: #ebf5ff;
  box-shadow: 0 0 0 2px rgba(15,106,165,.12);
}
.cfg-accessory-color-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cfg-accessory-color-pill span {
  color: var(--color-pmh-blue);
  font-weight: 700;
  white-space: nowrap;
  margin-left: auto;
}
/* Order code badge inside accessory pill */
.cfg-pill-code {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #6b7280;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 1px 5px;
  margin: 0 4px;
  font-weight: 400;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.cfg-accessory-pill.selected .cfg-pill-code {
  background: #d1e9ff;
  color: var(--color-pmh-blue);
}

.cfg-return-scroll-btn {
  position: fixed;
  right: 14px;
  bottom: calc(86px + env(safe-area-inset-bottom));
  width: 40px;
  height: 40px;
  border: 1px solid #c8d5e4;
  border-radius: 999px;
  background: #fff;
  color: var(--color-pmh-blue);
  box-shadow: 0 8px 18px rgba(2, 32, 71, .18);
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  z-index: 1201;
}
.cfg-catalog-note {
  margin-top: 12px;
  font-size: 12px;
  color: #6b7280;
}

/* No valves message */
.cfg-no-results {
  padding: 40px;
  text-align: center;
  color: #888;
  font-size: 15px;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
}

/* ─── Step 7: Heating rods ───────────────────── */
.cfg-rod-recommendation {
  margin-bottom: 20px;
  padding: 14px 18px;
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--color-dark);
}
.cfg-rod-recommendation strong { font-weight: 700; }
/* Fallback note when exact wattage not available */
.cfg-rod-recommendation-all {
  background: #f1f5f9;
  border-left-color: #94a3b8;
  color: #475569;
}

/* ─── Heating rod card layout ─── */
/* PASS C3 (#5): rod cards lifted closer to the valve experience — larger
   product photo on the left, clearer brand-tinted hover/selected state, plus
   a more product-page-like outline on selection. */
.cfg-rod-card {
  display: flex;
  gap: 22px;
  padding: 18px 20px;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.25s, box-shadow 0.25s, transform 0.15s;
  margin-bottom: 14px;
  align-items: flex-start;
  user-select: none;
  background: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-rod-card:hover {
    border-color: var(--color-pmh-blue);
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #fdf6f5 100%);
    box-shadow: 0 14px 28px -18px rgba(0,106,165,0.30);
    transform: translateY(-1px);
  }
}
.cfg-rod-card.selected {
  border-color: var(--color-pmh-blue);
  background: linear-gradient(135deg, rgba(0,106,165,0.08), rgba(163,42,39,0.04));
  box-shadow: 0 4px 16px -4px rgba(0,106,165,0.22);
}

.cfg-rod-img-wrap {
  position: relative;
  width: 170px;
  min-width: 170px;
  height: 170px;
  flex-shrink: 0;
  border-radius: 12px;
  /* PASS C8: no inner padding — photo fills the frame without a visible white border.
     Background transparent so product photo with its own bg shows cleanly. */
  border: 0;
  background: transparent;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}
.cfg-rod-img-wrap .img-main,
.cfg-rod-img-wrap .img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.35s ease;
  filter: drop-shadow(0 3px 7px rgba(15, 52, 96, 0.13));
}
.cfg-rod-img-wrap .img-main { opacity: 1; z-index: 1; }
.cfg-rod-img-wrap .img-hover { opacity: 0; z-index: 2; }
/* PASS C4 (#3): only fade-swap when both photos exist. */
@media (hover: hover) and (pointer: fine) {
  .cfg-rod-card:hover .cfg-rod-img-wrap:has(.img-hover) .img-main { opacity: 0; }
  .cfg-rod-card:hover .cfg-rod-img-wrap:has(.img-hover) .img-hover { opacity: 1; }
}
/* PASS C2 (C2-06): when a swatch is hovered/active and no per-color photo
   exists, force the secondary product photo to stay visible — gives the user
   visual feedback that the swatch took effect. */
.cfg-rod-img-wrap.is-color-fallback .img-main { opacity: 0; }
.cfg-rod-img-wrap.is-color-fallback .img-hover { opacity: 1; }
.cfg-rod-card-img-placeholder {
  width: 170px;
  min-width: 170px;
  height: 170px;
  border-radius: 10px;
  border: 1px dashed #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}

.cfg-rod-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cfg-rod-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}
.cfg-rod-card-code {
  font-size: 12px;
  color: #64748b;
  font-family: monospace;
  letter-spacing: 0.03em;
}
.cfg-rod-card-watt {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-pmh-blue);
  line-height: 1;
}

/* Slot pro krátký popisek — zatím prázdný, data nejsou v DB */
.cfg-rod-card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.cfg-rod-card-colors {
  /* PASS C8: 2-column grid for 4 swatches — clean "product page" layout */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
}
/* PASS C2 (C2-06): modernized rod color swatches — larger dots, softer
   shadow on hover, brand-tint on select. Visual feedback now matches the
   product page style instead of the small flat pills. */
.cfg-rod-color-swatch {
  /* PASS C8: fill the 2-column grid cell — no wrapping, proper width */
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 8px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-dark);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-rod-color-swatch:hover {
    border-color: var(--color-pmh-blue);
    background: #f0f7ff;
    box-shadow: 0 6px 14px -8px rgba(0,106,165,0.30);
    transform: translateY(-1px);
  }
}
.cfg-rod-color-swatch.selected {
  border-color: var(--color-pmh-blue);
  background: linear-gradient(135deg, #eaf3fb, #f5fbff);
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(0,106,165,0.18);
}
.cfg-rod-swatch-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(15,23,42,0.10);
  flex-shrink: 0;
  display: inline-block;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.4), 0 1px 2px rgba(0,0,0,0.08);
}
.cfg-rod-color-swatch.selected .cfg-rod-swatch-dot {
  border-color: rgba(0,106,165,0.40);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.5), 0 0 0 2px rgba(0,106,165,0.18);
}
.cfg-rod-swatch-label {
  line-height: 1;
}

.cfg-rod-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.cfg-rod-card-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
}
.cfg-rod-card-stock {
  font-size: 12px;
  color: #64748b;
}
.cfg-rod-stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cfg-rod-stock-dot.in-stock { background: #22a06b; }
.cfg-rod-stock-dot.on-order { background: #ccc; }

@media (max-width: 600px) {
  .cfg-rod-card {
    flex-direction: column;
    gap: 12px;
  }
  .cfg-rod-img-wrap,
  .cfg-rod-card-img-placeholder {
    width: 100%;
    min-width: unset;
    height: 120px;
  }
  .cfg-rod-card-colors {
    grid-template-columns: 1fr;
  }
}

/* ─── Step 8: Summary ───────────────────────── */
.cfg-summary {
  max-width: 720px;
}

/* PASS C2-HOTFIX (#7): summary v2 — hero header + frosted card with ordered
   rows. Brand-tinted gradient backdrop, prominent product name, separate code
   row. Replaces the flat row list. */
.cfg-summary-v2 .cfg-summary-hero {
  display: block;
  padding: 22px 24px 18px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #f7faff 60%, #fdf6f5 100%);
  border: 1px solid #e2eaf3;
  border-bottom: 0;
  margin: 0;
  box-shadow: 0 14px 32px -24px rgba(15, 52, 96, 0.20);
}
.cfg-summary-v2 .cfg-summary-hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-pmh-blue);
  margin-bottom: 6px;
}
.cfg-summary-v2 .cfg-summary-hero-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.cfg-summary-v2 .cfg-summary-hero-code {
  font-size: 12px;
}
/* Shape/colour live with the shared .cfg-summary-code pill further down —
   this rule only keeps the frosted backdrop that suits the tinted header. */
.cfg-summary-v2 .cfg-summary-hero-code code {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cfg-summary-v2 .cfg-summary-card {
  padding: 18px 24px 22px;
  border-radius: 0 0 18px 18px;
  background: rgba(255,255,255,0.74);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid #e2eaf3;
  border-top: 0;
  margin: 0 0 18px;
  box-shadow: 0 14px 32px -24px rgba(15, 52, 96, 0.18);
}
.cfg-summary-v2 .cfg-summary-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b7280;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}
.cfg-summary-v2 .cfg-summary-row {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}
.cfg-summary-v2 .cfg-summary-row:last-of-type {
  border-bottom: none;
}
.cfg-summary-v2 .cfg-summary-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 4px;
}
.cfg-summary-v2 .cfg-summary-value {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}
.cfg-summary-v2 .cfg-summary-price-inline.is-info-only {
  color: #64748b;
  font-weight: 500;
  font-style: italic;
  font-size: 13px;
}
.cfg-summary-v2 .cfg-summary-total-row {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 2px solid var(--color-pmh-blue);
}
.cfg-summary-v2 .cfg-summary-total-row .cfg-summary-label {
  color: #0f172a;
  font-size: 13px;
}
.cfg-summary-v2 .cfg-summary-price-total {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-pmh-blue);
}

.cfg-summary-group {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

/* Řádek konfigurace (položka + volitelný kód) */
.cfg-summary-row {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef0f3;
}
.cfg-summary-row:last-child { border-bottom: none; }

/* Prices section still uses .cfg-summary-section */
.cfg-summary-section {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef0f3;
}
.cfg-summary-section:last-of-type { border-bottom: none; }

.cfg-summary-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 4px;
}

/* KOREKTURA IV (A2): keep the value column and the price on one row. The price
   is pinned to the right and must never drop to a new line, so the body itself
   does NOT wrap; only the value column wraps internally. min-width:0 lets the
   value column shrink below its content width so the price stays aligned. */
.cfg-summary-row-body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: nowrap;
}

.cfg-summary-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

/* Inline cena u položky */
.cfg-summary-price-inline {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.cfg-summary-price-inline.is-radiator {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.cfg-summary-price-inline.is-on-order {
  color: #64748b;
  font-style: italic;
}

/* Skrýt mini-summary na finálním souhrnu (plnohodnotný summary je v hlavním sloupci) */
/* Phase B: mini-summary + nav live in .cfg-topbar (sibling of .cfg-page) — target via :has() */
body:has(.cfg-page.is-step-8) .cfg-mini-summary,
body:has(.cfg-page.is-step-8) .cfg-topbar-nav,
body:has(.cfg-page.is-step-8) .cfg-mobile-summary-toggle {
  display: none !important;
}

/* Řádek Celková cena — nahrazuje starý cfg-summary-total section */
.cfg-summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 2px solid var(--color-pmh-blue);
  padding-top: 14px;
  margin-top: 6px;
}

.cfg-summary-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-dark);
  overflow-wrap: anywhere;
}

/* Order codes render as one consistent pill everywhere in the summary — hero
   SKU, "Kód produktu" and the component codes. Same shape whether or not the
   code links anywhere, so the summary reads evenly. */
.cfg-summary-code {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: var(--color-pmh-blue);
  background: #eef5fc;
  border: 1px solid rgba(0, 106, 165, 0.22);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  vertical-align: middle;
}

/* Linked code → product page. No underline: the pill already reads as a
   button, so the affordance is the pointer + hover fill.
   Opens in a new tab — the customer must not lose the configuration. */
.cfg-summary-code-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  border-radius: 999px;
}
.cfg-summary-code-link .cfg-summary-code {
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease,
              border-color .15s ease, box-shadow .15s ease;
}
.cfg-summary-code-link:hover .cfg-summary-code,
.cfg-summary-code-link:focus-visible .cfg-summary-code {
  background: var(--color-pmh-blue);
  border-color: var(--color-pmh-blue);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 106, 165, 0.28);
}
.cfg-summary-code-link:focus-visible {
  outline: 2px solid var(--color-pmh-blue);
  outline-offset: 2px;
}

/* Hero pill: same shape, one size up, sitting on the tinted header. */
.cfg-summary-v2 .cfg-summary-hero-code .cfg-summary-code {
  font-size: 13px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 106, 165, 0.24);
}
.cfg-summary-v2 .cfg-summary-hero-code .cfg-summary-code-link:hover .cfg-summary-code {
  background: var(--color-pmh-blue);
  border-color: var(--color-pmh-blue);
  color: #fff;
}

/* Nadpisy sekcí souhrnu */
.cfg-summary-section-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 16px;
}

/* Odkaz na elektrické sušáky v Kroku 1 */
.cfg-heating-note-link {
  color: var(--color-pmh-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* B6: Prices section */
.cfg-summary-prices-group {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.cfg-summary-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin-top: 2px;
}
/* B6: Radiator price more prominent than accessories */
.cfg-summary-price-radiator {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}
.cfg-summary-price-accessory {
  font-size: 15px;
  font-weight: 500;
  color: #475569;
}
/* B6: Total price most prominent */
.cfg-summary-total {
  border-top: 2px solid var(--color-pmh-blue);
  padding-top: 16px;
  margin-top: 8px;
}
.cfg-summary-price-total {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-pmh-blue);
}
/* PASS D: RAL / on-order price display */
.cfg-price-on-order {
  color: #64748b;
  font-style: italic;
}

/* B6: Availability next to total */
.cfg-summary-availability {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.cfg-summary-stock {
  font-size: 14px;
  margin-top: 2px;
  font-weight: 700;
}
.cfg-summary-stock.in-stock { color: #15803d; }
.cfg-summary-stock.on-order { color: #6b7280; font-weight: 500; }

/* KOREKTURA IV: per-component availability badge in the step-8 summary rows */
.cfg-summary-avail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.cfg-summary-avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.cfg-summary-avail.in-stock { color: #15803d; }
.cfg-summary-avail.on-order { color: #6b7280; }
.cfg-summary-avail.unknown  { color: #b45309; }
.cfg-summary-avail.in-stock .cfg-summary-avail-dot::before {
  content: "✓";
  display: block;
  font-size: 7px;
  color: #fff;
  text-align: center;
  line-height: 7px;
}

/* KOREKTURA IV: "ceny bez DPH" tag + note in the step-8 summary */
.cfg-summary-vat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 4px;
}
.cfg-summary-vat-note {
  font-size: 12px;
  color: #64748b;
  font-style: italic;
  margin-top: 6px;
}

.cfg-summary-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Summary action buttons — same visual language as the success panel. */
.cfg-btn-reset,
.cfg-btn-product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-inter);
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s;
}
/* Primary (blue) — the main call to action. */
#cfg-btn-inquiry.cfg-btn-product-link {
  background: var(--color-pmh-blue);
  color: #fff;
}
#cfg-btn-inquiry.cfg-btn-product-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(11, 93, 151, .5);
  background: #005080;
}
/* Secondary (white + border) — PDF actions and "start over". */
.cfg-btn-reset,
#cfg-btn-pdf.cfg-btn-product-link,
#cfg-btn-save-pdf.cfg-btn-product-link {
  background: #fff;
  border-color: #cfd8e3;
  color: #334155;
}
.cfg-btn-reset:hover,
#cfg-btn-pdf.cfg-btn-product-link:hover,
#cfg-btn-save-pdf.cfg-btn-product-link:hover {
  border-color: var(--color-pmh-blue);
  color: var(--color-pmh-blue);
}

.cfg-ral-sample {
  font-size: 13px !important;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Configurator RAL modal */
.cfg-ral-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}
.cfg-ral-modal {
  width: min(980px, 94vw);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}
.cfg-ral-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cfg-ral-close {
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}
/* RAL notice — same "must be pre-ordered" info box as the product page picker.
   2026-07-27: červený alert na žiadosť klienta, ikona na začiatku aj na konci
   — identický vzhľad ako .ral-picker-notice v product.css. */
.cfg-ral-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 0;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #8a1f1f;
  background: #fdecea;
  border: 1px solid #f3b9b7;
  border-left: 4px solid #d63638;
  border-radius: 10px;
}
.cfg-ral-notice::before,
.cfg-ral-notice::after {
  content: "⚠️";
  font-size: 16px;
  line-height: 1.4;
  flex-shrink: 0;
}
.cfg-ral-notice::after {
  align-self: flex-end;
}
/* RAL-SUMMARY-NOTICE (2026-07-27): rovnaký červený alert v súhrne (krok 8),
   zobrazuje sa vždy, keď je zvolená RAL farba. */
.cfg-summary-ral-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 4px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: #8a1f1f;
  background: #fdecea;
  border: 1px solid #f3b9b7;
  border-left: 4px solid #d63638;
  border-radius: 10px;
}
.cfg-summary-ral-notice::before {
  content: "⚠️";
  font-size: 16px;
  line-height: 1.4;
  flex-shrink: 0;
}
/* PASS C2-HOTFIX (#1): the RAL input is now the confirm control.
   - Idle state: plain border, neutral background, prefix "RAL" pill to the left.
   - Valid state (.is-filled): background fills with the matched RAL color,
     text color flips for contrast, cursor:pointer, gentle ring — clicks
     confirm.
   - The hint line below tells the user what to do next; it switches from
     "Zadejte RAL kód..." to "<barva> — Enter nebo klik pro potvrzení". */
.cfg-ral-toolbar {
  display: flex;
  gap: 10px;
  margin: 10px 0 14px;
  align-items: stretch;
}
.cfg-ral-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  position: relative;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.cfg-ral-input-prefix {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 8px 0 0;
  border-right: 1px solid #e2e8f0;
}
.cfg-ral-input {
  width: 100%;
  min-height: 44px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  color: #0f172a;
  font-family: var(--font-inter);
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .12s ease;
  outline: none;
  cursor: text;
  caret-color: var(--color-pmh-blue);
}
.cfg-ral-input:focus {
  border-color: var(--color-pmh-blue);
  box-shadow: 0 0 0 3px rgba(15,106,165,.18);
}
.cfg-ral-input.is-filled {
  cursor: pointer;
  font-size: 24px;
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(15,106,165,.22), 0 10px 24px -12px rgba(0,0,0,.30);
}
.cfg-ral-input.is-filled:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(15,106,165,.30), 0 14px 28px -12px rgba(0,0,0,.32);
}
.cfg-ral-input-hint {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin-top: 2px;
  font-weight: 500;
  transition: color .2s ease;
}
.cfg-ral-input-hint.is-ready {
  color: var(--color-pmh-blue);
  font-weight: 700;
}
.cfg-ral-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.cfg-ral-group-btn {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}
.cfg-ral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}
.cfg-ral-chip {
  min-height: 58px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Inquiry modal */
.cfg-inquiry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 12, 27, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  backdrop-filter: blur(2px);
}
.cfg-inquiry-modal {
  width: min(580px, 92vw);
  /* INQUIRY-SCROLL-FIX (2026-07-27): na telefóne bol formulár vyšší než
     viewport a modal sa nedal scrollovať (pôsobil „zaseknuto"). dvh kvôli
     mobilným lištám prehliadača; overscroll-behavior drží scroll v modale. */
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid #dbe3ee;
  box-shadow: 0 20px 60px rgba(2, 32, 71, 0.25);
}
.cfg-inquiry-modal h3 {
  margin: 0 0 14px;
  font-size: 20px;
  color: #0f172a;
}
.cfg-inquiry-intro {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary, #64748b);
}
/* Per-field help text (sits inside the bold <label>, so reset weight). */
.cfg-inquiry-help {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-text-secondary, #64748b);
}
.cfg-inquiry-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.cfg-inquiry-form input,
.cfg-inquiry-form textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-inter);
  color: #0f172a;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.cfg-inquiry-form input:focus,
.cfg-inquiry-form textarea:focus {
  outline: none;
  border-color: var(--color-pmh-blue);
  box-shadow: 0 0 0 3px rgba(15,106,165,.14);
}
.cfg-inquiry-pdf-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--color-text-secondary, #64748b);
}
.cfg-inquiry-pdf-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-pmh-blue);
}
.cfg-inquiry-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.cfg-inquiry-btn {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-inter);
  cursor: pointer;
  transition: all .18s;
}
.cfg-inquiry-btn-primary {
  background: var(--color-pmh-blue);
  border-color: var(--color-pmh-blue);
  color: #fff;
}
.cfg-inquiry-btn-primary:hover:not(:disabled) {
  background: #005080;
  border-color: #005080;
}
.cfg-inquiry-btn-primary:disabled {
  opacity: .55;
  cursor: default;
}
.cfg-inquiry-btn-secondary {
  background: #fff;
  border-color: #cfd8e3;
  color: #334155;
}
.cfg-inquiry-btn-secondary:hover {
  border-color: #8fa2b8;
  color: #0f172a;
}
.cfg-inquiry-status {
  min-height: 20px;
  margin: 2px 0 8px;
  font-size: 13px;
}
.cfg-inquiry-status.loading { color: #475569; }
.cfg-inquiry-status.success { color: #15803d; font-weight: 600; }
.cfg-inquiry-status.error { color: #b42318; font-weight: 600; }

/* ─── Success panel (frosted glass) after an inquiry is sent ─────────────── */
.cfg-success-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--cfg-succ-top, 0);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(255,255,255,0.80));
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity .34s ease, transform .34s ease;
}
.cfg-success-overlay.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cfg-success-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: #475569;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.cfg-success-close:hover {
  background: #fff;
  color: #0f172a;
  border-color: #cfd8e3;
}
.cfg-success-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
}
.cfg-success-check {
  margin-bottom: 18px;
  animation: cfgSuccessPop .45s .08s both;
}
.cfg-success-check svg {
  width: 84px;
  height: 84px;
}
@keyframes cfgSuccessPop {
  from { transform: scale(.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cfg-success-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}
.cfg-success-sub {
  margin: 0 0 26px;
  font-size: 14px;
  color: #64748b;
}
.cfg-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cfg-success-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-inter);
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s;
}
.cfg-success-btn-primary {
  background: var(--color-pmh-blue);
  color: #fff;
}
.cfg-success-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(11, 93, 151, .5);
  background: #005080;
}
.cfg-success-btn-secondary {
  background: #fff;
  border-color: #cfd8e3;
  color: #334155;
}
.cfg-success-btn-secondary:hover {
  border-color: var(--color-pmh-blue);
  color: var(--color-pmh-blue);
}

/* ─── Sidebar removed in Phase B — fallback hide if cached/older markup is served ─── */
.cfg-sidebar { display: none !important; }

/* Immediate, high-contrast tooltips */
.cfg-ral-card[data-tip],
.cfg-tile-upload[data-tip] {
  position: relative;
}
.cfg-ral-card[data-tip]::after,
.cfg-tile-upload[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease;
  z-index: 20;
}
.cfg-ral-card[data-tip]:hover::after,
.cfg-tile-upload[data-tip]:hover::after {
  opacity: 1;
}

/* ─── Mini summary (Phase B: horizontal chip strip inside .cfg-topbar) ─── */
.cfg-mini-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  min-width: 0;
}

.cfg-mini-title { display: none; } /* chips speak for themselves */

.cfg-mini-row {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(0,106,165,0.06), rgba(163,42,39,0.04));
  border: 1px solid rgba(0,106,165,0.16);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.cfg-mini-row:hover {
  border-color: rgba(0,106,165,0.32);
  box-shadow: 0 2px 8px -2px rgba(0,106,165,0.18);
}
.cfg-mini-row[style*="display:none"],
.cfg-mini-row.hidden { display: none !important; }

.cfg-mini-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  flex: 0 0 auto;
}

.cfg-mini-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-pmh-blue);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
  min-width: 0;
}

.cfg-mini-price {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-pmh-blue), #0086cc);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px -4px rgba(0,106,165,0.32);
}

.cfg-mini-code {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  margin: 0;
  border-radius: 6px;
  background: #f1f5f9;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #475569;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile-only "Můj výběr" toggle (lives in .cfg-topbar-actions) */
.cfg-mobile-summary-toggle {
  display: none;
  flex: 1 1 auto;
  border: 1px solid #d2dbe6;
  border-radius: 999px;
  background: #fff;
  min-height: 36px;
  padding: 0 14px;
  text-align: left;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-inter);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.cfg-mobile-summary-toggle:hover {
  border-color: var(--color-pmh-blue);
  color: var(--color-pmh-blue);
}

/* ─── Loading spinner ────────────────────────── */
.cfg-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}
.cfg-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-pmh-blue);
  border-radius: 50%;
  animation: cfg-spin 0.7s linear infinite;
}
@keyframes cfg-spin { to { transform: rotate(360deg); } }

/* ─── Responsive / mobile-first flow ─────────────────────────────── */
@media (max-width: 900px) {
  .cfg-page {
    /* Phase B: bottom-fixed mobile nav removed; nav lives in .cfg-topbar */
    padding: 18px 14px 48px;
  }

  .cfg-layout { display: block; }
  .cfg-main { margin-bottom: 0; }

  /* Phase B: mobile topbar layout */
  .cfg-topbar-inner {
    padding: 8px 14px 10px;
    gap: 8px;
  }
  .cfg-topbar-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .cfg-topbar-logo img {
    height: 18px;
  }
  .cfg-topbar-nav {
    margin-left: auto;
    flex: 0 0 auto;
  }
  .cfg-topbar-nav .cfg-btn-back,
  .cfg-topbar-nav .cfg-btn-next {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 34px;
  }
  /* Narrow screens have no room to hang the hint under the button — let it
     span the full topbar instead of squeezing into the right-hand column. */
  .cfg-nav-hint {
    align-self: stretch;
    margin-top: 0;
    font-size: 12px;
  }
  /* On mobile the chips sit on a new line below toggle+nav */
  .cfg-topbar-actions .cfg-mini-summary {
    order: 3;
    flex: 1 1 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cfg-topbar-actions .cfg-mini-summary::-webkit-scrollbar { display: none; }
  .cfg-mini-row { flex-shrink: 0; }
  .cfg-mini-summary.collapsed { display: none !important; }

  .cfg-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
    top: 0;
    padding-top: 10px;
    border-bottom: none;
  }
  .cfg-progress-labels {
    display: none;
  }
  .cfg-progress-step {
    min-width: 0;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #d2dbe6;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cfg-progress-step::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    color: #6b7785;
    text-transform: none;
    letter-spacing: .01em;
    line-height: 1.1;
    text-align: center;
    padding: 0 4px;
  }
  .cfg-progress-step.active::before {
    color: #fff;
  }
  .cfg-progress-step.completed::before {
    color: #fff;
  }
  .cfg-progress-step.empty::before {
    color: #7a8695;
  }

  .cfg-step-title {
    margin-bottom: 4px;
  }
  .cfg-step-heading {
    font-size: 24px;
    margin-bottom: 16px;
  }

  /* Phase B: sidebar removed — these rules are kept neutral in case of cached markup */
  .cfg-sidebar { display: none !important; }

  .cfg-mobile-summary-toggle {
    display: inline-flex;
    align-items: center;
    margin: 0;
  }
  /* Mini-summary on mobile stays a chip strip (no card padding/border) */
  .cfg-mini-summary {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .cfg-mini-row {
    margin: 0;
    padding: 4px 10px;
    border-bottom: none;
  }
  .cfg-mini-price {
    font-size: 12px;
    padding: 4px 12px;
  }

  .cfg-nav-sidebar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    top: auto;
    margin: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(7px);
    box-shadow: 0 8px 24px rgba(2, 32, 71, 0.18);
    border-radius: 14px;
    border: 1px solid #d9e2ee;
    grid-template-columns: .4fr .6fr;
    padding: 8px;
    gap: 8px;
  }
  .cfg-page.is-step-8 .cfg-nav-sidebar {
    display: none;
  }
  .cfg-nav-sidebar .cfg-btn-back,
  .cfg-nav-sidebar .cfg-btn-next {
    min-height: 42px;
    padding: 0 10px;
    font-size: 14px;
  }

  .cfg-radiator-grid { grid-template-columns: 1fr; gap: 12px; }
  .cfg-valve-grid { grid-template-columns: 1fr; gap: 12px; }
  .cfg-color-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cfg-variants-layout { grid-template-columns: 1fr; gap: 16px; }
  .cfg-svg-preview { order: -1; }
  .cfg-svg-preview { max-width: 100%; }
  .cfg-color-layout { grid-template-columns: 1fr; gap: 14px; }
  .cfg-color-preview-col { order: -1; }

  .cfg-fitting-info.visible {
    display: block;
  }
  .cfg-fitting-section {
    margin-top: 16px;
  }
  .cfg-accessory-config {
    margin-left: 0;
  }

  .cfg-rod-variants {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cfg-rod-pill {
    min-width: 0;
    width: 100%;
  }

  .cfg-summary {
    max-width: 100%;
  }
  .cfg-summary-section {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }
  .cfg-summary-price {
    font-size: 22px;
  }
  .cfg-summary-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cfg-btn-reset,
  .cfg-btn-product-link {
    width: 100%;
    justify-content: center;
  }

  .cfg-inquiry-modal {
    width: min(96vw, 560px);
    padding: 16px;
    border-radius: 12px;
  }
  .cfg-inquiry-actions {
    flex-direction: column-reverse;
  }
  .cfg-inquiry-btn {
    width: 100%;
    min-height: 44px;
  }
  .cfg-inquiry-form input,
  .cfg-inquiry-form textarea {
    font-size: 16px;
  }
  .cfg-inquiry-form textarea {
    min-height: 120px;
  }

  /* B5: Mobile RAL picker redesign */
  .cfg-ral-modal {
    width: 100vw;
    max-height: 100vh;
    padding: 12px;
    border-radius: 0;
    position: fixed;
    inset: 0;
  }
  .cfg-ral-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin: 8px 0 12px;
    align-items: end;
  }
  .cfg-ral-toolbar .cfg-ral-input-wrap {
    width: 100%;
  }
  .cfg-ral-input {
    min-height: 48px;
    font-size: 20px;
  }
  .cfg-ral-input.is-filled {
    font-size: 22px;
  }
  .cfg-ral-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .cfg-ral-chip {
    min-height: 52px;
    font-size: 10px;
    border-radius: 6px;
  }
}

@media (max-width: 560px) {
  .cfg-step-heading {
    font-size: 22px;
  }
  .cfg-heating-cards { grid-template-columns: 1fr; gap: 10px; }
  .cfg-heating-card { padding: 16px 12px; }
  .cfg-color-grid { grid-template-columns: repeat(2, 1fr); }
  .cfg-rod-variants { grid-template-columns: 1fr; }
  .cfg-progress-step::before {
    font-size: 10px;
  }
}

/* ─── RAL Picker (reuse existing modal styles) ─ */
.cfg-ral-modal-trigger {
  display: none; /* shown by JS when RAL is available */
}

/* =============================================================
   PASS C3 — additions
   ============================================================= */

/* ─── (#1) Tooltip + info icon on one-click cards ────────────── */
.cfg-has-tooltip {
  position: relative;
}
.cfg-info-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(11,93,151,0.35);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--color-pmh-blue);
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.18s ease, background 0.18s;
  z-index: 6;
  padding: 0;
  font-style: italic;
}
@media (hover: hover) and (pointer: fine) {
  .cfg-has-tooltip:hover .cfg-info-icon { opacity: 1; }
}
/* Touch devices: keep the (i) icon always visible so the pin-tap affordance
   is discoverable without hover. */
@media (hover: none), (pointer: coarse) {
  .cfg-has-tooltip .cfg-info-icon { opacity: 1; }
}
.cfg-info-icon:focus-visible {
  opacity: 1;
  outline: 2px solid var(--color-pmh-blue);
  outline-offset: 2px;
}
.cfg-card-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, -4px);
  width: max-content;
  max-width: 280px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.93);
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 10px;
  box-shadow: 0 12px 28px -10px rgba(15,23,42,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 50;
  white-space: normal;
  text-align: left;
}
.cfg-card-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(15, 23, 42, 0.93);
}
/* Hover show — desktop only (hover capable) */
@media (hover: hover) and (pointer: fine) {
  .cfg-has-tooltip:hover .cfg-card-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }
}
/* Pinned (click on i icon) — works on every device */
.cfg-has-tooltip.is-tooltip-pinned .cfg-card-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.cfg-has-tooltip.is-tooltip-pinned .cfg-info-icon {
  background: var(--color-pmh-blue);
  color: #fff;
  opacity: 1;
  border-color: var(--color-pmh-blue);
}
@media (max-width: 600px) {
  .cfg-card-tooltip {
    max-width: 86vw;
    font-size: 13px;
  }
}

/* ─── (#4) Valve color preview panel ─────────────────────────── */
.cfg-valve-color-block {
  /* PASS C8: preview left / pills right, tighter gap, aligned to card top */
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 4px;
}
.cfg-valve-color-preview {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d8e1ec;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 4px 14px -8px rgba(15, 52, 96, 0.14);
}
.cfg-valve-color-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  /* PASS C8: transparent bg — photo sits cleanly without inner white frame */
  background: transparent;
  border-radius: 8px;
  border: 0;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(15, 52, 96, 0.12));
}
/* KOREKTURA III (point 3): neutral placeholder shown instead of a wrong-colour
   photo when the selected valve finish has no real image. Keeps the square so
   the layout never collapses and reads as a calm, premium "coming soon" state,
   not an error. */
.cfg-valve-color-preview-empty {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px dashed #cdd8e6;
  background:
    linear-gradient(135deg, rgba(15, 52, 96, 0.025), rgba(15, 52, 96, 0.05));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
}
.cfg-valve-color-preview-empty-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #b9c6d8;
  position: relative;
  flex-shrink: 0;
  opacity: 0.85;
}
.cfg-valve-color-preview-empty-icon::before {
  /* small camera/photo glyph drawn with a single inner mark */
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 3px;
  border: 1.5px solid #b9c6d8;
}
.cfg-valve-color-preview-empty-text {
  font-size: 11px;
  line-height: 1.4;
  color: #7286a0;
  font-weight: 500;
  max-width: 150px;
}
.cfg-valve-color-preview-caption {
  margin-top: 8px;
  text-align: center;
  padding: 0 4px;
}
.cfg-valve-color-preview-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 2px;
  line-height: 1.3;
}
.cfg-valve-color-preview-color {
  font-size: 11px;
  color: var(--color-pmh-blue);
  font-weight: 600;
  min-height: 15px;
}
.cfg-valve-color-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding-top: 2px;
}
.cfg-valve-color-pills .cfg-accessory-field-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
@media (max-width: 720px) {
  .cfg-valve-color-block {
    grid-template-columns: 1fr;
  }
  .cfg-valve-color-preview img {
    aspect-ratio: 4 / 3;
  }
}

/* ─── (#6) Fill section — emphasize when blocked ─────────────── */
.cfg-rod-fill-section.cfg-shake,
.cfg-rod-fill-side-section.cfg-shake {
  animation: cfgShake 0.42s cubic-bezier(.36,.07,.19,.97);
}
@keyframes cfgShake {
  0%, 100% { transform: translate3d(0,0,0); }
  20%, 60% { transform: translate3d(-6px,0,0); }
  40%, 80% { transform: translate3d(6px,0,0); }
}
.cfg-rod-fill-section.is-awaiting-choice {
  border-color: rgba(163,42,39,0.45);
  box-shadow: 0 0 0 3px rgba(163,42,39,0.10), 0 18px 40px -22px rgba(163,42,39,0.25);
}

/* PASS C3 (#6 cont.): summary row class for the fill price line — same accent
   as the other priced rows but with a tinted background so the user sees that
   the surcharge has been counted into the total. */
.cfg-summary-price-inline.is-fill {
  color: #0b5d97;
  background: rgba(11,93,151,0.08);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

/* PASS C3 (#6): soft-disabled "Pokračovat" while electric-only rod fill is
   unanswered. Stays clickable so the capture handler can scroll+shake the
   fill block — visually communicates "not ready" without hard-disabling. */
.cfg-btn-next.is-blocked-by-fill {
  background: linear-gradient(135deg, #c8d3e1, #b4c2d5);
  color: #fff;
  cursor: pointer;
  opacity: 0.85;
  box-shadow: none;
}
.cfg-btn-next.is-blocked-by-fill:hover {
  background: linear-gradient(135deg, #b8c5d8, #a3b2c8);
  transform: none;
}

/* =============================================================
   PASS C5 — Step 1 / Step 5 info UX + Step 6 / Step 7 polish
   ============================================================= */

/* ─── Step 1: side-by-side cards + info panel ─────────────── */
.cfg-step1-cards-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.cfg-step1-cards-row .cfg-heating-cards {
  flex: 1 1 auto;
  min-width: 0;
}
.cfg-step1-side-panel {
  flex: 0 0 200px;
  width: 200px;
  min-height: 100px;
  border: 1px solid #d6e4f0;
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.80);
  padding: 16px 18px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cfg-step1-side-panel.has-content {
  border-color: rgba(0, 106, 165, 0.35);
  box-shadow: 0 8px 24px -14px rgba(0, 106, 165, 0.18);
}
.cfg-side-panel-hint {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}
.cfg-side-panel-hint em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-pmh-blue);
  border: 1px solid rgba(11,93,151,0.30);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 10px;
  vertical-align: middle;
}
.cfg-side-panel-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.55;
  margin: 0;
}

/* ─── Step 1: dryer row ───────────────────────────────────── */
.cfg-step1-dryer-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.cfg-step1-dryer-row .cfg-heating-card--dryer {
  flex: 1 1 auto;
  max-width: 440px;
}
.cfg-dryer-side-panel {
  flex: 0 0 210px;
  width: 210px;
  min-height: 80px;
  border: 1px solid #d6e4f0;
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.80);
  padding: 16px 18px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  align-self: center;
}
.cfg-dryer-side-panel.has-content {
  border-color: rgba(0, 106, 165, 0.35);
  box-shadow: 0 8px 24px -14px rgba(0, 106, 165, 0.18);
}

/* Suppress dark card-tooltip popups for areas with a designated side panel */
.cfg-step1-cards-row .cfg-card-tooltip,
.cfg-step1-dryer-row .cfg-card-tooltip,
.cfg-step5-row .cfg-card-tooltip {
  display: none !important;
}

@media (max-width: 720px) {
  .cfg-step1-cards-row,
  .cfg-step1-dryer-row {
    flex-direction: column;
    gap: 14px;
  }
  .cfg-step1-side-panel,
  .cfg-dryer-side-panel {
    width: 100%;
    flex: 0 0 auto;
  }
  .cfg-step1-dryer-row .cfg-heating-card--dryer {
    max-width: 100%;
  }
}

/* ─── Step 5: side-by-side connection list + info panel ───── */
.cfg-step5-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.cfg-step5-row .cfg-connection-list {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 460px;
}
.cfg-step5-info-panel {
  flex: 0 0 220px;
  width: 220px;
  min-height: 100px;
  border: 1px solid #d6e4f0;
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.80);
  padding: 16px 18px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: sticky;
  top: 80px;
}
.cfg-step5-info-panel.has-content {
  border-color: rgba(0, 106, 165, 0.35);
  box-shadow: 0 8px 24px -14px rgba(0, 106, 165, 0.18);
}

@media (max-width: 720px) {
  .cfg-step5-row {
    flex-direction: column;
    gap: 14px;
  }
  .cfg-step5-info-panel {
    width: 100%;
    flex: 0 0 auto;
    position: static;
  }
  .cfg-step5-row .cfg-connection-list {
    max-width: 100%;
  }
}

/* ─── Step 6: bigger valve color preview ──────────────────── */
.cfg-valve-color-block {
  grid-template-columns: 300px 1fr;
}
@media (max-width: 720px) {
  .cfg-valve-color-block {
    grid-template-columns: 1fr;
  }
}

/* ─── Step 7: rod card – cleaner, more branded ────────────── */
.cfg-rod-card {
  border-left: 3px solid transparent;
}
.cfg-rod-card.selected {
  border-left-color: var(--color-pmh-blue);
}
.cfg-rod-img-wrap {
  width: 190px;
  min-width: 190px;
  height: 190px;
}
.cfg-rod-card-img-placeholder {
  width: 190px;
  min-width: 190px;
  height: 190px;
}
.cfg-rod-card-watt {
  font-size: 26px;
}
@media (max-width: 600px) {
  .cfg-rod-img-wrap,
  .cfg-rod-card-img-placeholder {
    width: 100%;
    min-width: unset;
    height: 120px;
  }
}

/* =============================================================
   PASS C6 — Image frames, rod layout, info icon polish
   ============================================================= */

/* ─── C6-05: Image frame cleanup ──────────────────────────── */
/* Remove inner padding on rod image wrap — the 4px padding + 4px inset
   created a visible white border frame around the product photo. */
.cfg-rod-img-wrap {
  padding: 0;
  background: linear-gradient(180deg, #f5f8fc 0%, #eef3f8 100%);
}
.cfg-rod-img-wrap .img-main,
.cfg-rod-img-wrap .img-hover {
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 8px rgba(15, 52, 96, 0.12));
}

/* Radiator cards — subtle neutral background so product photos with
   gray/tile backgrounds don't sit on stark white */
.cfg-radiator-img-wrap {
  background: linear-gradient(180deg, #f8fafb 0%, #f2f6f9 100%);
}
.cfg-radiator-img-wrap .img-main,
.cfg-radiator-img-wrap .img-hover {
  filter: drop-shadow(0 2px 6px rgba(15, 52, 96, 0.09));
}

/* Valve cards — consistent neutral surround */
.cfg-valve-img-wrap {
  background: linear-gradient(180deg, #f8fafb 0%, #f2f6f9 100%);
}
.cfg-valve-img-wrap .img-main,
.cfg-valve-img-wrap .img-hover {
  filter: drop-shadow(0 2px 6px rgba(15, 52, 96, 0.09));
}

/* ─── C6-02: Info icon — visual feedback for pinned state ─── */
.cfg-heating-card.info-pinned .cfg-info-icon,
.cfg-connection-card.info-pinned .cfg-info-icon {
  background: var(--color-pmh-blue);
  color: #fff;
  border-color: var(--color-pmh-blue);
  opacity: 1;
}

/* ─── C6-07: Rod card color swatches — 2×2 grid ──────────── */
.cfg-rod-card-colors {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px;
  justify-content: start;
  margin-top: 8px;
}

/* Make rod swatches slightly more substantial */
.cfg-rod-color-swatch {
  min-width: 0;
}
.cfg-rod-swatch-dot {
  width: 18px;
  height: 18px;
  min-width: 18px;
}

/* ─── C6-07: Rod card — tighter image wrap, larger watt ──── */
.cfg-rod-card {
  padding: 16px 18px;
}
.cfg-rod-img-wrap,
.cfg-rod-card-img-placeholder {
  width: 200px;
  min-width: 200px;
  height: 200px;
}
.cfg-rod-card-watt {
  font-size: 28px;
  margin-bottom: 4px;
}
.cfg-rod-card-title {
  font-size: 16px;
}

/* ─── C6-06: Step 6 valve color block — wider preview ─────── */
.cfg-valve-color-block {
  gap: 22px;
}
.cfg-valve-color-preview {
  padding: 12px;
}
.cfg-valve-color-preview img {
  border-radius: 8px;
}

/* Step 5 sticky panel — push down a bit so it clears the topbar */
.cfg-step5-info-panel {
  top: 100px;
}

@media (max-width: 600px) {
  .cfg-rod-img-wrap,
  .cfg-rod-card-img-placeholder {
    width: 100%;
    min-width: unset;
    height: 130px;
  }
  .cfg-rod-card-colors {
    grid-template-columns: repeat(2, auto);
  }
}

/* =============================================================
   PASS C7 — Image frame polish, auto-advance UX, PDF tweaks
   ============================================================= */

/* C7-A-01: Valve color preview — remove inner double-frame.
   The img previously had its own gradient background + 10px border-radius,
   producing a second "box" inside the panel. Removing those lets the parent
   container's gradient show through as a single, unified frame. */
.cfg-valve-color-preview {
  padding: 6px;
}
.cfg-valve-color-preview img {
  aspect-ratio: auto;
  max-height: 250px;
  background: transparent;
  border-radius: 0;
}

/* C7-A-02: L/R direction cards — reduce inner padding from 6px to 2px.
   The 6px inset was adding visible empty gradient bands around the product
   photo, making the image look "floating in a larger box". */
.cfg-lr-card-image {
  padding: 2px;
}

/* C7-A-03: Rod image wrap — switch from square (200×200) to portrait format.
   Heating rod product photos are typically tall and narrow; forcing a 1:1 box
   left obvious horizontal whitespace on both sides.
   aspect-ratio 2/3 → 170px wide × 255px tall, which fills rod images better.
   The child img-main/img-hover remain position:absolute inset:0 and will fill
   the new portrait box correctly. */
.cfg-rod-img-wrap {
  width: 170px;
  min-width: 170px;
  height: auto;
  aspect-ratio: 2/3;
}
.cfg-rod-card-img-placeholder {
  width: 170px;
  min-width: 170px;
  height: 255px;
}

@media (max-width: 600px) {
  .cfg-rod-img-wrap {
    width: 100%;
    min-width: unset;
    height: 150px;
    aspect-ratio: auto;
  }
  .cfg-rod-card-img-placeholder {
    width: 100%;
    min-width: unset;
    height: 150px;
  }
}

/* =============================================================
   PASS C8 — Final UX + PDF Polish
   ============================================================= */

/* ─── C8: Rod image wrap — transparent bg, portrait format ─── */
/* Overrides C6-05 (gradient bg) and C7-A-03 (aspect-ratio 2/3).
   Transparent background removes the "image inside white frame" effect.
   Portrait 3/5 fits most rod product photos without pillarboxing. */
.cfg-rod-img-wrap {
  background: transparent;
  width: 160px;
  min-width: 160px;
  height: auto;
  aspect-ratio: 3 / 5;
}
.cfg-rod-img-wrap .img-main,
.cfg-rod-img-wrap .img-hover {
  filter: drop-shadow(0 3px 8px rgba(15, 52, 96, 0.12));
}
.cfg-rod-card-img-placeholder {
  width: 160px;
  min-width: 160px;
  height: 267px;
}

/* ─── C8: Rod card colors — full-width 2-column grid ────────── */
/* Overrides C6-07 (repeat(2,auto) + justify-content:start).
   Using 1fr instead of auto so each swatch fills its cell fully — clean grid. */
.cfg-rod-card-colors {
  grid-template-columns: repeat(2, 1fr);
  justify-content: unset;
  gap: 6px;
}
.cfg-rod-color-swatch {
  border-radius: 10px;
  white-space: normal;
  min-width: 0;
}

/* ─── C8: Valve image wrap — square + transparent ───────────── */
/* Overrides C6 neutral gradient bg. Square (1:1) fits valve photos better
   than 4/3 which caused horizontal white bars on portrait images. */
.cfg-valve-img-wrap {
  aspect-ratio: 1 / 1;
  background: transparent;
}
.cfg-valve-img-wrap .img-main,
.cfg-valve-img-wrap .img-hover {
  filter: drop-shadow(0 2px 7px rgba(15, 52, 96, 0.11));
}

/* ─── C8: Valve color block — correct column width ──────────── */
/* Overrides C5 (300px 1fr) and C6 gap (22px). 200px preview is enough —
   300px was making the preview dominant over the color pills. */
.cfg-valve-color-block {
  grid-template-columns: 200px 1fr;
  gap: 16px;
}
.cfg-valve-color-preview {
  padding: 10px;
}
.cfg-valve-color-preview img {
  background: transparent;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  max-height: none;
}

/* ─── C8: L/R card image — remove extra padding ─────────────── */
/* Overrides C7-A-02 (padding: 2px). 0 padding = photo fills the card box
   without an inner gradient band around it. */
.cfg-lr-card-image {
  padding: 0;
  background: transparent;
}

@media (max-width: 600px) {
  .cfg-rod-img-wrap,
  .cfg-rod-card-img-placeholder {
    width: 100%;
    min-width: unset;
    height: 140px;
    aspect-ratio: auto;
  }
  .cfg-rod-card-colors {
    grid-template-columns: 1fr;
  }
  .cfg-valve-color-block {
    grid-template-columns: 1fr;
  }
}
