/**
 * Velora Pay – payment method at checkout and the redirect loading screen.
 * Kept deliberately light so it blends with any theme.
 */

/* ---------- Card logos next to the title ---------- */

.velora-pay-block-label {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
}

.velora-pay-block-label > div {
	display: inline-flex;
}

.velora-marks {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-inline-start: 8px;
	vertical-align: middle;
	line-height: 1;
}

.velora-pay-block-label .velora-marks {
	margin-inline-start: 0;
}

.velora-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 34px;
	height: 22px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
}

.velora-mark--visa {
	color: #1a1f71;
	font-size: 10.5px;
	font-style: italic;
	font-weight: 900;
}

.velora-mark--amex {
	border-color: #2671b9;
	background: #2671b9;
	color: #fff;
	font-size: 8.5px;
	letter-spacing: 0.04em;
}

.velora-mark--mastercard {
	position: relative;
}

.velora-mark--mastercard i {
	position: absolute;
	top: 5px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.velora-mark--mastercard i:first-child {
	left: 6px;
	background: #eb001b;
}

.velora-mark--mastercard i:last-child {
	left: 13px;
	background: #f79e1b;
	opacity: 0.9;
}

/* ---------- Note under the payment method ---------- */

.velora-checkout-note__desc p:last-child {
	margin-bottom: 8px;
}

.velora-checkout-note .velora-checkout-note__text {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 0;
	font-size: 0.92em;
	line-height: 1.5;
	opacity: 0.85;
}

.velora-checkout-note__text svg {
	flex: none;
	margin-top: 0.25em;
}

.velora-pay-test-notice {
	display: inline-block;
	margin: 8px 0 0 !important;
	padding: 3px 8px;
	border-radius: 4px;
	background: #fff4e6;
	color: #8a5300;
	font-size: 0.8em;
}

/* ---------- Redirect loading screen ---------- */

html.velora-redirecting,
html.velora-redirecting body {
	overflow: hidden !important;
}

.velora-redirect {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	/* Colours are set at runtime from the store's own theme (see redirect-overlay.js);
	   these are safe fallbacks for the first paint. */
	background: var(--velora-backdrop, rgba(255, 255, 255, 0.94));
	opacity: 0;
	transition: opacity 0.14s ease;
}

.velora-redirect[hidden] {
	display: none !important;
}

.velora-redirect.is-visible {
	opacity: 1;
}

.velora-redirect__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
	transform: translateY(6px);
	transition: transform 0.2s ease;
}

.velora-redirect.is-visible .velora-redirect__inner {
	transform: none;
}

.velora-redirect__spinner {
	width: 34px;
	height: 34px;
	border: 3px solid var(--velora-track, rgba(0, 0, 0, 0.12));
	border-top-color: var(--velora-accent, #635bff);
	border-radius: 50%;
	animation: velora-spin 0.7s linear infinite;
}

.velora-redirect .velora-redirect__text {
	margin: 0;
	color: var(--velora-text, #30313d);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.4;
}

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

@media (prefers-reduced-motion: reduce) {
	.velora-redirect {
		transition: none;
	}

	.velora-redirect__spinner {
		animation-duration: 1.6s;
	}
}
