/*
 * Modal informativo mientras WooCommerce procesa el checkout con Payment Hub seleccionado (ver
 * checkout-verificando.js) - independiente del overlay de bloqueo nativo de WooCommerce
 * (form.checkout.processing), que no muestra texto por defecto y varia de aspecto segun el
 * tema. Este modal se ve siempre igual sin importar el tema del sitio, y al cubrir toda la
 * pantalla deja claro que la donacion se esta procesando de verdad (evita que alguien haga doble
 * clic o recargue la pagina pensando que el checkout se congelo).
 */
.ph-modal-verificando {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 32, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.ph-modal-verificando--visible {
	opacity: 1;
	pointer-events: auto;
}

.ph-modal-verificando__tarjeta {
	width: 100%;
	max-width: 340px;
	padding: 32px 28px;
	border-radius: 16px;
	background: #fff;
	text-align: center;
	box-shadow: 0 20px 48px rgba(15, 23, 32, 0.28);
	transform: translateY(10px) scale(0.97);
	transition: transform 0.25s ease;
}

.ph-modal-verificando--visible .ph-modal-verificando__tarjeta {
	transform: translateY(0) scale(1);
}

.ph-modal-verificando__logo {
	width: 56px;
	height: 56px;
	margin-bottom: 16px;
}

.ph-modal-verificando__spinner {
	width: 30px;
	height: 30px;
	margin: 0 auto 18px;
	border: 3px solid rgba(30, 89, 128, 0.18);
	border-top-color: #1e5980;
	border-radius: 50%;
	animation: ph-modal-verificando-girar 0.8s linear infinite;
}

.ph-modal-verificando__titulo {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 600;
	color: #16324a;
}

.ph-modal-verificando__mensaje {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #5a6773;
}

@keyframes ph-modal-verificando-girar {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ph-modal-verificando__spinner {
		animation: none;
	}
}
