/* =============================================
   Elemance Widget — Marquee
   ============================================= */

.elemance-marquee {
	overflow: hidden;
	width: 100%;
	position: relative;
}

/* Fade edges — gradient overlay so the color can be matched to any
   section background, rather than relying on mask transparency (which
   only reveals what's directly behind, and can't be recolored). */
.elemance-marquee {
	--elmc-fade-color: #ffffff;
}

.elemance-marquee--fade::before,
.elemance-marquee--fade::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: var(--elmc-fade-width, 80px);
	z-index: 2;
	pointer-events: none;
}

.elemance-marquee--fade::before {
	left: 0;
	background: linear-gradient(to right, var(--elmc-fade-color), transparent);
}

.elemance-marquee--fade::after {
	right: 0;
	background: linear-gradient(to left, var(--elmc-fade-color), transparent);
}

/* Track */
.elemance-marquee__track {
	display: flex;
	align-items: center;
	width: max-content;
	animation: elemance-marquee-scroll linear infinite;
}

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

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

/* Items */
.elemance-marquee__item {
	display: inline-flex;
	align-items: center;
	gap: 0;
	flex-shrink: 0;
	white-space: nowrap;
}

.elemance-marquee__text {
	display: inline-block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
}

.elemance-marquee__img {
	display: block;
	width: auto;
	height: 40px; /* fallback; the Image Height control overrides it per item */
	object-fit: contain;
	opacity: 0.6;
	filter: grayscale(100%);
	transition: opacity 0.3s ease, filter 0.3s ease;
}

.elemance-marquee--pause-hover:hover .elemance-marquee__img {
	opacity: 1;
	filter: grayscale(0%);
}

.elemance-marquee__sep {
	display: inline-flex;
	align-items: center;
	margin-left: 16px;
	font-size: 10px;
	line-height: 1;
	opacity: 0.8;
}

/* ── Item Styles ──────────────────────────────── */
/* Note: padding here is the item's own internal style padding — separate
   from the "Gap Between Items" control, which uses margin instead so the
   two never conflict. */
.elemance-marquee--item-pill .elemance-marquee__item {
	background: rgba(108,99,255,0.1);
	border: 1px solid rgba(108,99,255,0.2);
	border-radius: 999px;
	padding: 8px 20px;
}

.elemance-marquee--item-card .elemance-marquee__item {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 12px 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
