/**
 * Ticker Component
 *
 * @package FashionXpart
 */

/* Ticker Container */
.fxp-ticker {
	overflow: hidden;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	border: 1px solid #e8e8e8;
	max-width: var(--wp--style--global--content-size, 1200px);
	margin-left: auto;
	margin-right: auto;
}

/* Track */
.fxp-ticker-track {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	animation: fxp-ticker-scroll 30s linear infinite;
	width: max-content;
}

/* Hover stop */
.fxp-ticker:hover .fxp-ticker-track {
	animation-play-state: paused;
}

/* Items */
.fxp-ticker-item {
	white-space: nowrap;
	padding: 0 24px;
	color: #333;
	font-weight: 500;
	line-height: 1.8;
}

/* Separator */
.fxp-ticker-sep {
	color: #999;
	padding: 0 6px;
	white-space: nowrap;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.8;
}

/* Animation */
@keyframes fxp-ticker-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* Pause state for accessibility */
@media (prefers-reduced-motion: reduce) {
	.fxp-ticker-track {
		animation: none;
	}
}

/* Mobile */
@media (max-width: 600px) {
	.fxp-ticker-item {
		font-size: 13px;
		padding: 0 16px;
	}
	.fxp-ticker-sep {
		padding: 0 2px;
	}
}
