/*
 * The shared "please wait" window (Paul, 2026-10-21) — js/wayvo-wait-window.js.
 * Used on the checkout (more than 5 gift cards) and the product page (adding
 * more than 10 business gift cards). Enqueued by wayvo_wait_window_enqueue().
 */

/* It replaces WooCommerce's spinner where there is one; the overlay under it
   stays, so the form still can't be clicked. */
body.wv-cp-open .blockUI::before,
body.wv-cp-open #revolutBlockUI {
	display: none !important;
}

/* Below Revolut's own frames (bank verification), which sit at the top of
   the stack, so they can always open over it. */
.wv-cp {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(16, 16, 17, 0.45);
	opacity: 0;
	transition: opacity 200ms ease;
	outline: none;
}

.wv-cp.is-visible {
	opacity: 1;
}

.wv-cp__panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 380px;
	padding: 32px 28px 26px;
	border-radius: 20px;
	background: var(--wv-white, #fff);
	color: var(--wv-ink, #101011);
	font-family: var(--wv-btn-font, sans-serif);
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
	transform: translateY(8px);
	transition: transform 200ms ease;
}

.wv-cp.is-visible .wv-cp__panel {
	transform: none;
}

.wv-cp__spinner {
	width: 34px;
	height: 34px;
	margin-bottom: 20px;
	border-radius: 50%;
	border: 3px solid var(--wv-grey-300, #e5e5e5);
	border-top-color: var(--wv-ink, #101011);
	animation: wv-cp-spin 0.8s linear infinite;
}

@keyframes wv-cp-spin {
	to { transform: rotate(360deg); }
}

/* Two lines tall whatever the message, so the panel doesn't jump as the
   messages change. */
.wv-cp__message {
	min-height: 2.8em;
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 500;
	transition: opacity 250ms ease;
}

.wv-cp__message.is-changing {
	opacity: 0;
}

.wv-cp__keep {
	margin: 0;
	font-size: 14px;
	color: var(--wv-grey-500, #8d8b8b);
}

@media (prefers-reduced-motion: reduce) {
	.wv-cp__spinner {
		animation-duration: 3s;
	}
}
