/**
 * Orchestra Pop — storefront (PDP widget, popup, carrello).
 */

/* Scala prezzi PDP (listino effettivo → dopo coupon orchestrato → finale C+T). */
.opop-price-ladder {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	line-height: 1.4;
}

.opop-price-ladder__row {
	display: inline-flex;
	align-items: baseline;
	gap: 0.45rem;
	flex-wrap: wrap;
}

.opop-price-ladder__value {
	display: inline-flex;
	align-items: baseline;
	gap: 0.2rem;
}

/* Stessa scala tipografica delle etichette prezzo native (.wdms-price-label) e degli importi sulla riga. */
.opop-price-ladder__label {
	font-size: 1em;
	font-weight: 600;
	opacity: 0.78;
	line-height: inherit;
}

.opop-price-ladder__row--final .opop-price-ladder__label {
	opacity: 0.92;
}

.opop-price-ladder__row.opop-price-ladder__row--final bdi {
	text-decoration: underline;
	font-weight: 700;
	color: color-mix(in srgb, green, transparent 20%);
}

.opop-price-ladder__strike {
	opacity: 0.72;
	text-decoration-thickness: 1px;
}

.opop-price-ladder__final {
	font-weight: 600;
}

.opop-price-final-token {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem;
}

.opop-price-final-token__value {
	font-weight: 700;
}

.wdms-price-container {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35rem;
	flex-wrap: wrap;
	font-size: inherit;
	line-height: inherit;
}

.wdms-price-label {
	font-size: 1em;
	font-weight: 600;
	opacity: 0.8;
}

/* Molti temi WooCommerce azzerano text-decoration su del/ins: senza line-through
 * il listino resta identico al saldo pur usando <del> nel markup. */
.wdms-price-container del,
.wdms-variable-parent .wdms-price-range--pending del,
/* Blocco prezzo variante (tema / WC): stesso rischio di reset su del. */
.woocommerce-variation-price .wdms-price-container del {
	text-decoration: line-through;
	text-decoration-thickness: 1px;
	text-decoration-skip-ink: none;
}

.wdms-price-container del {
	opacity: 0.72;
}

.wdms-price-container--sale-offer {
	gap: 0.35rem 0.45rem;
}

.wdms-price-container--sale-offer .wdms-price-sale {
	display: inline-flex;
	align-items: baseline;
	font-size: inherit;
	line-height: inherit;
}

.wdms-price-container .woocommerce-Price-amount,
.wdms-price-container .woocommerce-Price-amount bdi,
.wdms-price-container ins,
.wdms-price-container del,
.wdms-price-container .wdms-price-sale {
	font-size: inherit;
	line-height: inherit;
}

.wdms-from-price {
	display: inline-flex;
	align-items: baseline;
	gap: 0.3rem;
}

.wdms-variable-parent {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35rem;
}

.wdms-variable-parent .wdms-price-range--pending del,
.wdms-variable-parent .wdms-price-range--pending ins {
	opacity: 0.6;
}

.wdms-price-session-hint {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.82em;
	opacity: 0.8;
	line-height: 1.35;
}

.opop-claim-feedback {
	margin: 0.4rem 0 0;
	font-size: 0.86em;
	line-height: 1.35;
	color: #92400e;
	display: none;
}

.opop-claim-feedback.opop-claim-feedback--visible {
	display: block;
}

/* Claim/apply errors after banner buttons: wrap to full row in flex banners. */
.opop-discount-banner .opop-claim-feedback.opop-claim-feedback--visible {
	flex-basis: 100%;
	width: 100%;
}

/* -------------------------------------------------------------------------
 * Bollino sconto sulla galleria PDP (Design → bollino immagine)
 * - WC core: badge dentro .woocommerce-product-gallery__wrapper (dopo immagine).
 * - Blocksy / temi flex: badge dopo il flexy → senza absolute forte finisce in basso.
 * Selettori multipli = compatibilità (Storefront, Astra, Divi, ecc. + Blocksy).
 * ------------------------------------------------------------------------- */

.woocommerce .woocommerce-product-gallery,
.woocommerce .product .woocommerce-product-gallery {
	position: relative;
}

