/* Brug tussen Gutenberg-blokken en de ViiZ-themaklassen (voorkant + editor) */

/* Groepen: in een klassiek thema zet WordPress een extra inner-container om de inhoud.
   Met display:contents gedragen de kinderen zich alsof die laag er niet is,
   zodat bootstrap .row > .col-* en flex-boxen (rekenexpert-box) gewoon werken. */
.wp-block-group > .wp-block-group__inner-container {
  display: contents;
}
/* Bootstrap .row > * nabootsen (lage specificiteit, zodat .col-* klassen winnen) */
:where(.row > .wp-block-group__inner-container > *) {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}
/* Pijltje tussen de stappen: alleen niet na de laatste stap */
.row > .wp-block-group__inner-container > div:not(:last-child) .step-box::after {
  content: "";
}

/* Knoppen: core/button met klasse button-bright (+ color-blue).
   De wrapper krijgt de knopstijl uit theme.css, de link zelf wordt neutraal. */
.wp-block-button.button-bright .wp-block-button__link {
  background: none !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  font: inherit;
  position: static;
}
.wp-block-button.button-bright .wp-block-button__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}
/* core zet .wp-block-buttons > .wp-block-button op margin:0; theme.css-marge herstellen */
.wp-block-buttons > .wp-block-button.button-bright {
  margin: 0 0 19px;
}
.wp-block-buttons {
  gap: 0 1.3rem;
  margin-bottom: 18px; /* zelfde als de oude <p> om de knoppen */
}
@media (max-width: 767px) {
  .wp-block-buttons.mobile-center {
    justify-content: center;
  }
}

/* Vinkjeslijst: icoon via CSS in plaats van inline SVG */
.wp-block-list.list-check li::before {
  content: "";
  flex: 0 0 1em;
  width: 1em;
  height: 1em;
  margin: 7px 10px 0 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29.63 29.63'><path d='M14.815,0a14.815,14.815,0,1,0,14.815,14.815A14.815,14.815,0,0,0,14.815,0Zm-2.358,23.566-6.744-8.6,2.413-1.893,4.459,5.663,8.822-11.56,2.413,1.894Z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29.63 29.63'><path d='M14.815,0a14.815,14.815,0,1,0,14.815,14.815A14.815,14.815,0,0,0,14.815,0Zm-2.358,23.566-6.744-8.6,2.413-1.893,4.459,5.663,8.822-11.56,2.413,1.894Z'/></svg>") center / contain no-repeat;
}
/* Vinkje bij een link ("Toon prijzen") in linkkleur, net als het origineel */
.wp-block-list.list-check li:has(> a)::before {
  background-color: #ff5d48;
}
@media (max-width: 991px) {
  .wp-block-list.list-check li::before {
    margin-top: 5px;
  }
}

/* Oranje vinkjeslijst (geldverstrekkers); geneste lijst (list-check3) onder de tekst */
.wp-block-list.list-check2 > li {
  display: block;
  position: relative;
  padding-left: calc(1em + 10px);
}
.wp-block-list.list-check2 > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 1em;
  height: 1em;
  background-color: #ff5d48;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29.63 29.63'><path d='M14.815,0a14.815,14.815,0,1,0,14.815,14.815A14.815,14.815,0,0,0,14.815,0Zm-2.358,23.566-6.744-8.6,2.413-1.893,4.459,5.663,8.822-11.56,2.413,1.894Z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29.63 29.63'><path d='M14.815,0a14.815,14.815,0,1,0,14.815,14.815A14.815,14.815,0,0,0,14.815,0Zm-2.358,23.566-6.744-8.6,2.413-1.893,4.459,5.663,8.822-11.56,2.413,1.894Z'/></svg>") center / contain no-repeat;
}
.wp-block-list.list-check2 .list-check3 {
  margin-top: 5px;
}

/* Logo's in het geldverstrekker-blok: width/height-attributen van WordPress negeren,
   zodat max-width/max-height uit theme.css de verhouding behouden */
.geldverstrekkers-accordion .accordion-item img {
  width: auto;
  height: auto;
}

/* Knop als tekstlink (button-link), bijv. "Venster sluiten".
   Zelfde ondermarge als button-bright, zodat beide in een rij verticaal gecentreerd staan */
.wp-block-buttons > .wp-block-button.button-link {
  margin: 0 0 27px; /* iets meer dan 19px: grote tekst + onderstreping oogt anders te laag */
}
.wp-block-button.button-link .wp-block-button__link {
  background: none !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #ff5d48;
  font: inherit;
  text-decoration: underline;
}

/* Logo-raster (row-cols-md-5 logo-grid) met Afbeelding-blokken */
.logo-grid > .wp-block-group__inner-container > * {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 0;
}
@media (min-width: 768px) {
  .row-cols-md-5 > .wp-block-group__inner-container > * {
    flex: 0 0 auto;
    width: 20%;
  }
  .logo-grid > .wp-block-group__inner-container > .x2 {
    width: 40%;
  }
}
@media (max-width: 767px) {
  .logo-grid > .wp-block-group__inner-container > *,
  .logo-grid > .wp-block-group__inner-container > .x2 {
    flex: 0 0 50%;
    width: 50%;
  }
}

/* Tekstkleur uit de editor (<mark class="has-inline-color">): geen Bootstrap-padding */
mark.has-inline-color {
  padding: 0;
}

/* Afbeeldingen in de oude div.pic-constructies */
.wp-block-image.pic img {
  max-width: 100%;
  height: auto;
}
