/**
 * Road to 200K storefront promo.
 *
 * This loads on ordinary shop pages, so it stays deliberately small and does
 * not touch anything outside its own block. Brand teal card, campaign red
 * counter, the same relationship as the campaign page itself.
 */

.vmr200k-promo {
	position: fixed;
	z-index: 9998;
	left: 1rem;
	bottom: 1rem;
	width: min(320px, calc(100vw - 2rem));
	padding: 0;
	border-radius: 14px;
	background: #00827a;
	color: #fff;
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.26);
	font-family: "VmarkInter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	line-height: 1.45;
	overflow: hidden;

	/* Rendered hidden and revealed by script once the delay has passed. The
	   markup ships with the page so the count is right before first paint. */
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.vmr200k-promo[hidden] {
	display: none;
}

.vmr200k-promo.is-visible {
	opacity: 1;
	transform: none;
}

.vmr200k-promo *,
.vmr200k-promo *::before,
.vmr200k-promo *::after {
	box-sizing: border-box;
}

.vmr200k-promo__close {
	position: absolute;
	top: 4px;
	right: 4px;
	z-index: 2;
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: rgba(255, 255, 255, 0.75);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.vmr200k-promo__close:hover {
	background: rgba(0, 0, 0, 0.18);
	color: #fff;
}

.vmr200k-promo__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 1px;
}

.vmr200k-promo__link {
	display: block;
	padding: 1rem 1.1rem 1.1rem;
	color: #fff;
	text-decoration: none;
}

.vmr200k-promo__link:hover,
.vmr200k-promo__link:focus {
	color: #fff;
	text-decoration: none;
}

.vmr200k-promo__link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.vmr200k-promo__head {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding-right: 1.5rem;
}

.vmr200k-promo__mark {
	flex: 0 0 auto;
	display: block;
	width: 58px;
}

.vmr200k-promo__mark img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

.vmr200k-promo__headText {
	flex: 1 1 auto;
	min-width: 0;
}

.vmr200k-promo__eyebrow {
	display: block;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 0.1rem;
}

.vmr200k-promo__count {
	display: block;
	font-size: 1.95rem;
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.035em;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.vmr200k-promo__unit {
	display: block;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
}

.vmr200k-promo__track {
	display: block;
	height: 5px;
	margin: 0.55rem 0 0.55rem;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.22);
	overflow: hidden;
}

.vmr200k-promo__fill {
	display: block;
	height: 100%;
	border-radius: 3px;
	background: #f53d46;
	transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.vmr200k-promo__line {
	display: block;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.9);
}

.vmr200k-promo__line strong {
	font-weight: 800;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.vmr200k-promo__cta {
	display: inline-block;
	margin-top: 0.75rem;
	padding: 0.5rem 0.95rem;
	border-radius: 6px;
	background: #f53d46;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 800;
	transition: background-color 0.2s;
}

.vmr200k-promo__link:hover .vmr200k-promo__cta {
	background: #cf2932;
}

.vmr200k-promo .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Clear of the mobile sticky add-to-cart bar the theme puts at the bottom. */
@media (max-width: 768px) {
	.vmr200k-promo {
		left: 0.75rem;
		right: 0.75rem;
		bottom: 0.75rem;
		width: auto;
	}

	body.ckit_stickyatc_active .vmr200k-promo {
		bottom: 4.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vmr200k-promo,
	.vmr200k-promo__fill {
		transition-duration: 0.001ms !important;
	}
}
