/* NE Kalendarz promocji – front. Kolorystyka spójna z banerem adwentowym:
   butelkowa zieleń, złoto, kremowa typografia szeryfowa. */
:root {
	--ne-adv-green-900: #0b2418;
	--ne-adv-green-800: #113222;
	--ne-adv-green-700: #18432e;
	--ne-adv-gold-300: #f6e3a8;
	--ne-adv-gold-400: #ecd08a;
	--ne-adv-gold-500: #d9ad55;
	--ne-adv-cream: #f8f1de;
	--ne-adv-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
}

/* „Gratis” w miejscu ceny: wygląda jak cena motywu (krój, rozmiar, kolor promocyjnej <ins>). */
.ne-adv-free { font: inherit; color: inherit; text-transform: none; letter-spacing: inherit; }

/* Opis promocji przy pozycji (koszyk, mini-koszyk, podsumowanie): mały font, jedna linia. */
dl.variation:has(.ne-adv-meta) {
	display: flex;
	flex-wrap: nowrap;
	align-items: baseline;
	gap: 4px;
	margin: 2px 0 0;
	padding: 0;
	border: 0;
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
	color: var(--ink-3, #6b6b6b);
}
dl.variation:has(.ne-adv-meta) dt,
dl.variation:has(.ne-adv-meta) dd {
	float: none;
	display: inline;
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: 500;
	line-height: inherit;
	clear: none;
}
dl.variation:has(.ne-adv-meta) dd { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
dl.variation:has(.ne-adv-meta) dd p { display: inline; margin: 0; font-size: inherit; line-height: inherit; }
/* Podsumowanie w checkoucie ma bardzo wąską kolumnę nazwy – tam lepiej zawinąć niż uciąć cenę. */
.woocommerce-checkout-review-order-table dl.variation:has(.ne-adv-meta) { white-space: normal; flex-wrap: wrap; line-height: 1.2; }
.woocommerce-checkout-review-order-table dl.variation:has(.ne-adv-meta) dd { overflow: visible; text-overflow: clip; }
.woocommerce-checkout-review-order-table dl.variation:has(.ne-adv-meta) dt { display: none; }

/* Wąskie ekrany: opis może się zawinąć (z małą interlinią), żeby nie ucinać ceny. */
@media (max-width: 480px) {
	dl.variation:has(.ne-adv-meta) { display: block; white-space: normal; line-height: 1.2; }
	dl.variation:has(.ne-adv-meta) dd { overflow: visible; text-overflow: clip; }
}
.ne-adv-meta, .ne-adv-meta .amount { font-size: inherit; line-height: inherit; font-weight: 500; color: var(--accent-ink, #6a572f); }

/* ---------- Box na karcie produktu ---------- */
.ne-adv-product-notice {
	position: relative;
	display: flex;
	gap: 14px;
	align-items: center;
	margin: 10px 0 6px;
	padding: 16px 18px;
	overflow: hidden;
	border-radius: 16px;
	border: 1px solid rgba(236, 208, 138, .55);
	background:
		radial-gradient(circle at 92% 18%, rgba(246, 227, 168, .28) 0 2px, transparent 3px),
		radial-gradient(circle at 80% 70%, rgba(246, 227, 168, .18) 0 1.5px, transparent 2.5px),
		radial-gradient(circle at 64% 22%, rgba(246, 227, 168, .16) 0 1.5px, transparent 2.5px),
		radial-gradient(120% 140% at 100% 0%, var(--ne-adv-green-700) 0%, var(--ne-adv-green-800) 45%, var(--ne-adv-green-900) 100%);
	color: var(--ne-adv-cream);
	box-shadow: 0 10px 28px rgba(11, 36, 24, .28), inset 0 1px 0 rgba(246, 227, 168, .15);
}
.ne-adv-product-notice::after {
	/* Złoty łuk jak podkreślenie pod nagłówkiem banera. */
	content: "";
	position: absolute;
	left: 18px;
	right: 38%;
	bottom: 9px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, var(--ne-adv-gold-400) 25%, var(--ne-adv-gold-500) 70%, transparent);
	opacity: .55;
}
.ne-adv-product-notice__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	border: 1px solid rgba(236, 208, 138, .6);
	background: linear-gradient(160deg, var(--ne-adv-green-700), var(--ne-adv-green-900));
	box-shadow: inset 0 0 0 3px rgba(11, 36, 24, .6);
	color: var(--ne-adv-gold-400);
	font: italic 600 28px/1 var(--ne-adv-serif);
}
.ne-adv-product-notice__icon svg { width: 26px; height: 26px; }
.ne-adv-product-notice__body { flex: 1 1 auto; min-width: 0; }
.ne-adv-product-notice__badge {
	display: inline-block;
	margin-bottom: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--ne-adv-gold-300), var(--ne-adv-gold-500));
	color: var(--ne-adv-green-900);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.ne-adv-product-notice__text {
	margin: 0;
	color: var(--ne-adv-cream);
	font-size: 15px;
	line-height: 1.45;
	font-weight: 500;
}
.ne-adv-product-notice__text strong,
.ne-adv-product-notice__text .amount,
.ne-adv-product-notice__text .woocommerce-Price-amount { color: var(--ne-adv-gold-300); font-weight: 700; }
.ne-adv-product-notice__until { margin: 6px 0 0; font-size: 12px; color: rgba(248, 241, 222, .7); }

/* ---------- Animacja „otwórz dzisiejsze okienko” ---------- */
.ne-adv-anim {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: radial-gradient(90% 70% at 50% 45%, var(--ne-adv-green-700) 0%, var(--ne-adv-green-800) 45%, #061710 100%);
	opacity: 0;
	transition: opacity .35s ease;
	perspective: 1200px;
}
.ne-adv-anim.is-in { opacity: 1; }
.ne-adv-anim.is-out { opacity: 0; transition-duration: .25s; }

.ne-adv-anim__bokeh { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(246, 227, 168, .9), rgba(236, 208, 138, .25) 45%, transparent 70%); filter: blur(2px); opacity: 0; animation: ne-adv-bokeh 3s ease-in-out infinite; }
@keyframes ne-adv-bokeh { 0%, 100% { opacity: .15; transform: scale(.85); } 50% { opacity: .7; transform: scale(1.05); } }

.ne-adv-anim__stage { position: relative; display: grid; justify-items: center; gap: 26px; transform: scale(.82); opacity: 0; transition: transform .55s cubic-bezier(.2, .9, .3, 1.2), opacity .4s ease; }
.ne-adv-anim.is-in .ne-adv-anim__stage { transform: scale(1); opacity: 1; }

.ne-adv-anim__frame {
	position: relative;
	width: min(46vw, 210px);
	aspect-ratio: 1;
	border-radius: 10px;
	padding: 8px;
	background: linear-gradient(160deg, #1d4a33, #0d2a1c);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(236, 208, 138, .35);
	perspective: 650px;
}
/* Błysk światła z otwartego okienka. */
.ne-adv-anim__frame::after { content: ""; position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 240, 190, .55) 0%, rgba(236, 208, 138, .18) 35%, transparent 65%); opacity: 0; transform: scale(.4); pointer-events: none; }
.ne-adv-anim.is-open .ne-adv-anim__frame::after { animation: ne-adv-flash 1.4s ease-out .35s forwards; }
@keyframes ne-adv-flash { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: .55; transform: scale(1.15); } }
/* Wnętrze okienka – złota poświata i prezent. */
.ne-adv-anim__inside {
	position: absolute;
	inset: 8px;
	border-radius: 6px;
	display: grid;
	place-items: center;
	background: radial-gradient(circle at 50% 55%, #fff6d6 0%, var(--ne-adv-gold-400) 35%, #9c7426 100%);
	box-shadow: inset 0 0 30px rgba(80, 50, 0, .45);
	overflow: hidden;
}
.ne-adv-anim__inside svg { color: var(--ne-adv-green-800); width: 46%; height: 46%; filter: drop-shadow(0 6px 10px rgba(80, 50, 0, .35)); transform: scale(.4); opacity: 0; transition: transform .6s cubic-bezier(.2, .9, .3, 1.4) .35s, opacity .3s ease .35s; }
.ne-adv-anim.is-open .ne-adv-anim__inside svg { transform: scale(1); opacity: 1; }

.ne-adv-anim__door {
	position: absolute;
	inset: 8px;
	border-radius: 6px;
	transform-origin: left center;
	transform-style: preserve-3d;
	transition: transform 1s cubic-bezier(.55, .05, .25, 1);
	background: linear-gradient(160deg, #1f5038 0%, #133826 60%, #0e2c1e 100%);
	box-shadow: inset 0 0 0 1px rgba(236, 208, 138, .45), inset 0 0 0 5px rgba(9, 30, 20, .5);
	display: grid;
	place-items: center;
	z-index: 2;
}
/* Półokrągłe wcięcie na palec – jak w kalendarzu z banera. */
.ne-adv-anim__door::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 50%;
	width: 26%;
	height: 13%;
	transform: translateX(-50%);
	border-radius: 0 0 999px 999px;
	background: #0a2217;
	box-shadow: inset 0 -1px 0 rgba(236, 208, 138, .35);
}
.ne-adv-anim__num {
	display: inline-block;
	/* Zapas na wystające elementy kursywy – gradient (background-clip: text)
	   kończy się na krawędzi pola, więc bez paddingu pochylona cyfra była ucinana. */
	padding: .06em .22em .1em .12em;
	font: italic 600 clamp(58px, 17vw, 92px)/1.1 var(--ne-adv-serif);
	white-space: nowrap;
	background: linear-gradient(180deg, var(--ne-adv-gold-300), var(--ne-adv-gold-500));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ne-adv-anim__num--2 { font-size: clamp(50px, 14vw, 78px); }
/* Rozmiar cyfry liczony od szerokości drzwiczek, a nie ekranu – na wąskim mobile
   okienko jest mniejsze, a liczba vw dawała za dużą cyfrę względem okienka. */
@supports (container-type: size) {
	.ne-adv-anim__door { container-type: size; }
	.ne-adv-anim__num { font-size: 46cqw; }
	.ne-adv-anim__num--2 { font-size: 36cqw; }
}
.ne-adv-anim.is-open .ne-adv-anim__door { transform: rotateY(-108deg); box-shadow: inset 0 0 0 1px rgba(236, 208, 138, .45), inset 0 0 0 5px rgba(9, 30, 20, .5), 18px 0 30px rgba(0, 0, 0, .35); }
.ne-adv-anim__num { transition: opacity .25s ease .35s; }
.ne-adv-anim.is-open .ne-adv-anim__num { opacity: 0; }

.ne-adv-anim__title { margin: 0; padding: 0 20px; max-width: 100vw; box-sizing: border-box; color: var(--ne-adv-cream); font: 500 clamp(26px, 6vw, 40px)/1.1 var(--ne-adv-serif); text-align: center; letter-spacing: .01em; }
.ne-adv-anim__line { display: block; width: 70%; height: 3px; margin: 10px auto 0; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--ne-adv-gold-400) 20%, var(--ne-adv-gold-500) 80%, transparent); transform: scaleX(0); transition: transform .8s ease .2s; }
.ne-adv-anim.is-in .ne-adv-anim__line { transform: scaleX(1); }

