/* Custom slot headers render through wp_body_open; suppress only an old
   Flatsome header directly inside the native page wrapper if one is injected. */
body.htw-header-slot-active #wrapper > #header { display:none!important; }

/* A slot provider controls its own design. Neutralize only theme-wide button
   margins; selectors defined by a provider can still set intentional spacing. */
[data-htw-header-slot-root] { display: contents; }
[data-htw-header-slot-root] :where(button, input[type="button"], input[type="submit"]) { margin: 0; }

/* Keep provider menus within the header; scroll only when items overflow. */
[data-htw-header-slot-root] header nav { min-width:0; max-width:100%; }
@media (min-width: 850px) {
 [data-htw-header-slot-root] header nav.htw-nav-scrollable { overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain; scrollbar-width:thin; scrollbar-color:currentColor transparent; -webkit-overflow-scrolling:touch; }
 [data-htw-header-slot-root] header nav.htw-nav-scrollable > ul,
 [data-htw-header-slot-root] header nav.htw-nav-scrollable > div > ul { width:max-content; min-width:100%; max-width:none; flex-wrap:nowrap!important; justify-content:flex-start!important; }
 [data-htw-header-slot-root] header nav.htw-nav-scrollable > ul > li,
 [data-htw-header-slot-root] header nav.htw-nav-scrollable > div > ul > li { flex-shrink:0; }
 [data-htw-header-slot-root] header nav.htw-nav-scrollable::-webkit-scrollbar { height:4px; }
 [data-htw-header-slot-root] header nav.htw-nav-scrollable::-webkit-scrollbar-thumb { background:currentColor; border-radius:4px; }
 [data-htw-header-slot-root] header nav.htw-nav-scrollable [data-htw-scroll-flyout] { position:fixed!important; top:var(--htw-menu-top)!important; left:var(--htw-menu-left)!important; right:auto!important; max-width:calc(100vw - 16px); }
 [data-htw-header-slot-root] header nav.htw-nav-scrollable:focus-visible { outline:2px solid currentColor; outline-offset:-2px; }
}
