/* ---------- Etichetta Black Friday ---------- */
.woocommerce span.onsale.ebf-badge,
.woocommerce-page span.onsale.ebf-badge,
span.onsale.ebf-badge {
	background: var(--ebf-badge-bg, #000);
	color: var(--ebf-badge-color, #fff);
	border-radius: 4px;
	min-width: 0;
	min-height: 0;
	width: auto;
	height: auto;
	padding: 6px 10px;
	line-height: 1.2;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
	z-index: 9;
}

/* ---------- Pop-up ---------- */
.ebf-popup[hidden] { display: none !important; }

.ebf-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity .3s ease;
}
.ebf-popup.is-open { opacity: 1; }

.ebf-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .65);
}

.ebf-popup__box {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: var(--ebf-popup-bg, #000);
	color: #fff;
	border: 2px solid var(--ebf-popup-accent, #c9a227);
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
	overflow: hidden;
	transform: translateY(16px) scale(.97);
	transition: transform .3s ease;
}
.ebf-popup.is-open .ebf-popup__box { transform: none; }

.ebf-popup__close {
	position: absolute;
	top: 6px;
	right: 8px;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 28px;
	line-height: 36px;
	cursor: pointer;
	opacity: .8;
}
.ebf-popup__close:hover,
.ebf-popup__close:focus { opacity: 1; background: transparent; color: #fff; }

.ebf-popup__link,
.ebf-popup__link:hover,
.ebf-popup__link:focus {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 36px 28px 28px;
	color: #fff;
	text-align: center;
	text-decoration: none;
}

.ebf-popup__image {
	display: block;
	max-width: 100%;
	max-height: 220px;
	height: auto;
	border-radius: 6px;
}

.ebf-popup__title {
	display: block;
	color: var(--ebf-popup-accent, #c9a227);
	font-size: clamp(30px, 8vw, 42px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ebf-popup__text {
	display: block;
	font-size: 16px;
	line-height: 1.5;
}

.ebf-popup__button {
	display: inline-block;
	margin-top: 4px;
	padding: 12px 28px;
	background: var(--ebf-popup-accent, #c9a227);
	color: #000;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .03em;
	text-transform: uppercase;
	transition: transform .15s ease, filter .15s ease;
}
.ebf-popup__link:hover .ebf-popup__button { transform: translateY(-1px); filter: brightness(1.1); }

.ebf-popup__until {
	display: block;
	font-size: 12px;
	opacity: .75;
}

@media (prefers-reduced-motion: reduce) {
	.ebf-popup, .ebf-popup__box { transition: none; }
}
