/*
 * Sticky CTA-balk en scroll-to-top: op elke pagina nodig, ook waar de page builder niet laadt.
 * Losgemaakt uit frontend.css op 19-10-2026, Bas Martens.
 */
html {
  scroll-behavior: smooth;
}

#scroll-top { z-index: 10000 !important; }

#scroll-top {
  transition: opacity 0.25s, transform 0.25s, bottom 0.35s cubic-bezier(0.4,0,0.2,1) !important;
}
body:has(#wps-sticky-bar.is-visible) #scroll-top {
  bottom: 0.875rem !important;
}

/* --------------------------------------------------------------------------
   Sticky CTA balk
   -------------------------------------------------------------------------- */
#wps-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--mapb-bg-dark, #111827);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.875rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
#wps-sticky-bar.is-visible {
  transform: translateY(0);
}
.wps-sticky-bar__text {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  margin: 0;
}
.wps-sticky-bar__btn {
  display: inline-block;
  background: var(--mapb-btn-secondary-bg, #e8722a);
  color: #fff !important;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.625rem 1.75rem;
  border-radius: 0;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.wps-sticky-bar__btn:hover {
  background: var(--mapb-btn-secondary-hover-bg, #d4621e);
}
@media (max-width: 480px) {
  #wps-sticky-bar { gap: 0; padding: 0.75rem 1rem; }
  .wps-sticky-bar__text { display: none; }
  .wps-sticky-bar__btn { width: 100%; text-align: center; }
}
