/*
 * Sale campaign banner + sitewide skin. One stylesheet, every campaign.
 * Colours come from CSS custom properties (--lzc-*) that inc/campaigns.php
 * injects inline for the ACTIVE campaign only — so this file is skin-agnostic.
 * Loads only while a campaign is live.
 *
 * Token contract (all set inline by the engine):
 *   --lzc-grad-a / --lzc-grad-b   banner gradient
 *   --lzc-accent                  offer highlight colour
 *   --lzc-cta-bg / --lzc-cta-ink  CTA pill
 *   --lzc-topbar-a / --lzc-topbar-b  announcement topbar gradient
 *   --lzc-badge-a / --lzc-badge-b / --lzc-badge-shadow  product badge + sale flash
 */

.lenzz-camp {
	position: relative;
	margin: 0 0 clamp(16px, 3vw, 28px);
	border-radius: 20px;
	overflow: hidden;
	background: linear-gradient(120deg, var(--lzc-grad-a, #01411C) 0%, var(--lzc-grad-b, #018A46) 100%);
	color: #fff;
	box-shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.5);
}
/* Faint watermark glyph (crescent, star, 11, …) set via data-mark. */
.lenzz-camp[data-mark]::after {
	content: attr(data-mark);
	position: absolute;
	right: -8px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 190px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.07);
	pointer-events: none;
}

.lenzz-camp-section { margin: clamp(12px, 2vw, 20px) 0 0; }

.lenzz-camp-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: clamp(14px, 3vw, 30px);
	padding: clamp(18px, 3vw, 24px) clamp(20px, 4vw, 38px);
}

.lenzz-camp-flag {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	display: grid;
	place-items: center;
	font-size: 30px;
	color: #fff;
}

.lenzz-camp-text { flex: 1 1 300px; min-width: 0; }
.lenzz-camp-eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.9;
	margin-bottom: 4px;
}
.lenzz-camp-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.12;
	color: #fff;
}
.lenzz-camp-offer { color: var(--lzc-accent, #FFB23E); white-space: nowrap; }
.lenzz-camp-sub { margin: 9px 0 0; font-size: 0.9rem; opacity: 0.95; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.lenzz-camp-trust { opacity: 0.9; }

.lenzz-camp-code {
	display: inline-block;
	margin: 0 4px;
	padding: 2px 10px;
	border-radius: 8px;
	border: 1.5px dashed rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-weight: 800;
	letter-spacing: 0.06em;
	cursor: pointer;
	font-size: 0.95em;
	transition: background 0.15s ease;
}
.lenzz-camp-code:hover { background: rgba(255, 255, 255, 0.22); }
.lenzz-camp-code.is-copied { background: #fff; color: var(--lzc-cta-ink, #046A38); border-style: solid; }

.lenzz-camp-right {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.lenzz-camp-countdown { display: flex; gap: 8px; }
.lenzz-camp-cd-box {
	min-width: 48px;
	padding: 6px 8px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.14);
	text-align: center;
}
.lenzz-camp-cd-num { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.lenzz-camp-cd-lbl { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; margin-top: 3px; }
.lenzz-camp-ended { font-weight: 800; font-size: 1.05rem; }

.lenzz-camp-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 11px 22px;
	border-radius: 999px;
	background: var(--lzc-cta-bg, #fff);
	color: var(--lzc-cta-ink, #046A38);
	font-weight: 800;
	font-size: 0.92rem;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.lenzz-camp-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.5);
}

/* Optional bold layout for the mega sales (11.11 / Black Friday). */
.lenzz-camp--bold .lenzz-camp-title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -0.01em; }
.lenzz-camp--bold .lenzz-camp-inner { padding-block: clamp(22px, 3.4vw, 30px); }

/* Sitewide announcement topbar turns the campaign colour. */
body.lenzz-campaign-on .lenzz-topbar {
	background: linear-gradient(90deg, var(--lzc-topbar-a, #01411C), var(--lzc-topbar-b, #018A46)) !important;
}

/* Product-card sale badge — campaign skin (falls back to the pink .lenzz-badge--sale when no campaign). */
.lenzz-badge--campaign {
	background: linear-gradient(135deg, var(--lzc-badge-a, #01411C) 0%, var(--lzc-badge-b, #005e27) 100%);
	color: #fff;
	box-shadow: 0 4px 10px -4px var(--lzc-badge-shadow, rgba(1, 65, 28, 0.6));
}

/* Single-product sale flash — campaign skin. Compound selector keeps its
   positioning from shop.css (via .lenzz-onsale) while overriding the colour. */
.lenzz-onsale.lenzz-onsale--campaign {
	background: linear-gradient(135deg, var(--lzc-badge-a, #01411C) 0%, var(--lzc-badge-b, #005e27) 100%);
	box-shadow: 0 4px 10px -4px var(--lzc-badge-shadow, rgba(1, 65, 28, 0.6));
}

@media (max-width: 720px) {
	.lenzz-camp-inner { flex-direction: column; align-items: flex-start; text-align: left; }
	.lenzz-camp-text { flex: 0 0 auto; width: 100%; }
	.lenzz-camp-right { align-items: flex-start; width: 100%; }
	.lenzz-camp-cta { width: 100%; justify-content: center; }
	.lenzz-camp[data-mark]::after { font-size: 130px; opacity: 0.05; }
}

@media (prefers-reduced-motion: reduce) {
	.lenzz-camp-cta { transition: none; }
}
