/* Prezzi e Contatti Polaris. Colori dal tema se definiti (--op-*), altrimenti i valori Polaris. */
:root {
	--ppc-navy: var(--op-navy, #0b1526);
	--ppc-orange: var(--op-orange, #e9530e);
	--ppc-muted: var(--op-muted, #5e6470);
	--ppc-wa: #25d366;
	--ppc-wa-dark: #128c4b;
}

/* ---------- prezzo su richiesta ---------- */
.ppc-price-note {
	font-size: 0.82em;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--ppc-muted);
}
.product-detail-info .ppc-price-note {
	font-size: 20px;
}

/* ---------- scheda prodotto: pulsanti richiesta ---------- */
.ppc-request-box {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 6px 0 4px;
}
.ppc-request-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	min-width: 280px;
	padding: 14px 26px;
	border: 1.5px solid var(--ppc-navy);
	border-radius: 8px;
	background: var(--ppc-navy);
	color: #fff !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none !important;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.ppc-request-btn svg {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}
.ppc-request-btn:hover,
.ppc-request-btn:focus-visible {
	background: var(--ppc-orange);
	border-color: var(--ppc-orange);
	color: #fff !important;
}
.ppc-request-btn--secondary {
	background: #fff;
	color: var(--ppc-navy) !important;
}
.ppc-request-btn:focus-visible {
	outline: 3px solid var(--ppc-orange);
	outline-offset: 3px;
}
@media (max-width: 767px) {
	.ppc-request-btn {
		width: 100%;
		min-width: 0;
	}
}

/* ---------- catalogo: icona al posto del carrello ---------- */
.ppc-request svg {
	width: 18px;
	height: 18px;
	vertical-align: middle;
}

/* ---------- pulsanti fluttuanti ---------- */
.ppc-float {
	position: fixed;
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 10px 26px -8px rgba(11, 21, 38, 0.45);
	cursor: pointer;
	text-decoration: none !important;
	transition: transform 0.2s, opacity 0.25s, background-color 0.2s;
}
.ppc-float svg {
	width: 28px;
	height: 28px;
}
.ppc-float:focus-visible {
	outline: 3px solid var(--ppc-orange);
	outline-offset: 3px;
}
.ppc-float--whatsapp {
	left: calc(18px + env(safe-area-inset-left, 0px));
	background: var(--ppc-wa);
	color: #fff !important;
}
.ppc-float--whatsapp:hover {
	background: var(--ppc-wa-dark);
	transform: translateY(-2px);
}
.ppc-float__label {
	position: absolute;
	left: calc(100% + 10px);
	padding: 7px 12px;
	border-radius: 20px;
	background: var(--ppc-navy);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translateX(-6px);
	transition: opacity 0.2s, transform 0.2s;
}
.ppc-float--whatsapp:hover .ppc-float__label,
.ppc-float--whatsapp:focus-visible .ppc-float__label {
	opacity: 1;
	transform: none;
}
.ppc-float--top {
	right: calc(18px + env(safe-area-inset-right, 0px));
	width: 48px;
	height: 48px;
	background: var(--ppc-navy);
	color: #fff;
}
.ppc-float--top svg {
	width: 22px;
	height: 22px;
}
.ppc-float--top:hover {
	background: var(--ppc-orange);
}
.ppc-float--top[hidden] {
	display: none;
}
.ppc-float--top.ppc-is-hiding {
	opacity: 0;
	transform: translateY(8px);
}
@media (max-width: 767px) {
	.ppc-float--whatsapp {
		width: 50px;
		height: 50px;
	}
	.ppc-float__label {
		display: none;
	}
}
/* Durante la stampa e la prova virtuale (finestra a tutto schermo) non servono. */
@media print {
	.ppc-float {
		display: none !important;
	}
}
html.pv-open .ppc-float {
	display: none !important;
}
@media (prefers-reduced-motion: reduce) {
	.ppc-float,
	.ppc-float__label,
	.ppc-request-btn {
		transition: none;
	}
}
