/* Scoped theme integration. No homepage/checkout content restyling. */
body.rv-navigation-active .rv-header{height:auto;min-height:0;width:100%;float:none;transform:none;z-index:1001}
/* Own spacer preserves flow; fixed escapes the theme's non-scrolling body ancestor.
   Above Qode wrapper (1000), below dialogs (10001) and the WordPress toolbar. */
body.rv-navigation-active .rv-header-spacer{display:block;flex:none;pointer-events:none;overflow-anchor:none}
/* The velocity controller owns interpolation: a CSS transition would lag behind it. */
body.rv-navigation-active .rv-header.rv-header--floating{position:fixed;top:var(--rv-header-offset,0px);left:0;right:0;transform:translateY(var(--rv-header-shift,0px));transition:none}
body.rv-navigation-active .rv-header.rv-header--scrolling{pointer-events:none}
/* Without enhancement, keep the header in flow below WordPress's HTML margin. */
body.rv-navigation-active.admin-bar .rv-header:not(.rv-header--floating){position:static}
body.rv-navigation-active .rv-header a,body.rv-navigation-active .rv-nav-panel a{font-family:var(--rv-font);text-transform:none}
body.rv-navigation-active .rv-header ul,body.rv-navigation-active .rv-nav-panel ul{list-style:none;margin:0;padding:0}
body.rv-navigation-active .rv-header li,body.rv-navigation-active .rv-nav-panel li{margin:0;padding:0}
body.rv-navigation-active .rv-header .rv-action,body.rv-navigation-active .rv-nav-panel .rv-action,body.rv-navigation-active .rv-search .rv-action{padding:0;line-height:1.5;letter-spacing:normal}
body.rv-navigation-active .rv-nav-panel,body.rv-navigation-active .rv-search{color:var(--rv-ink);z-index:10001}
body.rv-navigation-active .rv-nav-panel__head h2{text-transform:none}
body.rv-navigation-active .rv-nav-panel:not([open]),body.rv-navigation-active .rv-search:not([open]){display:none}
body.rv-navigation-active .rv-search .dgwt-wcas-search-wrapp{display:block!important;opacity:1!important;visibility:visible!important}
/* Legacy custom CSS moves every Fibo form (-85px/+30px) and submit (-110px).
   Reset only our modal, including Woo's generic submit-button styling. */
body.rv-navigation-active #rv-search .dgwt-wcas-search-wrapp{position:relative!important;inset:auto!important;transform:none!important;transition:none!important}
body.rv-navigation-active #rv-search .dgwt-wcas-search-form{margin:0;padding:0}
body.rv-navigation-active #rv-search .dgwt-wcas-search-submit{position:absolute!important;inset:5px 0 auto auto!important;display:flex;align-items:center;justify-content:center;width:44px!important;min-width:44px;min-height:44px;height:44px;margin:0!important;padding:0!important;line-height:1;background:#fff!important;box-shadow:none;text-shadow:none}
body.rv-navigation-active #rv-search .dgwt-wcas-search-submit svg{position:static!important;inset:auto!important;margin:0!important;padding:0;display:block!important;visibility:visible!important}
body.rv-navigation-active .qodef-page-header,body.rv-navigation-active .qodef-mobile-header{display:none!important}
#rv-main-content{scroll-margin-top:160px;outline:none}
/* Without JS the absolute mobile toolbar occupies the header's first 46px. */
@media(max-width:600px){body.rv-navigation-active.admin-bar .rv-header:not(.rv-header--floating){padding-top:46px}}

/* PROD p2: retire legacy header offsets only while our header is active.
   The native Woo notice is rendered inside .rv-header, so its real height is
   included by the existing spacer/ResizeObserver. No fixed-height estimate. */
/* WP Rocket's old used-CSS retains TapTap's html margin-top:59px even after
   its enqueue is removed. Keep WordPress's real 32/46px admin toolbar margin. */
html:has(> body.rv-navigation-active:not(.admin-bar)) {
  margin-top: 0 !important;
}
body.rv-navigation-active,
body.rv-navigation-active.woocommerce-demo-store:not(.highlight):not(.page-id-14) {
  padding-top: 0 !important;
}
body.rv-navigation-active > .qodef-wrapper > .qodef-wrapper-inner {
  margin-top: 0;
}
body.rv-navigation-active:not(.qodef-content-is-behind-header):not(.error404) > .qodef-wrapper > .qodef-wrapper-inner > .qodef-content {
  margin-top: 0 !important;
}
body.rv-navigation-active .rv-header > .woocommerce-store-notice.demo_store {
  position: static !important;
  top: auto !important;
  right: auto;
  left: auto;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 6px 12px !important;
  font-size: 12px;
  line-height: 1.4;
  background: #fff !important;
  color: #222;
  z-index: auto;
}
/* These two legacy spacers compensated for the former detached header.
   Scope to the first homepage hero; preserve all subsequent section spacing. */
body.rv-navigation-active.home .qodef-page-content-holder > .parallax-section-video:first-child {
  margin-top: 0;
}
body.rv-navigation-active.home .qodef-page-content-holder > .parallax-section-video:first-child > br:first-child {
  display: none;
}
