/* HatchTech configurator — tokens en wat Tailwind niet dekt.
   De kleuren komen uit het theme-palet (per-site brand via ht_brand), met de
   hex uit het ontwerp als fallback voor de standalone HTML-variant. */
:root {
  --brand-primary: var(--wp--preset--color--primary, #cf033d);
  --brand-primary-hover: var(--wp--preset--color--primary-hover, #a80230);
  --text-primary: var(--wp--preset--color--text-primary, #1a1a1a);
  --text-secondary: var(--wp--preset--color--text-secondary, #1a1a1ab2);
  --text-muted: #1a1a1acc;
  --surface: var(--wp--preset--color--page-bg, #ededec);
  --border-subtle: #0000001a;
  --shadow-card: 0 8px 14px #0000000f;
  --radius-card: 24px;
}

/* Het hidden-attribuut werkt alleen via de UA-stylesheet en verliest van elke
   expliciete display-regel — hier van Tailwinds `grid`-utility. Zonder deze
   regel blijft een verborgen paneel zijn rand en padding tonen. */
[hidden] {
  display: none !important;
}

/* Geen body-regel: het theme zet font en kleur al (Inter, --text-primary). */

.ht-config__option {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.ht-config__option:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.ht-config__option[aria-checked='true'] {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* Segmented pill (units): één witte pill waarin de rode duim onder de
   labels door naar de actieve keuze schuift. Beide segmenten zijn even
   breed, dus de duim hoeft alleen te verschuiven (geen layout-animatie). */
.ht-seg {
  position: relative;
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px;
  isolation: isolate;
}

.ht-seg__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--brand-primary);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-primary) 25%, transparent);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 0;
}

.ht-seg[data-active='1'] .ht-seg__thumb {
  transform: translateX(100%);
}

.ht-seg .ht-seg__option {
  position: relative;
  z-index: 1;
  width: 96px;
  padding: 8px 0;
  text-align: center;
  border: none;
  background: transparent;
  transition: color 0.25s ease;
}

.ht-seg .ht-seg__option:hover {
  border: none;
  color: var(--brand-primary);
}

/* Actief segment blijft zelf transparant: de rode duim eronder is de
   vulling — zou de knop zelf rood worden, dan zie je de schuif nooit. */
.ht-seg .ht-seg__option[aria-checked='true'],
.ht-seg .ht-seg__option[aria-checked='true']:hover {
  background: transparent;
  border: none;
  color: #fff;
}

/* Speclabel/waarde: gedeeld tussen alle configurators. */
.ht-spec__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--brand-primary);
}

.ht-spec__value {
  font-size: 20px;
  font-weight: 300;
  /* Tabular figures: tellers tellen op zonder dat de rij meetrilt. */
  font-variant-numeric: tabular-nums;
}

/* Entrance-reveal: opacity/translateY, gestaffeld vanuit JS toegepast.
   Verbergen gebeurt uitsluitend via JS (deze klasse) — zonder JS krijgt een
   element hem nooit en blijft de pagina gewoon zichtbaar. */
.ht-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ht-reveal.is-visible { opacity: 1; transform: none; }

/* Eén focusring voor alle interactieve elementen van de configurator. */
.ht-config__option:focus-visible,
.ht-step__button:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

.ht-plan {
  width: 100%;
  height: auto;
  display: block;
}

.ht-plan__room {
  fill: #ffffff;
  stroke: var(--border-subtle);
  stroke-width: 1.5;
}

.ht-plan__unit {
  fill: var(--brand-primary);
  fill-opacity: 0.18;
  stroke: var(--brand-primary);
  stroke-opacity: 0.5;
  stroke-width: 1;
}

.ht-plan__dim {
  stroke: var(--text-secondary);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.ht-plan__dim-label,
.ht-plan__area {
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  fill: var(--text-muted);
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 6px;
}

/* Dolly-bord: witte tegel op het grijze podium met alléén het werkelijke
   aantal dolly's/trolleys. Elke dolly is een stapel liggende tray-balkjes.
   Max 6 dolly's per rij: 6 × 42px dolly + 5 × 14px gap + 40px padding
   = 362px; de 7e zou 56px extra nodig hebben en wrapt dus altijd. */
.ht-dolly-board {
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 362px;
}

.ht-dolly {
  display: grid;
  grid-template-columns: repeat(3, 12px);
  gap: 3px;
}

.ht-dolly__tray {
  display: block;
  height: 6px;
  border-radius: 1.5px;
  background: #b3b2b0;
}

/* Middelste tray-kolom een tint donkerder: subtiele diepte, zoals de
   schaduwlijn in het midden van een echte tray-stapel. */
.ht-dolly__tray:nth-child(3n + 2) {
  background: #a5a4a2;
}

.ht-dolly.is-entering {
  animation: ht-dolly-in 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes ht-dolly-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ht-dolly.is-leaving {
  animation: ht-dolly-out 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes ht-dolly-out {
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.85);
  }
}

/* Druk-feedback: een subtiele scale-down bij het indrukken. */
.ht-config__option:active,
.ht-step__button:not(:disabled):active {
  transform: scale(0.97);
}

.ht-step__button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  border: none;
  box-shadow: 0 2px 6px #0000000f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s, box-shadow 0.2s;
}

.ht-step__button:not(:disabled):hover {
  color: var(--brand-primary);
  box-shadow: 0 4px 10px #00000018;
}

.ht-step__button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Drie-koloms opzet: modellen links, podium midden, series rechts. */
.ht-config__columns {
  display: grid;
  grid-template-columns: minmax(150px, 200px) minmax(0, 1fr) minmax(150px, 200px);
  gap: 24px;
  align-items: start;
}

.ht-config__side-label {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.ht-config__choices {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  isolation: isolate;
}

/* De rode duim die in de kolommen naar de actieve knop schuift — zelfde
   gebaar als de units-switch. Positie en maat worden vanuit JS gemeten. */
.ht-choice-thumb {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  border-radius: 12px;
  background: var(--brand-primary);
  box-shadow: 0 8px 14px -4px color-mix(in srgb, var(--brand-primary) 20%, transparent);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1),
              width 0.35s cubic-bezier(0.65, 0, 0.35, 1),
              height 0.35s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 0.2s ease;
  z-index: 0;
  pointer-events: none;
}

/* Blokvariant van de keuzeknop, voor de verticale kolommen. De hover is de
   site-signatuur: een zachte brand-vulling die van onderaf binnenloopt. */
.ht-config__option--block {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  border-color: transparent;
  background: var(--surface);
  padding: 14px 18px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 1;
  transition: color 0.25s ease, transform 0.1s ease;
}

.ht-config__option--block::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 0;
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  transition: height 0.3s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
}