.ne-adv-anim__star { z-index: 3; position: absolute; left: 50%; top: 50%; width: var(--s, 14px); height: var(--s, 14px); margin: calc(var(--s, 14px) / -2) 0 0 calc(var(--s, 14px) / -2); color: var(--ne-adv-gold-300); pointer-events: none; opacity: 0; filter: drop-shadow(0 0 8px rgba(246, 227, 168, 1)) drop-shadow(0 0 2px #fff); }
.ne-adv-anim.is-open .ne-adv-anim__star { animation: ne-adv-star 1.5s cubic-bezier(.15, .8, .3, 1) var(--d, 0s) forwards; }
@keyframes ne-adv-star {
	0% { opacity: 0; transform: translate(0, 0) scale(.2) rotate(0deg); }
	12% { opacity: 1; }
	70% { opacity: 1; }
	100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1) rotate(var(--r, 180deg)); }
}

@media (prefers-reduced-motion: reduce) {
	.ne-adv-anim, .ne-adv-anim__stage, .ne-adv-anim__door, .ne-adv-anim__line, .ne-adv-anim__inside svg { transition-duration: .01s !important; transition-delay: 0s !important; }
	.ne-adv-anim__star, .ne-adv-anim__bokeh { display: none; }
}

/* ---------- Styl „Natural” – spójny z UI sklepu (kremowe tło, akcent #8b734b, Manrope) ---------- */
.ne-adv-product-notice--natural {
	border: 1px solid var(--line-2, #e5e2db);
	background: linear-gradient(135deg, var(--soft-2, #faf8f3) 0%, var(--accent-soft, #f3eee2) 100%);
	color: var(--ink, #0a0a0a);
	box-shadow: none;
	border-radius: var(--radius-md, 14px);
}
.ne-adv-product-notice--natural::after { display: none; }
.ne-adv-product-notice--natural .ne-adv-product-notice__icon {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid rgba(139, 115, 75, .35);
	background: #fff;
	box-shadow: none;
	color: var(--accent, #8b734b);
}
.ne-adv-product-notice--natural .ne-adv-product-notice__icon svg { width: 22px; height: 22px; }
.ne-adv-product-notice--natural .ne-adv-product-notice__badge {
	background: var(--ink, #0a0a0a);
	color: #fff;
	font-weight: 700;
}
.ne-adv-product-notice--natural .ne-adv-product-notice__text { color: var(--ink, #0a0a0a); }
.ne-adv-product-notice--natural .ne-adv-product-notice__text strong,
.ne-adv-product-notice--natural .ne-adv-product-notice__text .amount,
.ne-adv-product-notice--natural .ne-adv-product-notice__text .woocommerce-Price-amount { color: var(--accent-ink, #6a572f); }
.ne-adv-product-notice--natural .ne-adv-product-notice__until { color: var(--ink-3, #6b6b6b); }

/* ---------- Propozycja produktu bonusowego w koszyku ---------- */
.ne-adv-offer { margin: 0 0 16px; align-items: flex-start; }
.ne-adv-offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; }
.ne-adv-offer__add {
	display: inline-flex;
	align-items: center;
	height: 42px;
	padding: 0 20px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	transition: none;
}
/* Bez animacji po najechaniu (także stylów motywu dla linków/przycisków). */
.ne-adv-offer__add:hover,
.ne-adv-offer__add:focus { transform: none; transition: none; animation: none; filter: none; opacity: 1; }
.ne-adv-offer__decline { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.ne-adv-product-notice--xmas .ne-adv-offer__add { background: linear-gradient(180deg, var(--ne-adv-gold-300), var(--ne-adv-gold-500)); color: var(--ne-adv-green-900); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.ne-adv-product-notice--xmas .ne-adv-offer__decline { color: rgba(248, 241, 222, .75); }
.ne-adv-product-notice--xmas .ne-adv-offer__decline:hover { color: var(--ne-adv-cream); }

.ne-adv-product-notice--natural .ne-adv-offer__add { background: var(--ink, #0a0a0a); color: #fff; }
.ne-adv-product-notice--natural .ne-adv-offer__decline { color: var(--ink-3, #6b6b6b); }
.ne-adv-product-notice--natural .ne-adv-offer__decline:hover { color: var(--ink, #0a0a0a); }

@media (max-width: 480px) {
	.ne-adv-offer__add { width: 100%; justify-content: center; }
}