/* Blocksy: contenitore interno della galleria. */
.woocommerce .ct-product-gallery-container,
.woocommerce .product .ct-product-gallery-container {
	position: relative;
}

.woocommerce .woocommerce-product-gallery .opop-pdp-gallery-badge,
.woocommerce .product .woocommerce-product-gallery .opop-pdp-gallery-badge,
.woocommerce .product .ct-product-gallery-container .opop-pdp-gallery-badge,
.woocommerce-product-gallery .opop-pdp-gallery-badge,
.ct-product-gallery-container .opop-pdp-gallery-badge {
	position: absolute !important;
	/*
	 * Non usare top negativo: .woocommerce-product-gallery__wrapper ha spesso overflow:hidden → il bollino viene tagliato.
	 * La lente WC ( .woocommerce-product-gallery__trigger ) è top/right ~0.5em, 36×36px, z-index:99 — il bollino stava sotto.
	 * Strategia: stesso angolo logico ma inset-inline-end abbastanza grande da lasciare il quadrante della lente libero;
	 * z-index > 99 + pointer-events:none → se resta un pixel di overlap, il testo resta leggibile e i click passano.
	 */
	inset-block-start: 10px !important;
	inset-inline-end: calc(0.5em + 44px) !important;
	inset-inline-start: auto !important;
	inset-block-end: auto !important;
	margin: 0 !important;
	float: none !important;
	z-index: 10 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	align-self: auto !important;
	padding: 0.3rem 0.55rem;
	border-radius: 6px;
	/* Dimensione fissa vetrina (indipendente da storefront_text_size_px) */
	font-size: 17px !important;
	font-weight: 700;
	line-height: 1.15;
	pointer-events: none;
	box-sizing: border-box;
	/* Larghezza al contenuto: niente ellissi su importi lunghi; limite = area galleria meno lente WC. */
	width: max-content;
	max-width: min(
		calc(100% - 0.5em - 44px - 0.35rem),
		calc(100vw - 24px)
	);
	max-height: none;
	overflow: visible;
	white-space: nowrap;
	flex-shrink: 0;
}

/* -------------------------------------------------------------------------
 * Popup modale (guscio creato da assets/js/frontend.js su body)
 * ------------------------------------------------------------------------- */

#opop-popup-overlay,
#opop-popup-box,
#opop-float-icon {
	position: fixed;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

#opop-popup-overlay.opop-visible,
#opop-popup-box.opop-visible,
#opop-float-icon.opop-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Backdrop (solo center + right: il JS aggiunge .opop-visible all’overlay). Colore da inline style (opopPageParams.popup_overlay_bg). */
#opop-popup-overlay {
	inset: 0;
	z-index: 500000;
	background: transparent;
}

/* Contenitore dialogo: altezza = contenuto; larghezza da JS (opopPageParams.popup_width_percent) */
#opop-popup-box {
	z-index: 500001;
	margin: 0;
	width: 90%;
	max-width: calc(100vw - 32px);
	height: auto;
	max-height: none;
	overflow: visible;
	display: flex;
	flex-direction: column;
}

#opop-popup-inner {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	max-height: calc(100vh - 32px);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

/* Allineamento orizzontale contenuto popup (asse verticale: centrato nel box scrollabile) */
#opop-popup-inner.opop-popup-inner--v-middle {
	justify-content: safe center;
}
#opop-popup-inner.opop-popup-inner--h-center {
	align-items: center;
	text-align: center;
}
#opop-popup-inner.opop-popup-inner--h-left {
	align-items: stretch;
	text-align: left;
}
#opop-popup-inner.opop-popup-inner--h-right {
	align-items: stretch;
	text-align: right;
}
/* Logo colonna popup: background-size/position da inline JS (Design), non da allineamento testo */

/* Posizioni (allineate all’anteprima admin: positionPopupBox) */
#opop-popup-box.opop-pos-center {
	left: 50%;
	top: 50%;
	right: auto;
	bottom: auto;
	transform: translate(-50%, -50%);
}

#opop-popup-box.opop-pos-top {
	left: 50%;
	top: max(12px, env(safe-area-inset-top, 0px));
	right: auto;
	bottom: auto;
	transform: translateX(-50%);
}

