/* AAFE Horizontal Scroll — same CSS on the live site and in the Elementor editor. */

/* overflow-x: clip hides the items outside the screen without breaking position: sticky. */
.aafe-hs-on {
	overflow-x: clip !important;
	overflow-y: visible !important;
}

.aafe-hs-host {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	gap: var(--aafe-hs-gap, 0px) !important;
	padding-inline: var(--aafe-hs-pad, 0px) !important;
}

.aafe-hs-host > .elementor-element {
	position: sticky !important;
	top: var(--aafe-hs-top, 0px);
	flex: 0 0 var(--aafe-hs-item, 100vw) !important;
	width: var(--aafe-hs-item, 100vw) !important;
	max-width: none !important;
	margin-block: 0 !important;
	translate: var(--aafe-hs-x, 0px) 0;
	will-change: translate;
}

.aafe-hs-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	height: 4px;
	background: color-mix(in srgb, var(--aafe-hs-progress-color, #8b5cf6) 20%, transparent);
	pointer-events: none;
	opacity: 0;
	transition: opacity .25s ease;
}

.aafe-hs-bar.is-active {
	opacity: 1;
}

.aafe-hs-bar > span {
	display: block;
	height: 100%;
	background: var(--aafe-hs-progress-color, #8b5cf6);
	transform: scaleX(0);
	transform-origin: 0 50%;
}
