/*
 * `overflow-x: hidden` also computes an automatic vertical overflow value.
 * On html/body this creates a non-scrolling sticky ancestor. `clip` keeps the
 * horizontal clipping without creating that ancestor, so sticky follows the
 * viewport scroll as expected.
 */
html.pixel-has-sticky-container,
body.pixel-has-sticky-container {
	overflow-x: clip;
	overflow-y: visible;
}

/* Modern header attributes must use the same viewport positioning as legacy ones.
 * Keep Elementor's justify-content and editable padding variables intact. */
:is([data-pixel-sticky-header], [data-sticky-header]) .pixel-stickybar-wrap {
 --position: fixed !important;
 position: fixed;
 top: var(--pixel-vertical-bar-top, 0px) !important;
 bottom: 0;
 height: calc(100vh - var(--pixel-vertical-bar-top, 0px));
 min-height: 0;
}
body.admin-bar { --pixel-vertical-bar-top: 32px; }
@media (max-width: 782px) { body.admin-bar { --pixel-vertical-bar-top: 46px; } }
/* Boxed containers must not apply the same vertical padding twice. */
:is([data-pixel-sticky-header], [data-sticky-header]) .pixel-stickybar-wrap.e-con > .e-con-inner {
 padding-block: 0;
}
