/* Native YCW design variation: enable sticky only when allowed by the site-wide YCW setting. */
body:not(.ycw-header-static) .ycw-site-header {position:sticky;top:0;z-index:300}
/* YCW v1.4: additive UI enhancements; existing reference styles remain intact. */
body.ycw-header-static .site-header,
body.ycw-header-static .ycw-site-header,
body.ycw-header-static .wp-block-template-part .site-header {
  position: relative !important;
  top: auto !important;
}
/* Merken: originele, continue logo-loop. Geen knoppen of navigatiepunten. */
.merken__slider.ycw-brands-marquee {overflow:hidden;scroll-behavior:auto;}
.merken__slider.ycw-brands-marquee .merken__track {
  animation: merken-scroll var(--ycw-brands-speed,32s) linear infinite;
  transform:translateX(0);
  width:max-content;
}
.merken__slider.ycw-brands-marquee .merken__set[aria-hidden="true"] {display:flex!important;}
.merken__slider.ycw-brands-marquee .merken__set {flex-shrink:0;}
.ycw-brand-controls,.ycw-brand-arrow,.ycw-brand-dots {display:none!important;}
body.ycw-brands-static .merken__slider .merken__track,
body.ycw-brands-static .merken__slider.ycw-brands-marquee .merken__track {animation:none!important;transform:none!important;}
body.ycw-brands-static .merken__slider {overflow-x:auto;scrollbar-width:thin;-webkit-mask-image:none;mask-image:none;}
@media(prefers-reduced-motion:reduce){
  .merken__slider.ycw-brands-marquee .merken__track{animation:none!important;transform:none!important;}
  .merken__slider.ycw-brands-marquee{overflow-x:auto;-webkit-mask-image:none;mask-image:none;}
}
/* Contact form, inherited color and type tokens from YCW reference theme. */
.ycw-contact-form-section {padding:clamp(3rem,5vw,5rem) 1.5rem;background:var(--color-bg,#f9f9f5);}
.ycw-contact-form-inner {max-width:760px;margin:0 auto;}
.ycw-contact-form-section .section-header {margin-bottom:2rem;}
.ycw-contact-form {display:grid;gap:1.25rem;}
.ycw-contact-form-row {display:flex;flex-direction:column;gap:.45rem;}
.ycw-contact-form-row label {font-weight:600;color:var(--color-primary-dark,#163d2c)}
.ycw-contact-form-row input,.ycw-contact-form-row textarea {
  width:100%;box-sizing:border-box;padding:.85rem 1rem;background:#fff;
  border:1px solid #ccd5cb;border-radius:9px;font:inherit;color:var(--color-text,#222);min-height:48px;
}
.ycw-contact-form-row textarea {resize:vertical;min-height:145px}
.ycw-contact-form-row :is(input,textarea):focus-visible {outline:2px solid var(--color-primary,#284b34);outline-offset:2px;}
.ycw-contact-trap {position:absolute!important;left:-99999px;width:1px;height:1px;overflow:hidden}
.ycw-contact-consent {display:flex;align-items:flex-start;gap:.65rem;font-size:.88rem;line-height:1.65}
.ycw-contact-consent input {margin-top:.35rem;flex:0 0 auto}
.ycw-contact-submit {justify-self:start;cursor:pointer}
.ycw-contact-feedback {padding:1rem 1.25rem;border-radius:8px;background:#f0f4ec;color:#234a34;margin:0 0 1.25rem}
.ycw-contact-feedback.is-error {background:#fff0ee;color:#9c271e}
.ycw-brand-arrow,.ycw-brand-dot {transition:none}
}

/* v1.4.4: real sticky navigation for both the imported reference header
   and the native YCW header. The reference header is nested inside a short
   Gutenberg template part, where native sticky cannot remain on screen. */
.ycw-sticky-placeholder {
  display: block;
  height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  pointer-events: none;
  visibility: hidden;
}
body.ycw-sticky-ready:not(.ycw-header-static) .site-header:not(.ycw-sticky-active),
body.ycw-sticky-ready:not(.ycw-header-static) .ycw-site-header:not(.ycw-sticky-active) {
  position: relative !important;
  top: auto !important;
}
body:not(.ycw-header-static) .site-header.ycw-sticky-active,
body:not(.ycw-header-static) .ycw-site-header.ycw-sticky-active {
  position: fixed !important;
  top: var(--ycw-sticky-top, 0px) !important;
  left: var(--ycw-sticky-left, 0px) !important;
  width: var(--ycw-sticky-width, 100%) !important;
  z-index: 1000 !important;
}
body.ycw-header-static .site-header,
body.ycw-header-static .ycw-site-header {
  position: relative !important;
  top: auto !important;
}
