/* SMA Promozioni: conto alla rovescia e barra in cima al sito. */

/* ---------- Conto alla rovescia ---------- */
.sma-promo-timer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	max-width: 100%;
	box-sizing: border-box;
	line-height: 1.2;
}
.sma-promo-timer[hidden] {
	display: none;
}
.sma-promo-timer--scheda {
	margin: 12px 0 16px;
}
.sma-promo-timer__testo {
	font-size: 14px;
	font-weight: 600;
}
.sma-promo-timer__cifre {
	display: inline-flex;
	gap: 6px;
}
.sma-promo-timer__blocco {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	padding: 6px 4px 5px;
	box-sizing: border-box;
	border-radius: 4px;
	background: var(--smap-sfondo, #0a0000);
	color: var(--smap-colore, #fff);
}
.sma-promo-timer__n {
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.sma-promo-timer__u {
	margin-top: 3px;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	opacity: 0.85;
}

/* ---------- Barra in cima al sito ---------- */
.sma-promo-barra {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	background: var(--smap-sfondo, #0a0000);
	color: var(--smap-colore, #fff);
	font-size: 14px;
	line-height: 1.35;
}
.sma-promo-barra[hidden] {
	display: none;
}
.sma-promo-barra__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 20px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 10px 44px 10px 16px;
	box-sizing: border-box;
}
.sma-promo-barra__testi {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 2px 10px;
	min-width: 0;
	text-align: center;
}
.sma-promo-barra__titolo {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.5px;
	white-space: nowrap;
}
.sma-promo-barra__testo {
	min-width: 0;
	overflow-wrap: anywhere;
}
/* Nella barra i blocchi hanno i colori invertiti rispetto alla barra, per staccare. */
.sma-promo-barra .sma-promo-timer__blocco {
	min-width: 40px;
	padding: 4px 3px;
	background: var(--smap-colore, #fff);
	color: var(--smap-sfondo, #0a0000);
}
.sma-promo-barra .sma-promo-timer__n {
	font-size: 18px;
}
.sma-promo-barra .sma-promo-timer__u {
	font-size: 9px;
}
a.sma-promo-barra__btn,
a.sma-promo-barra__btn:visited {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 4px;
	background: var(--smap-btn-sfondo, #fff);
	color: var(--smap-btn-colore, #0a0000);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.4px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}
a.sma-promo-barra__btn:hover,
a.sma-promo-barra__btn:focus {
	color: var(--smap-btn-colore, #0a0000);
	text-decoration: none;
	opacity: 0.88;
}
.sma-promo-barra__chiudi,
.sma-promo-barra__chiudi:hover,
.sma-promo-barra__chiudi:focus {
	position: absolute;
	top: 4px;
	right: 6px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	box-shadow: none;
	color: var(--smap-colore, #fff);
	font-size: 22px;
	line-height: 32px;
	text-align: center;
	cursor: pointer;
}
.sma-promo-barra__chiudi:hover {
	opacity: 0.7;
}

/* ---------- Titolo e conto alla rovescia della pagina delle offerte (shortcode sma_promo_conto) ---------- */
.sma-promo-conto__titolo {
	margin: 0;
	font-family: inherit;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.4;
	color: #333;
	text-align: center;
}
.sma-promo-conto__titolo + .sma-promo-timer--pagina {
	margin-top: 20px;
}
.sma-promo-timer--pagina {
	display: block;
	max-width: 1140px;
	margin: 0 auto;
}
.sma-promo-timer--pagina .sma-promo-timer__cifre {
	display: flex;
	gap: 10px;
	width: 100%;
}
.sma-promo-timer--pagina .sma-promo-timer__blocco {
	flex: 1 1 0;
	min-width: 0;
	padding: 20px 0;
	border-radius: 0;
	background: #000;
	color: #fff;
}
.sma-promo-timer--pagina .sma-promo-timer__n {
	font-size: clamp(29px, 4.8vw, 69px);
	font-weight: 400;
	line-height: 1;
}
.sma-promo-timer--pagina .sma-promo-timer__u {
	margin-top: 0;
	font-size: clamp(14px, 1.35vw, 19px);
	letter-spacing: normal;
	text-transform: none;
	opacity: 1;
}

@media (max-width: 600px) {
	.sma-promo-barra {
		font-size: 13px;
	}
	.sma-promo-barra__in {
		gap: 6px 12px;
		padding: 8px 38px 8px 12px;
	}
	.sma-promo-barra__titolo {
		font-size: 14px;
		white-space: normal;
	}
	.sma-promo-timer__blocco {
		min-width: 42px;
	}
	.sma-promo-timer__n {
		font-size: 20px;
	}
}
