.pixels-core-marquee {
	width: 100%;
	max-width: 100%;
}

.pixels-core-marquee__track {
	--pixels-marquee-gap: 32px;
	--pixels-marquee-height: 160px;
	--pixels-marquee-edge-size: 10%;
	--pixels-marquee-edge-color: transparent;
	--_gap: var(--pixels-marquee-gap);
	--_hGap: var(--pixels-marquee-gap);
	--_vGap: var(--pixels-marquee-gap);
	--_speed: 10000ms;
	--_direction: forwards;
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.pixels-core-marquee__track.smooth {
	-webkit-mask-image: linear-gradient(
		90deg,
		transparent,
		#000 var(--pixels-marquee-edge-size),
		#000 calc(100% - var(--pixels-marquee-edge-size)),
		transparent
	);
	mask-image: linear-gradient(
		90deg,
		transparent,
		#000 var(--pixels-marquee-edge-size),
		#000 calc(100% - var(--pixels-marquee-edge-size)),
		transparent
	);
}

.pixels-core-marquee__track.smooth::before {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	content: "";
	background: linear-gradient(
		90deg,
		var(--pixels-marquee-edge-color),
		transparent var(--pixels-marquee-edge-size),
		transparent calc(100% - var(--pixels-marquee-edge-size)),
		var(--pixels-marquee-edge-color)
	);
}

.pixels-core-marquee__track.vertical-marquee.smooth {
	-webkit-mask-image: linear-gradient(
		180deg,
		transparent,
		#000 var(--pixels-marquee-edge-size),
		#000 calc(100% - var(--pixels-marquee-edge-size)),
		transparent
	);
	mask-image: linear-gradient(
		180deg,
		transparent,
		#000 var(--pixels-marquee-edge-size),
		#000 calc(100% - var(--pixels-marquee-edge-size)),
		transparent
	);
}

.pixels-core-marquee__track.vertical-marquee.smooth::before {
	background: linear-gradient(
		180deg,
		var(--pixels-marquee-edge-color),
		transparent var(--pixels-marquee-edge-size),
		transparent calc(100% - var(--pixels-marquee-edge-size)),
		var(--pixels-marquee-edge-color)
	);
}

.horizontal-marquee {
	display: flex;
	flex-direction: row;
	gap: var(--_gap);
}

.horizontal-marquee.full .horizontal-marquee-inner {
	min-width: var(--_containerWidth, 100%);
}

.horizontal-marquee-inner {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: var(--_gap);
	animation: pixels-marquee-horizontal var(--_speed) linear infinite;
	animation-direction: var(--_direction);
}

.vertical-marquee {
	display: flex;
	flex-direction: column;
	height: var(--pixels-marquee-height);
	gap: var(--_vGap);
}

.vertical-marquee-inner {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--_vGap);
	animation: pixels-marquee-vertical var(--_speed) linear infinite;
	animation-direction: var(--_direction);
}

.horizontal-marquee[data-animate="false"] .horizontal-marquee-inner,
.vertical-marquee[data-animate="false"] .vertical-marquee-inner {
	animation: none;
}

.horizontal-marquee.paused .horizontal-marquee-inner,
.vertical-marquee.paused .vertical-marquee-inner {
	animation-play-state: paused;
}

.pixels-core-marquee__item {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: #111;
	line-height: 1;
	text-decoration: none;
	white-space: normal;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/*
 * Item containers use the widget's Item Width, or their content width, by
 * default; the container's own Width (--width) and flex grow/basis settings
 * still apply. The type selector lifts this above Elementor's `.e-con`
 * defaults (including the mobile `--width: 100%`) while staying below its
 * per-element rules. Elementor scopes a container's desktop Width to
 * min-width 768px, so set its mobile Width (or Item Width) for phones.
 */
.pixels-core-marquee__item.e-con:is(div, a, section, article, aside, header, footer, main, nav) {
	--min-height: 0;
	--width: var(--pixels-marquee-item-width, auto);
	flex: var(--flex-grow, 0) 0 var(--flex-basis, auto);
	max-width: none;
	width: var(--width);
}

.pixels-core-marquee__item .elementor-heading-title,
.pixels-core-marquee__item .elementor-widget-text-editor,
.pixels-core-marquee__item .elementor-widget-text-editor * {
	white-space: normal;
	overflow-wrap: anywhere;
}

.pixels-core-marquee__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.pixels-core-marquee__icon svg {
	display: block;
	width: 1em;
	height: 1em;
}

@keyframes pixels-marquee-horizontal {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(calc(-100% - var(--_gap)), 0, 0);
	}
}

@keyframes pixels-marquee-vertical {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(0, calc(-100% - var(--_vGap)), 0);
	}
}