.ht-config__option--block:hover {
  border-color: transparent;
}

.ht-config__option--block:hover::before {
  height: calc(100% + 2px);
}

/* Actieve knop blijft zelf transparant: de duim eronder is de vulling. De
   tekst kruist rustig mee naar wit. */
.ht-config__option--block[aria-checked='true'],
.ht-config__option--block[aria-checked='true']:hover {
  background: transparent;
  border-color: transparent;
  color: #fff;
}

.ht-config__option--block[aria-checked='true']::before {
  display: none;
}

/* Podium: visualisatie gecentreerd, specs onderin, stepper onder het bord. */
.ht-config__stage-panel {
  position: relative;
  background: linear-gradient(180deg, #f1f0ef 0%, #eae9e8 100%);
  border-radius: var(--radius-card);
  padding: 24px 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.ht-config__stage-center {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 0 32px;
}

.ht-config__spec-row {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  border-top: 1px solid #0000000d;
  padding-top: 20px;
}

.ht-config__title {
  max-width: 900px;
  margin-inline: auto;
}

.ht-config__title em {
  color: var(--brand-primary);
  font-style: normal;
}

.ht-config__caption {
  text-align: left;
}

.ht-config__caption strong,
.ht-config__caption em {
  font-weight: 700;
  font-style: normal;
}

/* Stepper onder het dolly-bord: kan nooit met het bord overlappen. */
.ht-step__stack {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

/* Onder 1024px stapelen de kolommen; de keuzelijsten worden dan
   horizontale rijen boven en onder het podium. */
@media (max-width: 1023px) {
  .ht-config__columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .ht-config__choices {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ht-config__option--block {
    width: auto;
    flex: 0 1 auto;
  }

  .ht-config__stage-panel {
    min-height: 380px;
  }
}

/* ── De calculator IS een Gravity Form ──────────────────────────────────────
   Alles hieronder kleedt het formulier aan; de rest van het thema (frontend.css)
   doet de velden zelf al. Vier klassen waar frontend.css er drie gebruikt, zodat
   de laadvolgorde niet uitmaakt. */

/* Rustige leesbreedte: de kaart mag breed zijn, de velden niet. */
.ht-calculator .gform-theme.gform-theme--framework.gform_wrapper .gform_fields {
  max-width: 640px;
  margin-inline: auto;
}

/* Op smalle schermen passen de halve kolommen van pagina 2 niet meer. Het
   raster blijft tweekoloms (.gfield spant er twee); de halve velden gaan over
   de volle breedte. */
@media (max-width: 640px) {
  .ht-calculator .gform-theme.gform-theme--framework.gform_wrapper .gfield.gf_left_half,
  .ht-calculator .gform-theme.gform-theme--framework.gform_wrapper .gfield.gf_right_half {
    grid-column: span 2;
  }
}

/* Stappen: 1 Uw cijfers → 2 Uw gegevens. Zelfde kolom als .gform_fields, anders
   beginnen ze tegen de kaartrand terwijl de velden gecentreerd staan. */
.ht-calculator .gf_page_steps {
  display: flex;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto 32px;
  border: 0;
}

.ht-calculator .gf_step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  opacity: 1;
}

.ht-calculator .gf_step_number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 13px;
}

.ht-calculator .gf_step_active {
  color: var(--text-primary);
  font-weight: 500;
}

.ht-calculator .gf_step_active .gf_step_number {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* Het eenhedenveld als pillenpaar, zelfde vorm als de configurator. */
.ht-calculator .gform_wrapper .gfield--type-radio .gfield_radio {
  display: flex;
  /* Gravity Forms zet keuzes onder elkaar; twee eenheden horen naast elkaar.
     Vier klassen: de regel van Gravity Forms telt er drie en laadt later. */
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.ht-calculator .gform_wrapper .gfield--type-radio .gchoice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Vier klassen: Gravity Forms zet hier margin-left voor het (verborgen) rondje,
   waardoor de pillen 12px inspringen ten opzichte van het label erboven. */
.ht-calculator .gform-theme.gform-theme--framework.gform_wrapper .gfield--type-radio .gchoice label {
  display: inline-flex;
  margin-inline: 0;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: #e1e1df;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.ht-calculator .gform-theme.gform-theme--framework.gform_wrapper .gfield--type-radio .gchoice label:hover {
  background: #d8d8d5;
}

.ht-calculator .gform-theme.gform-theme--framework.gform_wrapper .gfield--type-radio .gchoice input:checked + label {
  background: var(--brand-primary);
  color: #fff;
}

.ht-calculator .gform-theme.gform-theme--framework.gform_wrapper .gfield--type-radio .gchoice input:focus-visible + label {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* ── GP Sliders in de huisstijl ─────────────────────────────────────────────
   De perk levert rail, vulling, greep en een tooltip. Het ontwerp vraagt om een
   waardebel die altijd boven de greep staat en om de uiteinden eronder; dat is
   dezelfde tooltip, altijd zichtbaar, plus een rij die inc/configurator.php
   aanhangt. */
.ht-calculator .gps-slider {
  height: 22px;
  margin-top: 40px;
}

.ht-calculator .gps-slider__track {
  height: 6px;
  background: #cf033d29;
}

.ht-calculator .gps-slider__fill {
  height: 6px;
  background: var(--brand-primary);
}

.ht-calculator .gps-slider__handle {
  width: 22px;
  height: 22px;
  background: var(--brand-primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px #0000002e;
  cursor: grab;
}

.ht-calculator .gps-slider__handle:hover {
  background: var(--brand-primary-hover);
}

.ht-calculator .gps-slider__handle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px #cf033d40;
}

/* De tooltip IS de waardebel: geen zweefgedrag, geen pijltje, wel altijd zien
   waar de greep staat. */
.ht-calculator .gps-slider__tooltip {
  opacity: 1;
  visibility: visible;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--brand-primary);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 600;
}

.ht-calculator .gps-slider__tooltip::after {
  display: none;
}

/* De waarde staat in de bel; deze regel blijft alleen voor schermlezers staan
   (hij draagt de aria-live). */
.ht-calculator .gps-slider__value-display {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* GF's foundation-reset raakt alles binnen .gform_fields; vier klassen om er
   overheen te komen (dezelfde truc als hierboven). */
.ht-calculator .gform-theme.gform-theme--framework.gform_wrapper .ht-calc__minmax-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.ht-calculator .gform-theme.gform-theme--framework.gform_wrapper .ht-calc__minmax {
  background: #cf033d14;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
}

/* De knoppenrij staat naast .gform_fields, niet erin — zonder deze marge plakt
   de knop tegen het laatste veld, met zijn schaduw eroverheen. */
.ht-calculator .gform-theme.gform-theme--framework.gform_wrapper .gform_page_footer,
.ht-calculator .gform-theme.gform-theme--framework.gform_wrapper .gform_footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.ht-calculator .gform-theme.gform-theme--framework.gform_wrapper .gform_page_footer input[type='button'],
.ht-calculator .gform-theme.gform-theme--framework.gform_wrapper input[type='submit'].button.gform_button {
  width: auto;
  min-width: 260px;
}

/* Terug-knop is secundair: dezelfde pil, maar leeg. */
.ht-calculator .gform_previous_button {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

/* De uitkomst, na versturen. Het groene bevestigingsvak uit frontend.css hoort
   bij gewone formulieren; hier IS de bevestiging het resultaat. */
.ht-calculator .gform_confirmation_message {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
}

.ht-calc__outcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.ht-calc__outcome-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.ht-calc__outcome-value {
  font-size: 40px;
  font-weight: 300;
  color: var(--text-primary);
}

.ht-calc__outcome-note {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 48ch;
}

@media (prefers-reduced-motion: reduce) {
  .ht-config__option {
    transition: none;
  }

  .ht-dolly.is-entering {
    animation: none;
  }

  .ht-dolly.is-leaving {
    animation: none;
  }

  .ht-seg__thumb {
    transition: none;
  }

  .ht-choice-thumb {
    transition: none;
  }

  .ht-config__option:active,
  .ht-step__button:not(:disabled):active {
    transform: none;
  }

  /* De vul-animatie wordt een gewone kleurwissel. */
  .ht-config__option--block::before {
    transition: none;
    height: 0;
  }

  .ht-config__option--block:hover::before {
    height: 0;
  }

  .ht-config__option--block:not([aria-checked='true']):hover {
    background-color: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  }

  .ht-step__button {
    transition: none;
  }

  /* Reveal: nooit verbergen als bewegingsvoorkeur dat vraagt. De JS-helpers
     laten .ht-reveal in dat geval sowieso al ongebruikt — dit is de
     stylesheet-vangnet ernaast. */
  .ht-reveal,
  .ht-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Added Value calculator: twee onafhankelijke kolommen met een
   plus-divider, kengetal-chips, beslisboom-pills en een donkere
   totaalbalk. Gedeeld met de andere configurators: ht-config__option,
   ht-seg, ht-step__button, ht-spec__* en ht-reveal hierboven. */

/* Signatuur-knop-hover van de site: vulling van onderaf in plaats van een
   kleurwissel. Toegepast op de primaire CTA onder de calculator. */
.ht-btn-fill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.ht-btn-fill::before {
  content: "";
  position: absolute;
  left: -1px; right: -1px; bottom: -1px;
  height: 0;
  background-color: var(--wp--preset--color--primary-dark, #8a0027);
  transition: height 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
}
.ht-btn-fill:hover::before { height: calc(100% + 2px); }

.ht-config__brochure {
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 24.5px #c41e3a55;
  transition: background-color 0.2s;
}

.ht-config__brochure:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

.ht-av__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.ht-av__column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.3s ease;
}

.ht-av__column.is-off {
  opacity: 0.35;
}

.ht-av__divider {
  position: relative;
  align-self: stretch;
  background: var(--border-subtle);
}

.ht-av__plus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 14px -4px #c41e3a33;
}

.ht-av__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ht-av__chip {
  position: relative;
  cursor: help;
  flex: 1 1 0;
  min-width: 110px;
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ht-av__chip-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.ht-av__chip-value {
  font-size: 20px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: var(--brand-primary);
}

/* Tooltip op de kengetal-chips: verschijnt bij hover én toetsenbordfocus. */
.ht-av__tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 300px;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  padding: 8px 12px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.ht-av__chip:hover .ht-av__tip,
.ht-av__chip:focus-visible .ht-av__tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ht-av__chip:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

/* Onderliggende formule, klein en lichtgrijs onder de waarde. */
.ht-av__formula {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: #1a1a1a66;
}

/* Aantallen-stepper per machinediepte. */
.ht-av__qty-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ht-av__qty {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: 12px;
  padding: 8px 8px 8px 16px;
}

.ht-av__qty.is-active {
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
}

.ht-av__qty-name {
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 500;
}

.ht-av__qty.is-active .ht-av__qty-name {
  color: var(--brand-primary);
}

.ht-av__qty-count {
  min-width: 24px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ht-av__qty-btn {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

/* Configuration overview: opsomming van de samengestelde configuratie. */
.ht-av__overview {
  margin-top: 40px;
  background: var(--surface);
  border-radius: 16px;
  padding: 20px 24px;
}

.ht-av__overview-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.ht-av__outputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid #0000000d;
  padding-top: 20px;
  margin-top: 4px;
}

/* Uitgeschakelde kolom: uitkomsten vervagen mee. */
.ht-av__outputs.is-muted {
  opacity: 0.35;
}

.ht-av__annual {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.45px;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

.ht-av__total {
  width: 100%;
  max-width: 560px;
  background: var(--wp--preset--color--primary-dark, #8a0027);
  color: #fff;
  border-radius: 16px;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ht-av__total-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffffcc;
}

.ht-av__total-value {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}

.ht-av__total-value:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Aan/uit-switch per kolom. */
.ht-switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: #0000002e;
  cursor: pointer;
  transition: background-color 0.25s ease;
  flex: 0 0 auto;
}

.ht-switch__dot {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px #00000033;
  transition: transform 0.25s cubic-bezier(0.65, 0, 0.35, 1);
}

.ht-switch[aria-checked='true'] {
  background: var(--brand-primary);
}

.ht-switch[aria-checked='true'] .ht-switch__dot {
  transform: translateX(20px);
}

.ht-switch:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  /* De inline grid-template-columns (n kolommen + dividers) wijkt hier
     voor één kolom; !important wint van de inline stijl uit de engine. */
  .ht-av__grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .ht-av__divider {
    height: 1px;
    align-self: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ht-switch,
  .ht-switch__dot,
  .ht-av__column,
  .ht-av__tip {
    transition: none;
  }

  .ht-btn-fill::before {
    transition: none;
    height: 0;
  }

  .ht-btn-fill:hover::before {
    height: 0;
  }

  .ht-btn-fill:hover {
    background-color: var(--wp--preset--color--primary-dark, #8a0027);
  }
}