#opop-popup-box.opop-pos-bottom {
	left: 50%;
	right: auto;
	top: auto;
	bottom: max(12px, env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
}

#opop-popup-box.opop-pos-right {
	left: auto;
	right: max(10px, env(safe-area-inset-right, 0px));
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
	/* Larghezza effettiva da inline (stesso schema center/bottom/top) */
}

#opop-popup-box.opop-pos-left {
	left: max(10px, env(safe-area-inset-left, 0px));
	right: auto;
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
}

/*
 * Mobile (≤768px): larghezza fissa ~95% viewport.
 * La posizione resta quella scelta in Design (center/top/bottom/right/left).
 */
@media (max-width: 768px) {
	#opop-popup-box {
		width: 95% !important;
		max-width: min(95vw, calc(100vw - 16px)) !important;
	}
}

.opop-popup-close {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 40px;
	color: inherit;
	font-size: 1.55rem;
	line-height: 1;
	font-weight: 900;
	cursor: pointer;
	opacity: 0.90;
}
.opop-popup-close {
	background: transparent;
}
.opop-popup-close:hover,
.opop-popup-close:focus {
	opacity: 1;
}

.opop-popup-close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Widget = card visiva (sfondo/bordo da inline PHP): logo e × devono stare qui dentro */
#opop-popup-inner .opop-pdp-widget {
	position: relative;
	max-width: 100%;
	box-sizing: border-box;
}

/* Contenuto PDP sostituito via JS al claim: logo e × restano fuori da __body */
.opop-pdp-widget__body {
	min-width: 0;
}
.opop-pdp-widget__body div {
	display: flex;
	justify-content: center;
	flex-direction: column;
}
/* Colonna sinistra = background-image (sidebar); testi in __body a destra — fuori da __body così resta dopo il claim AJAX */
.opop-pdp-widget:has(.opop-inline-widget__sidebar),
.opop-archive-widget:has(.opop-inline-widget__sidebar) {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	min-height: 150px;
	overflow: hidden;
	box-sizing: border-box;
}

.opop-pdp-widget:has(.opop-inline-widget__sidebar) .opop-pdp-widget__body,
.opop-archive-widget:has(.opop-inline-widget__sidebar) .opop-archive-widget__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.opop-inline-widget__media:not(.opop-inline-widget__sidebar) {
	margin: 0 0 12px;
	text-align: center;
}

.opop-pdp-widget:has(.opop-inline-widget__sidebar) .opop-inline-widget__sidebar,
.opop-archive-widget:has(.opop-inline-widget__sidebar) .opop-inline-widget__sidebar {
	flex: 0 0 30%;
	max-width: 180px;
	width: 30%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	align-self: stretch;
	min-height: 0;
	box-sizing: border-box;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	border-top-left-radius: max(0px, calc(var(--opop-inline-br, 0px) - var(--opop-inline-bw, 0px)));
	border-bottom-left-radius: max(0px, calc(var(--opop-inline-br, 0px) - var(--opop-inline-bw, 0px)));
}
.opop-archive-widget:has(.opop-inline-widget__sidebar) {
	justify-content: center;
}
.opop-archive-widget:has(.opop-inline-widget__sidebar) .opop-archive-widget__body {
	text-align: justify;
	text-align-last: center;
}

/* Popup: logo solo come background su .opop-popup-logo-bg (nessun img) */
.opop-popup-widget__hero {
	background-color: transparent;
}

