/**
 * Theme Builder header: CSS sticky, hide-on-scroll, and anchor offset.
 *
 * Stick the location wrapper (a direct child of body). Do not also enable
 * Elementor Motion Effects → Sticky on an inner header container.
 *
 * Offset is only applied when the header stays visible (sticky on, hide off).
 */

html {
	--interfor-header-height: 0px;
	--interfor-header-scroll-offset: 0px;
	scroll-padding-top: calc(var(--interfor-header-scroll-offset, 0px) + var(--wp-admin--admin-bar--height, 0px));
}

body.interfor-has-sticky-header header.elementor-location-header {
	position: sticky;
	top: 0;
	z-index: 10000;
}

html.admin-bar body.interfor-has-sticky-header header.elementor-location-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (prefers-reduced-motion: no-preference) {
	.interfor-header-hide-ready {
		transition: transform 0.3s ease;
	}
}

.interfor-header-hide-ready.interfor-header-is-hidden {
	transform: translateY(calc(-100% - var(--wp-admin--admin-bar--height, 0px)));
	pointer-events: none;
}
