/* ==========================================================================
   Horizontal Scrolling Text — Frontend Styles
   .hset-wrapper          → outer bar (background, border, padding)
   .hset-track            → the element that actually translates/animates
   .hset-item             → one full copy of the item list (duplicated x2
                            for a seamless, edge-to-edge infinite loop)
   .hset-item-inner       → a single text item (or link)
   .hset-separator        → divider rendered between items
   ========================================================================== */

.hset-wrapper {
	position: relative;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
	white-space: nowrap;
}

/* The moving track holds two back-to-back copies of the item list.
   Animating from translateX(0) to translateX(-50%) moves exactly one
   full copy's width, so set B lands precisely where set A started —
   giving a perfectly seamless, gap-free infinite loop. */
.hset-track {
	display: inline-flex;
	align-items: center;
	width: max-content;
	animation-name: hset-scroll;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	will-change: transform;
}

@keyframes hset-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.hset-item {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.hset-item-inner {
	display: inline-block;
	white-space: nowrap;
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

a.hset-item-inner {
	cursor: pointer;
}

.hset-separator {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	margin: 0 1em;
	user-select: none;
}

.hset-separator--line {
	width: 1px;
	height: 0.9em;
	background-color: currentColor;
	border-color: currentColor;
	opacity: 0.6;
}

.hset-separator--dot,
.hset-separator--custom {
	font-size: 0.75em;
	line-height: 1;
	opacity: 0.85;
}

/* ---- Pause on hover ---- */
.hset-wrapper--hover-pause:hover .hset-track,
.hset-wrapper--hover-pause:focus-within .hset-track {
	animation-play-state: paused;
}

/* ---- Edge fade option ---- */
.hset-wrapper--edge-fade {
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0%,
		black 5%,
		black 95%,
		transparent 100%
	);
	mask-image: linear-gradient(
		to right,
		transparent 0%,
		black 5%,
		black 95%,
		transparent 100%
	);
}

/* ---- Respect "reduce motion" OS-level accessibility setting ---- */
@media (prefers-reduced-motion: reduce) {
	.hset-wrapper--respect-motion .hset-track {
		animation-play-state: paused;
	}
}

/* ---- Editor-only affordance: always show a paused preview so editing
   text in the Elementor panel isn't fighting a moving target. The JS
   file re-enables real animation/hover-pause behavior on the live
   front end; this CSS rule is intentionally scoped to the Elementor
   editor iframe context only. ---- */
.elementor-editor-active .hset-track {
	animation-play-state: paused;
}

.elementor-editor-active .hset-wrapper:hover .hset-track {
	animation-play-state: running;
}
