/* Colorful Marquee for Elementor */

.cm-marquee {
	position: relative;
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
	direction: ltr; /* keeps animation correct even on RTL sites */
}

.cm-marquee__track {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	will-change: transform;
	animation: cm-marquee-scroll var(--cm-duration, 30s) linear infinite;
}

.cm-marquee__group {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	white-space: nowrap;
}

.cm-marquee__item,
.cm-marquee__sep {
	display: inline-block;
	flex: 0 0 auto;
	white-space: nowrap;
}

.cm-marquee__item a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.cm-marquee__item a:hover {
	opacity: 0.8;
}

/* Direction: default animation moves content to the LEFT. */
.cm-marquee.cm-dir-right .cm-marquee__track {
	animation-direction: reverse;
}

/* Pause on hover */
.cm-marquee.cm-pause-hover:hover .cm-marquee__track {
	animation-play-state: paused;
}

@keyframes cm-marquee-scroll {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
	.cm-marquee__track {
		animation-duration: 120s;
	}
}
