/**
 * PXS Scrolling Bar (Elementor)
 */

.pxs-sb {
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
}

.pxs-sb__viewport {
	overflow: hidden;
	width: 100%;
}

.pxs-sb__track {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	align-items: center;
	animation: pxs-sb-scroll var(--pxs-sb-duration, 45s) linear infinite;
	will-change: transform;
}

.pxs-sb--dir-right .pxs-sb__track {
	animation-direction: reverse;
}

.pxs-sb__group {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	white-space: nowrap;
	padding-right: 3rem;
}

.pxs-sb__item {
	display: inline;
	white-space: nowrap;
}

.pxs-sb__sep {
	display: inline;
	white-space: pre;
	padding: 0 0.15em;
}

.pxs-sb:hover .pxs-sb__track {
	animation-play-state: paused;
}

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

.pxs-sb--empty {
	justify-content: center;
}

.pxs-sb__empty {
	margin: 0;
	padding: 0.5em 1em;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.pxs-sb__track {
		animation: none;
		transform: none;
		flex-wrap: wrap;
		justify-content: center;
		white-space: normal;
	}

	.pxs-sb__group {
		white-space: normal;
		flex-wrap: wrap;
		justify-content: center;
		padding-right: 0;
	}

	.pxs-sb__group[aria-hidden="true"] {
		display: none;
	}
}