/* Mobile (≤768px): come anteprima admin / blocco inline — colonna immagine sopra */
@media (max-width: 768px) {
	.opop-pdp-widget.opop-pdp-widget--inline-split,
	.opop-pdp-widget:has(.opop-inline-widget__sidebar),
	.opop-archive-widget.opop-archive-widget--inline-split,
	.opop-archive-widget:has(.opop-inline-widget__sidebar) {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		gap: 12px;
	}
	.opop-pdp-widget.opop-pdp-widget--inline-split .opop-inline-widget__sidebar,
	.opop-pdp-widget:has(.opop-inline-widget__sidebar) .opop-inline-widget__sidebar,
	.opop-archive-widget.opop-archive-widget--inline-split .opop-inline-widget__sidebar,
	.opop-archive-widget:has(.opop-inline-widget__sidebar) .opop-inline-widget__sidebar {
		flex: 0 0 auto;
		width: 100%;
		max-width: none;
		min-height: 180px;
		align-self: stretch;
		border-top-left-radius: max(0px, calc(var(--opop-inline-br, 0px) - var(--opop-inline-bw, 0px)));
		border-top-right-radius: max(0px, calc(var(--opop-inline-br, 0px) - var(--opop-inline-bw, 0px)));
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
	}
	.opop-archive-widget.opop-archive-widget--inline-split,
	.opop-archive-widget:has(.opop-inline-widget__sidebar) {
		justify-content: flex-start;
	}
}

.opop-archive-widget__body {
	min-width: 0;
}

.opop-archive-coupon-chip {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	flex-wrap: nowrap;
	gap: 0.35em;
	margin-top: 6px;
	padding: 8px;
	width: fit-content !important;
	max-width: 100%;
	box-sizing: border-box;
	border: 1px solid;
	border-color: inherit;
	color: inherit;
	font: inherit;
	line-height: 1.35;
}

.opop-archive-coupon-chip__main {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35em;
	max-width: 100%;
}

.opop-archive-coupon-chip__code,
.opop-archive-coupon-chip__offer {
	font: inherit;
	color: inherit;
	margin: 0;
}

.opop-archive-coupon-chip__price-hint {
	display: block;
	width: 100%;
	font-size: 0.92em;
	line-height: 1.3;
	opacity: 0.95;
}

.opop-archive-coupon-chip__price-hint .opop-archive-coupon-chip__from {
	text-decoration: line-through;
	opacity: 0.75;
	font-weight: 400;
	background: none;
}

.opop-archive-coupon-chip__price-hint .opop-archive-coupon-chip__to {
	text-decoration: none;
	font-weight: 600;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	color: inherit;
}
.opop-offer-context.opop-sf-context.opop-offer-context--surface-popup {
	text-transform: capitalize;
  }
.opop-archive-widget.opop-archive-widget--sticky {
	position: sticky;
	top: var(--opop-archive-sticky-top, 40px);
	z-index: var(--opop-archive-sticky-z, 99);
}
@media (max-width: 1024px) {
	.opop-archive-widget.opop-archive-widget--sticky {
		position: static;
		top: auto;
	}
}
.opop-archive-widget__body div {
	flex: none !important;
}

/* Icona floating (dopo chiusura popup): talloncino SVG + etichetta. Cresce in larghezza con il testo (importi lunghi). */
#opop-float-icon {
	z-index: 500002;
	width: max-content;
	min-width: 78px;
	max-width: min(240px, calc(100vw - 32px));
	height: auto;
	min-height: 78px;
	margin: 0;
	padding: 8px 12px 10px;
	border: none;
	border-radius: 999px 999px 999px 20px;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(15, 10, 30, 0.22);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.1;
	box-sizing: border-box;
}

#opop-float-icon.opop-float-icon--pos-top-right {
	top: max(20px, env(safe-area-inset-top, 0px));
	right: max(20px, env(safe-area-inset-right, 0px));
	bottom: auto;
	left: auto;
}

#opop-float-icon.opop-float-icon--pos-top-left {
	top: max(20px, env(safe-area-inset-top, 0px));
	left: max(20px, env(safe-area-inset-left, 0px));
	bottom: auto;
	right: auto;
}

#opop-float-icon.opop-float-icon--pos-bottom-right {
	bottom: max(20px, env(safe-area-inset-bottom, 0px));
	right: max(20px, env(safe-area-inset-right, 0px));
	top: auto;
	left: auto;
}

#opop-float-icon.opop-float-icon--pos-bottom-left {
	bottom: max(20px, env(safe-area-inset-bottom, 0px));
	left: max(20px, env(safe-area-inset-left, 0px));
	top: auto;
	right: auto;
}

#opop-float-icon.opop-icon-reserved {
	background: #059669;
}

