/* Actiebanner [fb_actiebanner], zie inc/actiebanner.php.
   Verhouding 970 x 250 zoals de oude afbeeldingsbanners; tekst schaalt mee via cqw.
   Op de homepage is de banner maar 250 tot 450 pixel breed, dus de knop staat onder
   de tekst: zo past de kop op één regel. */

.fb-actiebanner {
  container-type: inline-size;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3.4cqw;
  aspect-ratio: 970 / 250;
  width: 100%;
  box-sizing: border-box;
  padding: 0 4.5cqw;
  border-radius: 1.6cqw;
  background: #fff6dc;
  color: #1f2a1c;
  text-decoration: none !important;
  overflow: hidden;
  font-family: inherit;
}

.fb-actiebanner__logo {
  display: grid;
  place-items: center;
  width: 16cqw;
  aspect-ratio: 1;
  border-radius: 1.4cqw;
  background: #fff;  /* logokleur per merk via logo_bg in de dataset */
  overflow: hidden;
  font-weight: 700;
  font-size: 2.6cqw;
}
.fb-actiebanner__logo img {
  width: 90%;
  max-height: 82%;   /* vierkante logo's blijven 82%, liggende (HelloFresh) krijgen de breedte */
  height: auto;
  object-fit: contain;
  display: block;
}
.fb-actiebanner__logo--vullend img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.fb-actiebanner__tekst {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.12;
}
.fb-actiebanner__label {
  font-size: 2.9cqw;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #5b6652;
}
.fb-actiebanner__kop {
  font-size: 6.6cqw;
  font-weight: 800;
  white-space: nowrap;
  color: #1f2a1c;
  margin-top: .4cqw;
}
.fb-actiebanner__sub {
  font-size: 3.7cqw;
  white-space: nowrap;
  color: #33402e;
  margin-top: .3cqw;
}

.fb-actiebanner__knop {
  margin-top: 1.6cqw;
  white-space: nowrap;
  font-size: 3cqw;
  font-weight: 700;
  padding: 1.2cqw 2.6cqw;
  border-radius: 99px;
  background: #1f2a1c;
  color: #fff;
}
.fb-actiebanner:hover .fb-actiebanner__knop,
.fb-actiebanner:focus-visible .fb-actiebanner__knop {
  background: #3f6d17;
}
.fb-actiebanner:focus-visible {
  outline: 3px solid #3f6d17;
  outline-offset: 3px;
}

/* De homepage-container rond het bannersjabloon centreert zijn inhoud. Op mobiel
   krimpt het sjabloon daardoor tot de minimale breedte van de inhoud, en banners
   zonder eigen breedte (deze, en de HelloFresh-afbeelding ernaast) worden dan
   ongeveer 87 pixel breed. Gemeten op 375px, 16 oktober 2026. */
.elementor-widget-shortcode:has(.fb-actiebanner) {
  align-self: stretch;
  width: 100%;
}

/* Op mobiel staan de banners onder elkaar zonder tussenruimte in het sjabloon */
@media (max-width: 767px) {
  .fb-actiebanner { margin-bottom: 10px; }
}
