/* Webler Thema — the theme's front-end rules (no Elementor Pro). */

/* Sticky header (Thema → Header & footer → Vastzetten): the header stays at the top while the page scrolls, as Pro's Sticky "top"
   did (offset 0, on computer, tablet and phone). Logged in: under WordPress's top bar. */
.wbt-sticky .elementor-location-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
@media (max-width: 600px) { .wbt-sticky .elementor-location-header { top: 0; } }

/* The Thema panels (the phone menu, the filter panel) — panel.php + thema.js. As the Pro popup on the base: a box fixed over the
   page, full screen by default, its background from Thema → Telefoonmenu, a fade of --wbt-dur in CSS "ease" (and the same fade
   reversed when it closes); "nothing behind" = the page stays visible around a smaller panel, "dark" = a dark layer that fades too. */
.wbt-panel { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-start; justify-content: flex-start; background: transparent; }
.wbt-panel[hidden] { display: none; }
.wbt-panel--right { justify-content: flex-end; }
.wbt-panel--overlay { background: rgba(17, 24, 39, .55); }
.wbt-panel-box { position: relative; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; background: var(--wbt-bg, #fff); -webkit-overflow-scrolling: touch; }
.wbt-panel--w380 .wbt-panel-box { width: min(380px, 100vw); }
.wbt-panel--w320 .wbt-panel-box { width: min(320px, 100vw); }
.wbt-panel.is-opening .wbt-panel-box, .wbt-panel.is-closing .wbt-panel-box,
.wbt-panel--overlay.is-opening, .wbt-panel--overlay.is-closing { animation-duration: var(--wbt-dur, 250ms); animation-timing-function: ease; animation-fill-mode: both; }
.wbt-panel.is-closing .wbt-panel-box, .wbt-panel--overlay.is-closing { animation-direction: reverse; }
.wbt-anim-fade.is-opening .wbt-panel-box, .wbt-anim-fade.is-closing .wbt-panel-box { animation-name: wbtFadeIn; }
.wbt-anim-slide-right.is-opening .wbt-panel-box, .wbt-anim-slide-right.is-closing .wbt-panel-box { animation-name: wbtFromRight; }
.wbt-anim-slide-left.is-opening .wbt-panel-box, .wbt-anim-slide-left.is-closing .wbt-panel-box { animation-name: wbtFromLeft; }
.wbt-panel--overlay.is-opening, .wbt-panel--overlay.is-closing { animation-name: wbtFadeIn; }
@keyframes wbtFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wbtFromRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes wbtFromLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .wbt-panel.is-opening .wbt-panel-box, .wbt-panel.is-closing .wbt-panel-box { animation-name: wbtFadeIn; } }
/* the page behind does not scroll while a panel is open (as the Pro popup's "prevent scroll") */
body.wbt-noscroll { max-height: 100vh; overflow: hidden; }
