/* VOLO Sale Campaign bar – every selector is scoped to .volo-camp. */

.volo-camp {
	--volo-camp-h: var(--volo-camp-height, 48px);
	container-type: inline-size;
	container-name: volo-camp;
	position: relative;
	z-index: 9990;
	width: 100%;
	min-height: var(--volo-camp-h);
	background-color: var(--volo-camp-bg, #0f1f3d);
	background-image: var(--volo-camp-img, none);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	color: var(--volo-camp-fg, #fff);
	font-size: var(--volo-camp-fs, 14px);
	line-height: 1.3;
	text-align: left;
}

.volo-camp,
.volo-camp *,
.volo-camp *::before,
.volo-camp *::after {
	box-sizing: border-box;
	margin: 0;
	letter-spacing: normal;
	text-transform: none;
}

.volo-camp[hidden],
.volo-camp [hidden] {
	display: none !important;
}

.volo-camp--has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--volo-camp-bg, #0f1f3d);
	opacity: 0.55;
	pointer-events: none;
}

.volo-camp--sticky {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--volo-camp-offset, 0px));
}

.volo-camp--fixed {
	position: fixed;
	left: 0;
	right: 0;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--volo-camp-offset, 0px));
}

.volo-camp--admin,
.volo-camp[data-preview].volo-camp--admin {
	position: relative;
	top: auto;
}

.volo-camp__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: var(--volo-camp-h);
	max-width: 1320px;
	margin: 0 auto;
	padding: 6px 52px 6px 16px;
}

.volo-camp__badge {
	flex: 0 0 auto;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--volo-camp-fg, #fff);
	color: var(--volo-camp-bg, #0f1f3d);
	font-weight: 800;
	font-size: 0.86em;
	white-space: nowrap;
}

.volo-camp__title {
	flex: 0 0 auto;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	color: inherit;
}

.volo-camp__text {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	color: inherit;
}

.volo-camp__track {
	display: inline-block;
}

.volo-camp.is-scrolling .volo-camp__text {
	flex: 1 1 auto;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.volo-camp.is-scrolling .volo-camp__track {
	padding-left: 100%;
	animation: volo-camp-marquee var(--volo-camp-speed, 18s) linear infinite;
}

.volo-camp.is-scrolling:hover .volo-camp__track,
.volo-camp.is-scrolling:focus-within .volo-camp__track {
	animation-play-state: paused;
}

.volo-camp__timer {
	flex: 0 0 auto;
	display: inline-flex;
	gap: 4px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.volo-camp__unit {
	display: inline-flex;
	align-items: baseline;
	gap: 1px;
	padding: 2px 6px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.14);
	font-size: 0.9em;
}

.volo-camp__unit b {
	font-weight: 800;
	font-size: 1.05em;
}

.volo-camp a.volo-camp__cta,
.volo-camp__cta {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 4px 16px;
	border-radius: 999px;
	background: var(--volo-camp-fg, #fff);
	color: var(--volo-camp-bg, #0f1f3d) !important;
	font-weight: 700;
	font-size: 0.92em;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	border: 0;
	box-shadow: none;
	transition: transform 0.15s;
}

.volo-camp__cta:hover {
	transform: translateY(-1px);
}

.volo-camp button.volo-camp__close,
.volo-camp__close {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font: 400 24px/1 Arial, sans-serif;
	cursor: pointer;
	box-shadow: none;
	z-index: 1;
}

.volo-camp__close:hover {
	background: rgba(255, 255, 255, 0.15);
}

.volo-camp__close:focus-visible,
.volo-camp__cta:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Animations */
.volo-camp--anim-slide.is-in {
	animation: volo-camp-slide 0.35s ease-out;
}

.volo-camp--anim-fade.is-in {
	animation: volo-camp-fade 0.35s ease-out;
}

.volo-camp.is-out {
	animation: volo-camp-out 0.25s ease-in forwards;
}

@keyframes volo-camp-marquee {
	to { transform: translateX(-100%); }
}

@keyframes volo-camp-slide {
	from { transform: translateY(-100%); opacity: 0; }
	to { transform: none; opacity: 1; }
}

@keyframes volo-camp-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes volo-camp-out {
	to { opacity: 0; transform: translateY(-30%); }
}

/* Narrow bars (phones, or the mobile preview in admin) */
@container volo-camp (max-width: 640px) {
	.volo-camp__inner {
		flex-wrap: wrap;
		gap: 4px 8px;
		padding: 6px 40px 6px 12px;
		min-height: max(36px, calc(var(--volo-camp-height, 48px) * 0.85));
	}

	.volo-camp__badge {
		padding: 2px 8px;
		font-size: 0.78em;
	}

	.volo-camp__text {
		order: 3;
		flex: 1 1 100%;
		text-align: center;
		font-size: 0.92em;
	}

	.volo-camp__timer {
		gap: 2px;
	}

	.volo-camp__unit {
		padding: 1px 4px;
		font-size: 0.82em;
	}

	.volo-camp a.volo-camp__cta,
	.volo-camp__cta {
		order: 4;
		min-height: 32px;
		padding: 4px 14px;
		font-size: 0.85em;
	}
}

@media (max-width: 767px) {
	.volo-camp--desktop-only {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.volo-camp--mobile-only {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.volo-camp,
	.volo-camp * {
		animation: none !important;
		transition: none !important;
	}

	.volo-camp.is-scrolling .volo-camp__text {
		white-space: normal;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.volo-camp.is-scrolling .volo-camp__track {
		padding-left: 0;
	}
}