#opop-float-icon .opop-icon-tag {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin: 0;
	line-height: 0;
	opacity: 0.98;
}

#opop-float-icon .opop-icon-tag svg {
	display: block;
	width: 20px;
	height: 20px;
}

#opop-float-icon .opop-icon-label {
	display: block;
	max-width: none;
	width: 100%;
	overflow: visible;
	text-align: center;
	white-space: nowrap;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.1;
}

#opop-float-icon .opop-icon-label__star {
	display: inline-block;
	width: 0.6em;
	height: 0.6em;
	fill: currentColor;
	vertical-align: super;
	margin-right: 0.12em;
}

@media (prefers-reduced-motion: reduce) {
	#opop-popup-overlay,
	#opop-popup-box,
	#opop-float-icon {
		transition: none;
	}
}

/* Logo popup = solo background su colonna .opop-popup-logo-bg (injectPopupLogo in frontend.js) */
#opop-popup-inner .opop-popup-logo-bg {
	box-sizing: border-box;
	overflow: hidden;
	background-repeat: no-repeat;
	min-height: 180px;
	/* size/position da inline JS; min-height inline può superare 180px se impostazione > 180 */
}

/* Icone SVG minime nel box prenotazione attiva (PDP / archivio categoria) */
.opop-inline-ic {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.opop-inline-ic svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* CTA «hai già l’offerta in carrello»: check su tondo verde (non usato sulle icone orologio) */
.opop-active-cta .opop-inline-ic {
	background: #63c400;
	height: 28px !important;
	width: 28px !important;
	border-radius: 50%;
	padding: 2px;
	color: #fff !important;
}
.opop-sf-countdown {
	display: inline;
	font-size: inherit;
	line-height: inherit;
	text-decoration: underline;
	white-space: nowrap;
}
.opop-inline-ic {
	display: none !important;
  }
.opop-sf-body strong {
	font-weight: 600 !important;
 }
/* Coupon code: always dark-on-light regardless of parent text color (popup uses white text). */
code.opop-coupon-code-reapply {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	background: rgba(255,255,255,0.9) !important;
	color: #111827 !important;
	font-weight: 700;
	letter-spacing: 0.05em;
	font-family: monospace;
	user-select: all;
	cursor: copy;
	border: 1px solid rgba(0,0,0,0.15);
}

.opop-coupon-copy-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 2px 2px 6px;
	border-radius: 8px;
	border: 1px solid rgba(0,0,0,0.18);
	background: rgba(255,255,255,0.9);
}

.opop-coupon-copy-wrap code.opop-coupon-code-reapply {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent !important;
	color: #111827 !important;
	font-weight: 700;
	letter-spacing: 0.02em;
	user-select: all;
	cursor: copy;
}

.opop-coupon-copy-wrap .opop-coupon-copy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #111827;
	cursor: pointer;
}

.opop-coupon-copy-wrap .opop-coupon-copy-btn svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

.opop-coupon-copy-wrap.is-copied {
	background: #dcfce7;
	border-color: #16a34a;
}

/* Apply-trigger: coupon code + cart icon, clickable inline */
.opop-coupon-apply-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0;
	cursor: pointer;
	padding: 2px 8px 2px 0;
	border-radius: 6px;
	transition: opacity .15s;
}
.opop-coupon-apply-trigger:hover {
	opacity: .75;
}
.opop-coupon-apply-trigger code.opop-coupon-code-reapply {
	cursor: pointer;
	user-select: none;
}
/*
 * CTA claim (PDP + popup): in colonna flex il default align-items:stretch
 * forza il bottone a tutta larghezza; fit-content + align-self ripristinano
 * larghezza al testo e rispettano l’allineamento popup (h-left/center/right).
 */
button#opop-claim-pdp.opop-claim-btn,
#opop-claim-pdp.opop-claim-btn {
	box-sizing: border-box;
	width: fit-content;
	max-width: 100%;
}

.opop-pdp-widget__body #opop-claim-pdp {
	align-self: flex-start;
}

#opop-popup-inner.opop-popup-inner--h-left .opop-pdp-widget__body #opop-claim-pdp {
	align-self: flex-start;
	margin-left: 0;
	margin-right: auto;
}

