/**
 * Overlay "stiamo elaborando il tuo ordine".
 *
 * Sostituisce visivamente il velo di blockUI di WooCommerce, che e' bianco al
 * 75% senza rotella ne' testo e con z-index 1: praticamente invisibile su
 * mobile, dove il pulsante sta in fondo alla pagina.
 */

.og-checkout-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.og-checkout-overlay[hidden] {
	display: none;
}

.og-checkout-overlay__card {
	max-width: 340px;
	text-align: center;
}

.og-checkout-overlay__spinner {
	width: 44px;
	height: 44px;
	margin: 0 auto 18px;
	border: 3px solid rgba(0, 0, 0, 0.1);
	border-top-color: #e1306c;
	border-radius: 50%;
	animation: og-checkout-spin 0.8s linear infinite;
}

@keyframes og-checkout-spin {
	to { transform: rotate(360deg); }
}

.og-checkout-overlay__title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
}

.og-checkout-overlay__body {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.45;
	color: #555;
}

/* Chi ha chiesto meno animazioni vede comunque che sta succedendo qualcosa. */
@media (prefers-reduced-motion: reduce) {
	.og-checkout-overlay__spinner {
		animation-duration: 2.4s;
	}
}

/* Niente scroll dietro l'overlay. */
body.og-checkout-processing {
	overflow: hidden;
}
