/* =====================================================================
   offerte-pop-up.css — "Grotere hoeveelheid nodig?" + offerte-pop-up
   Hoort bij snippets/offerte-pop-up.rain + assets/offerte-pop-up.js
   Opbouw afgeleid van de proefstaal-popup. Kleuren/maten via de
   theme-variabelen uit style.css (--black, --accent, --lines, ...).
   ===================================================================== */

/* ---------- Blok onder de USP's ---------- */
.offerte-blok {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 20px 0;
  padding: 16px 18px;
  background: var(--light, #FAFAFA);
  border: 1px solid var(--lines, #ECECEC);
  border-radius: var(--borderRadius2, 4px);
}
.offerte-blok__titel {
  color: var(--black, #29384B);
  font-family: var(--fontHeading), sans-serif;
  font-size: var(--h4size, 16px);
  font-weight: 800;
  line-height: 1.3;
}
/* Secundaire (outline) variant van .button, alleen binnen dit blok,
   zodat hij niet concurreert met de groene "In winkelwagen"-knop */
.offerte-blok .button.offerte-blok__knop { color: var(--black, #29384B); }
.offerte-blok .button.offerte-blok__knop::before {
  background-color: transparent;
  border-color: var(--black, #29384B);
  color: var(--black, #29384B);
}
.offerte-blok .button.offerte-blok__knop:hover { color: var(--white, #FFFFFF); }
.offerte-blok .button.offerte-blok__knop:hover::before {
  background-color: var(--black, #29384B);
  border-color: var(--black, #29384B);
}

@media (max-width: 575.98px) {
  .offerte-blok { flex-direction: column; align-items: stretch; text-align: center; }
  .offerte-blok .button.offerte-blok__knop { width: 100%; }
}

/* ---------- Pop-up: basis ---------- */
.offerte-popup { display: none; }
.offerte-popup.is-open { display: block; }
.offerte-popup [hidden][hidden] { display: none; } /* dubbele selector: wint van o.a. .offerte-popup .offerte-popup__veld */
body.offerte-popup-open { overflow: hidden; }
/* Pop-up helemaal op de voorgrond: chatwidget verbergen zolang hij open is */
body.offerte-popup-open #dp-verfbalie-launcher,
body.offerte-popup-open #dp-verfbalie-frame { display: none; }

.offerte-popup__overlay {
  position: fixed; inset: 0; z-index: 2147483647;
  background: rgba(41, 56, 75, 0.6);
}
.offerte-popup__dialog {
  position: fixed; z-index: 2147483647;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #FFFFFF;
  border-radius: var(--borderRadius2, 4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  color: var(--colorBody, #29384B);
  outline: none;
}
.offerte-popup__x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF; border: 1px solid var(--lines, #ECECEC); border-radius: 50%;
  color: var(--black, #29384B); cursor: pointer;
}

/* Kop met productfoto */
.offerte-popup__head {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 64px 12px 28px;
  flex: 0 0 auto;
}
.offerte-popup__head img {
  flex: 0 0 64px; width: 64px; height: 64px;
  object-fit: cover; border-radius: var(--borderRadius3, 4px);
  background: var(--light, #FAFAFA);
}
.offerte-popup__title { margin: 0 0 2px; color: var(--black, #29384B); }
.offerte-popup__product { font-size: var(--fontSmall, 12px); color: var(--grey, #898D93); line-height: 1.4; }

/* Formulier-structuur */
.offerte-popup__form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin: 0; }
.offerte-popup__body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 20px 28px 24px;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
/* Voortgang (4 stappen) */
.offerte-popup__voortgang {
  flex: 0 0 auto;
  padding: 0 28px 12px;
  border-bottom: 1px solid var(--lines, #ECECEC);
}
.offerte-popup__balk { display: flex; gap: 6px; }
.offerte-popup__balk span {
  flex: 1 1 0; height: 4px; border-radius: 2px;
  background: var(--lines, #ECECEC);
  transition: background-color var(--transition, 0.2s);
}
.offerte-popup__balk span.is-klaar,
.offerte-popup__balk span.is-actief { background: var(--accent, #70C067); }
.offerte-popup__stap-label { margin-top: 8px; color: var(--grey, #898D93); font-size: var(--fontSmall, 12px); }
.offerte-popup__kop:focus { outline: none; }
.offerte-popup__kop {
  display: block; margin-bottom: 10px;
  color: var(--black, #29384B);
  font-family: var(--fontHeading), sans-serif;
  font-size: var(--h4size, 16px);
  font-weight: 800;
}
.offerte-popup__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.offerte-popup__veld--vol { grid-column: 1 / -1; }

/* Labels + velden */
.offerte-popup .offerte-popup__veld {
  display: block; margin: 0;
  color: var(--black, #29384B);
  font-size: var(--fontSmall, 12px);
  font-weight: var(--fontMedium, 600);
}
.offerte-popup .req { color: var(--black, #29384B); }
.offerte-popup .opt { color: var(--grey, #898D93); font-weight: var(--fontNormal, 400); }

.offerte-popup input[type="text"],
.offerte-popup input[type="email"],
.offerte-popup input[type="number"],
.offerte-popup select,
.offerte-popup textarea {
  display: block; width: 100%; height: 44px; margin: 4px 0 0; padding: 0 12px;
  background: #FFFFFF; color: var(--black, #29384B);
  border: 1px solid #8D8D8D; /* theme-setting "Form border" */
  border-radius: var(--borderRadius3, 4px);
  box-shadow: none;
  font-family: inherit; font-size: 16px; /* 16px voorkomt inzoomen op iOS */
  font-weight: var(--fontNormal, 400);
}
.offerte-popup textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.offerte-popup input:focus,
.offerte-popup select:focus,
.offerte-popup textarea:focus {
  outline: none;
  border-color: var(--accent_blue, #0099E5);
  box-shadow: 0 0 0 3px rgba(0, 153, 229, 0.15);
}
.offerte-popup .is-invalid,
.offerte-popup .is-invalid:focus { border-color: #D0342C; box-shadow: 0 0 0 3px rgba(208, 52, 44, 0.12); }

/* Aantal + eenheid naast elkaar */
.offerte-popup__aantal { display: grid; grid-template-columns: 140px 160px; gap: 12px; }

/* Checkbox "Twijfel je..." */
.offerte-popup .offerte-popup__check {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 14px 0 0; cursor: pointer;
  color: var(--colorBody, #29384B);
  font-size: var(--fontDefaultSize, 14px); font-weight: var(--fontNormal, 400); line-height: 1.45;
}
.offerte-popup__check input[type="checkbox"] {
  -webkit-appearance: checkbox; appearance: auto;
  position: static; opacity: 1;
  flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0;
  accent-color: var(--accent, #70C067);
}

/* Afmetingen / muren */
.offerte-popup__afmetingen {
  margin-top: 12px; padding: 14px;
  background: var(--light, #FAFAFA);
  border: 1px solid var(--lines, #ECECEC);
  border-radius: var(--borderRadius2, 4px);
}
.offerte-popup__muur {
  display: grid; grid-template-columns: 64px 1fr 1fr 36px;
  gap: 10px; align-items: end;
}
.offerte-popup__muur + .offerte-popup__muur { margin-top: 10px; }
.offerte-popup__muur-nr {
  height: 44px; line-height: 44px;
  font-weight: var(--fontMedium, 600); color: var(--black, #29384B); white-space: nowrap;
}
.offerte-popup__totaal { margin-top: 10px; font-weight: var(--fontMedium, 600); color: var(--black, #29384B); }

/* Verf: variantregels (stap 2) */
.offerte-popup__regel {
  display: grid; grid-template-columns: minmax(0, 1fr) 120px 36px;
  gap: 10px; align-items: end;
}
/* kleurentool-variant: extra kolom voor het kleurveld */
.offerte-popup__regel.heeft-kleur { grid-template-columns: minmax(0, 1.4fr) 90px minmax(0, 1fr) 36px; }
.offerte-popup__regel + .offerte-popup__regel {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--lines, #ECECEC);
}

/* Extra producten (stap 3) */
.offerte-popup__extra-rij {
  padding: 12px 14px 14px;
  background: var(--light, #FAFAFA);
  border: 1px solid var(--lines, #ECECEC);
  border-radius: var(--borderRadius2, 4px);
}
.offerte-popup__extra-rij + .offerte-popup__extra-rij { margin-top: 12px; }
.offerte-popup__extra-kop { display: flex; align-items: center; justify-content: space-between; margin: -4px -8px 4px 0; }
.offerte-popup__extra-nr { font-weight: var(--fontMedium, 600); color: var(--black, #29384B); }
.offerte-popup__extra-kop .offerte-popup__weg { height: 32px; }

/* zoeken + resultaten (in de flow, zodat niets wordt afgesneden) */
.offerte-popup__zoek { position: relative; min-width: 0; }
.offerte-popup__suggesties {
  margin-top: 6px;
  background: #FFFFFF;
  border: 1px solid var(--lines, #ECECEC);
  border-radius: var(--borderRadius3, 4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.offerte-popup__suggesties ul { margin: 0; padding: 4px 0; list-style: none; max-height: 290px; overflow-y: auto; }
.offerte-popup__suggesties li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; cursor: pointer; line-height: 1.35;
  color: var(--black, #29384B); font-size: var(--fontDefaultSize, 14px);
}
.offerte-popup__suggesties li img {
  flex: 0 0 36px; width: 36px; height: 36px; object-fit: cover;
  border-radius: var(--borderRadius3, 4px); background: var(--light, #FAFAFA);
}
.offerte-popup__suggesties li:hover,
.offerte-popup__suggesties li.is-actief { background: var(--light, #FAFAFA); color: var(--accent_blue, #0099E5); }
.offerte-popup__zoek-status { padding: 10px 12px 4px; color: var(--grey, #898D93); font-size: var(--fontSmall, 12px); }
.offerte-popup__suggesties-acties {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  padding: 8px 12px 10px;
  border-top: 1px solid var(--lines, #ECECEC);
}
.offerte-popup__suggesties-acties .offerte-popup__link { margin-top: 0; }
.offerte-popup__suggesties-acties [data-offerte-handmatig] { color: var(--black, #29384B); margin-left: auto; }
.offerte-popup__link[disabled] { opacity: 0.6; pointer-events: none; }

/* gekozen product */
.offerte-popup__gekozen {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px;
  background: #FFFFFF;
  border: 1px solid var(--lines, #ECECEC);
  border-radius: var(--borderRadius3, 4px);
}
.offerte-popup__gekozen img {
  flex: 0 0 44px; width: 44px; height: 44px; object-fit: cover;
  border-radius: var(--borderRadius3, 4px); background: var(--light, #FAFAFA);
}
.offerte-popup__gekozen-tekst { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.offerte-popup__gekozen-tekst strong { display: block; color: var(--black, #29384B); font-weight: var(--fontMedium, 600); }
.offerte-popup__gekozen-tekst span { color: var(--grey, #898D93); font-size: var(--fontSmall, 12px); }
.offerte-popup__laden { margin-top: 10px; color: var(--grey, #898D93); font-size: var(--fontSmall, 12px); }

/* varianten / aantal / eenheid */
.offerte-popup__extra-velden {
  display: grid; grid-template-columns: 120px 1fr; gap: 10px 12px;
  margin-top: 10px;
}
.offerte-popup__extra-velden [data-deel="aantal"] { grid-column: 1; }
/* verf: [Aantal][Eenheid = varianten] */
.offerte-popup__extra-rij[data-modus="product"] .offerte-popup__variant { grid-column: 2; grid-row: 1; }
/* behang: [Uitvoering over de volle breedte] daaronder [Aantal][Eenheid] */
.offerte-popup__extra-rij[data-modus="behang"] .offerte-popup__variant { grid-column: 1 / -1; grid-row: 1; }
.offerte-popup__extra-rij[data-modus="behang"].heeft-variant [data-deel="aantal"],
.offerte-popup__extra-rij[data-modus="behang"].heeft-variant [data-deel="eenheid"] { grid-row: 2; }
.offerte-popup__extra-velden [data-deel="eenheid"] { grid-column: 2; }
.offerte-popup__extra-velden .offerte-popup__kleur { grid-column: 1 / -1; }
.offerte-popup__extra-rij [data-blok="behang"] .offerte-popup__afmetingen { background: #FFFFFF; }

/* Kleine knoppen */
.offerte-popup__weg {
  width: 36px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
  color: var(--grey, #898D93);
}
.offerte-popup__weg:hover { color: var(--black, #29384B); }
.offerte-popup__link {
  display: flex; width: fit-content; float: none; align-items: center; gap: 6px;
  margin-top: 12px; padding: 0;
  background: none; border: 0; cursor: pointer;
  color: var(--accent_blue, #0099E5);
  font-family: inherit; font-size: var(--fontDefaultSize, 14px); font-weight: var(--fontMedium, 600);
}
.offerte-popup__link:hover { text-decoration: underline; }
.offerte-popup__hint { display: block; clear: both; margin: 10px 0 0; color: var(--grey, #898D93); font-size: var(--fontSmall, 12px); line-height: 1.5; }
.offerte-popup__hint--top { margin: -4px 0 8px; }

/* Honeypot */
.offerte-popup .offerte-popup__hp { display: none; }

/* Actiebalk onderin */
.offerte-popup__actions {
  flex: 0 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px;
  padding: 14px 28px 18px;
  background: #FFFFFF;
  border-top: 1px solid var(--lines, #ECECEC);
}
.offerte-popup__verplicht { color: var(--grey, #898D93); font-size: var(--fontSmall, 12px); }
.offerte-popup .button { border: 0; cursor: pointer; font-family: inherit; font-size: inherit; }
.offerte-popup__actions .button { min-width: 180px; }
.offerte-popup .button[disabled] { opacity: 0.6; pointer-events: none; }
.offerte-popup__melding {
  flex: 1 0 100%;
  padding: 10px 12px;
  background: #FDECEA; color: #A1251C;
  border-radius: var(--borderRadius3, 4px);
  font-size: 13px; line-height: 1.5;
}

/* Stap 4: overzicht */
.offerte-popup__overzicht-blok {
  padding: 14px 16px;
  background: var(--light, #FAFAFA);
  border: 1px solid var(--lines, #ECECEC);
  border-radius: var(--borderRadius2, 4px);
}
.offerte-popup__overzicht-blok + .offerte-popup__overzicht-blok { margin-top: 10px; }
.offerte-popup__overzicht-kop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.offerte-popup__overzicht-kop strong { color: var(--black, #29384B); font-weight: 800; }
.offerte-popup__overzicht-kop strong.is-product { font-weight: var(--fontMedium, 600); }
.offerte-popup__overzicht-blok ul { margin: 0; padding: 0; list-style: none; }
.offerte-popup__overzicht-blok li { line-height: 1.6; color: var(--colorBody, #29384B); }
.offerte-popup__overzicht-blok li + li { margin-top: 2px; }
.offerte-popup__overzicht-blok li span { display: block; }
.offerte-popup__overzicht-blok li span.sub { padding-left: 12px; color: var(--grey, #898D93); font-size: 13px; line-height: 1.5; }
.offerte-popup__wijzig {
  flex: 0 0 auto; padding: 0;
  background: none; border: 0; cursor: pointer;
  color: var(--accent_blue, #0099E5);
  font-family: inherit; font-size: var(--fontSmall, 12px); font-weight: var(--fontMedium, 600);
}
.offerte-popup__wijzig:hover { text-decoration: underline; }
.offerte-popup .offerte-popup__opmerking { margin-top: 18px; }

/* Vorige / Volgende */
.offerte-popup__knoppen { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.offerte-popup__terug {
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--btnHeight, 49px); padding: 0 18px;
  background: none; cursor: pointer;
  border: 1px solid var(--black, #29384B); border-radius: var(--borderRadius, 4px);
  color: var(--black, #29384B);
  font-family: inherit; font-size: inherit; font-weight: var(--fontMedium, 600);
}
.offerte-popup__terug:hover { background: var(--black, #29384B); color: #FFFFFF; }
.offerte-popup__terug i { display: inline-block; transform: rotate(90deg); font-size: 12px; }
.offerte-popup__terug[disabled] { opacity: 0.6; pointer-events: none; }

/* Bedankt-scherm */
.offerte-popup__succes { padding: 44px 28px 36px; text-align: center; overflow-y: auto; }
.offerte-popup__succes-icoon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: 14px;
  background: var(--accent, #70C067); color: #FFFFFF; border-radius: 50%;
  font-size: 24px;
}
.offerte-popup__succes h3 { margin-bottom: 8px; color: var(--black, #29384B); }
.offerte-popup__succes p { max-width: 420px; margin: 0 auto 22px; }

/* ---------- Mobiel: schermvullend, knop sticky onderin ---------- */
@media (max-width: 767px) {
  .offerte-popup__dialog {
    top: 0; left: 0; transform: none;
    width: 100vw; height: 100vh; height: 100dvh; max-height: none;
    border-radius: 0;
  }
  .offerte-popup__head { padding: 16px 56px 10px 16px; }
  .offerte-popup__voortgang { padding: 0 16px 10px; }
  .offerte-popup__head img { flex-basis: 48px; width: 48px; height: 48px; }
  .offerte-popup__body { padding: 16px; }
  .offerte-popup__grid { grid-template-columns: 1fr; }
  .offerte-popup__aantal { grid-template-columns: 1fr 1fr; }
  .offerte-popup__actions { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .offerte-popup__knoppen { width: 100%; order: 2; }
  .offerte-popup__knoppen .button { flex: 1 1 auto; min-width: 0; }
  .offerte-popup__verplicht { order: 3; }

  .offerte-popup__muur { grid-template-columns: 1fr 1fr 36px; }
  .offerte-popup__muur-nr { grid-column: 1 / -1; height: auto; line-height: 1.3; }

  .offerte-popup__extra-rij { padding: 10px 12px 12px; }
  .offerte-popup__regel { grid-template-columns: minmax(0, 1fr) 36px; }
  .offerte-popup__regel.heeft-kleur { grid-template-columns: 90px minmax(0, 1fr) 36px; }
  .offerte-popup__regel-variant { grid-column: 1 / -1; }
  .offerte-popup__extra-velden { grid-template-columns: 1fr 1fr; }
  .offerte-popup__suggesties-acties [data-offerte-handmatig] { margin-left: 0; }
}