/*
 * Welcome First Order Coupon v3
 * Header ticker only. No product badges and no product price styling.
 */

.wcspp-header-bar {
	position: sticky;
	top: 0;
	z-index: 99999;
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
	background: #ffffff;
	color: #102b3d;
	border-top: 0;
	border-right: 0;
	border-left: 0;
	border-bottom: 1px solid rgba(16, 43, 61, 0.14);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.admin-bar .wcspp-header-bar {
	top: 32px;
}

.wcspp-ticker-window {
	width: 100%;
	overflow: hidden;
	white-space: nowrap;
	min-height: 31px;
	display: flex;
	align-items: center;
}

.wcspp-ticker-track {
	display: flex;
	align-items: center;
	width: max-content;
	min-width: max-content;
	will-change: transform;
	animation: wcspp-ticker-left-to-right 20s linear infinite;
}

.wcspp-ticker-item {
	display: inline-block;
	flex: 0 0 auto;
	padding: 0 56px;
	white-space: nowrap;
}

/* Start with the second copy in view and move continuously LEFT -> RIGHT. */
@keyframes wcspp-ticker-left-to-right {
	from {
		transform: translate3d(-50%, 0, 0);
	}
	to {
		transform: translate3d(0, 0, 0);
	}
}

/* Safety cleanup for visual classes used by older releases of this plugin. */
.wcspp-badge,
.wcspp-discount-badge,
.wcspp-product-badge,
.wcspp-sale-badge,
.wcspp-product-offer,
.wcspp-offer-box {
	display: none !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar .wcspp-header-bar {
		top: 46px;
	}

	.wcspp-header-bar {
		font-size: 10.5px;
		letter-spacing: 0.055em;
	}

	.wcspp-ticker-window {
		min-height: 29px;
	}

	.wcspp-ticker-track {
		animation-duration: 15s;
	}

	.wcspp-ticker-item {
		padding: 0 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wcspp-ticker-window {
		justify-content: center;
	}

	.wcspp-ticker-track {
		animation: none;
		transform: none;
	}

	.wcspp-ticker-item[aria-hidden="true"] {
		display: none;
	}
}