#opop-popup-inner.opop-popup-inner--h-center .opop-pdp-widget__body #opop-claim-pdp {
	align-self: center;
	margin-left: auto;
	margin-right: auto;
}

#opop-popup-inner.opop-popup-inner--h-right .opop-pdp-widget__body #opop-claim-pdp {
	align-self: flex-end;
	margin-left: auto;
	margin-right: 0;
}
/* Contesto offerta — popup: leggibile su sfondo colorato del widget (non condiviso con inline) */
.opop-offer-context--surface-popup.opop-sf-context {
	display: table !important;
	margin: 0 auto 10px auto !important;
	width: auto;
	max-width: 90%;
	padding: 10px 30px;
	border-radius: 10px;
	border: 1px dashed currentColor;
	text-align: center;
	box-sizing: border-box;
	background: #ffffff08;
}

/* Contesto offerta — blocco inline PDP: tratteggio = currentColor (stesso colore testo del contesto, da style inline) */
.opop-offer-context--surface-inline.opop-sf-context {
	width: 100%;
	max-width: 380px;
	padding: 10px 10px;
	text-align: center;
	border-radius: 12px;
	box-sizing: border-box;
	background: #efefef30;
	border: 1px dashed color-mix(in srgb, currentColor, transparent 70%);
}

/* Mobile: contesto offerta a tutta larghezza e respiro corpo quando il widget ha colonna immagine (dopo regole .surface-inline) */
@media (max-width: 768px) {
	.opop-pdp-widget:has(.opop-inline-widget__sidebar) .opop-offer-context.opop-sf-context.opop-offer-context--surface-inline,
	.opop-archive-widget:has(.opop-inline-widget__sidebar) .opop-offer-context.opop-sf-context.opop-offer-context--surface-inline {
		min-width: 100%;
		width: 100%;
		max-width: none;
	}
	.opop-pdp-widget:has(.opop-inline-widget__sidebar) .opop-pdp-widget__body .opop-sf-body,
	.opop-archive-widget:has(.opop-inline-widget__sidebar) .opop-archive-widget__body .opop-sf-body {
		padding-top: 20px;
	}
}

/* Tipografia allineata al titolo / descrizione prodotto sulla PDP (variabili da opop-pdp-typography.js) */
#opop-pdp-widget.opop-pdp-typography--fonts .opop-sf-title {
	font-family: var(--opop-pdp-font-title, inherit);
	font-weight: var(--opop-pdp-fw-title, 600);
}

#opop-pdp-widget.opop-pdp-typography--fonts .opop-sf-body,
#opop-pdp-widget.opop-pdp-typography--fonts .opop-sf-context,
#opop-pdp-widget.opop-pdp-typography--fonts .opop-sf-countdown,
#opop-pdp-widget.opop-pdp-typography--fonts .opop-sf-button {
	font-family: var(--opop-pdp-font-body, inherit);
}

#opop-pdp-widget.opop-pdp-typography--sizes .opop-sf-title {
	font-size: var(--opop-pdp-fs-title, inherit) !important;
	line-height: var(--opop-pdp-lh-title, 1.25) !important;
}

#opop-pdp-widget.opop-pdp-typography--sizes .opop-sf-body,
#opop-pdp-widget.opop-pdp-typography--sizes #opop-pdp-price-line {
	font-size: var(--opop-pdp-fs-body, inherit) !important;
	line-height: var(--opop-pdp-lh-body, 1.4) !important;
}

#opop-pdp-widget.opop-pdp-typography--sizes .opop-sf-context {
	font-size: max(0.68rem, calc(var(--opop-pdp-fs-body, 1rem) * 0.9)) !important;
	line-height: 1.35 !important;
}

#opop-pdp-widget.opop-pdp-typography--sizes .opop-sf-countdown {
	font-size: var(--opop-pdp-fs-body, inherit) !important;
	line-height: var(--opop-pdp-lh-body, 1.4) !important;
}

#opop-pdp-widget.opop-pdp-typography--sizes .opop-sf-button {
	font-size: max(0.85rem, calc(var(--opop-pdp-fs-body, 1rem) * 0.98)) !important;
}


