/* ============================================================
   nxt_scrolling_announcement — Scrolling Announcement Bar
   Nexxis / Enfold child theme

   Seamless marquee technique:
   - The track contains TWO identical copies of the content.
   - The animation shifts the track by exactly -50% (= one copy).
   - At the end the track snaps back to 0 — visually seamless.
   ============================================================ */

/* ---- Keyframes -------------------------------------------- */

/* Right to Left (default — same direction as reading in Arabic/Hebrew) */
@keyframes nxt-ticker-rtl {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}

/* Left to Right */
@keyframes nxt-ticker-ltr {
	0% {
		transform: translateX(-50%);
	}

	100% {
		transform: translateX(0);
	}
}

/* ---- Wrapper --------------------------------------------- */
.nxt-scrolling-announcement {
	position: relative;
	width: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	/*
	 * background-color, height, border and --ticker-duration
	 * are all injected as inline CSS custom properties by PHP.
	 */
}

/* ---- Scrolling track ------------------------------------- */
.nxt-scrolling-announcement__track {
	display: flex;
	flex-shrink: 0;
	white-space: nowrap;
	will-change: transform;

	animation-name: var(--ticker-anim, nxt-ticker-rtl);
	animation-duration: var(--ticker-duration, 40s);
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

/* Pause on hover (class added when pause_on_hover === 'yes') */
.nxt-scrolling-announcement__track--pauseable:hover {
	animation-play-state: paused;
}

/* ---- Single copy ----------------------------------------- */
.nxt-scrolling-announcement__copy {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

/* ---- Text element ---------------------------------------- */
.nxt-scrolling-announcement__text {
	display: inline-block;
	margin: 0;
	padding: 0;
	font-weight: 300;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
	/* color and text-align set via inline style */
}

/* Fallback size when no feellike class is applied */
.nxt-scrolling-announcement__text:not([class*="feellike"]) {
	font-size: 0.95rem;
}

/* ---- Reduced-motion preference --------------------------- */
/*
 * Users who prefer reduced motion will see the text
 * centered and static instead of scrolling.
 */
@media (prefers-reduced-motion: reduce) {
	.nxt-scrolling-announcement__track {
		animation: none;
		justify-content: center;
	}

	/* Hide the duplicate copy */
	.nxt-scrolling-announcement__copy+.nxt-scrolling-announcement__copy {
		display: none;
	}
}

.scrolling-with {
	width: 350% !important;
	margin-left: -125% !important;
}

.nxt-scrolling-announcement__text::after {
	font-family: 'sonia-modock';
	font-weight: 400;
	content: '\e974';
	line-height: 1;
	color: currentColor;
	padding-inline: 24px;
}