/*
 * Nevogate wallet authentication modal – a modális 3DS iframe stílusa.
 *
 */

.nvg-wallet-auth-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483000;
	display: none;
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: #222;
}

.nvg-wallet-auth-modal.is-open {
	display: block;
}

.nvg-wallet-auth-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.6);
	animation: nvg-wallet-auth-modal-fade-in 0.2s ease-out;
}

.nvg-wallet-auth-modal__container {
	display: flex;
	flex-direction: column;
	width: 500px;
	max-width: 100%;
	height: 600px;
	max-height: 100%;
	overflow: hidden;
	box-sizing: border-box;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	animation: nvg-wallet-auth-modal-slide-in 0.2s ease-out;
}

/* A view a loader és az iframe közös konténere: az iframe 100%-ot kap. */
.nvg-wallet-auth-modal__view {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	background: #fff;
}

.nvg-wallet-auth-modal__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.nvg-wallet-auth-modal__status {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 16px;
	box-sizing: border-box;
	text-align: center;
	background: #fff;
}

.nvg-wallet-auth-modal__status.is-visible {
	display: flex;
}

.nvg-wallet-auth-modal__spinner {
	width: 44px;
	height: 44px;
	border: 3px solid #d8e2ee;
	border-top-color: #1b76d2;
	border-radius: 50%;
	animation: nvg-wallet-auth-modal-spin 0.9s linear infinite;
}

.nvg-wallet-auth-modal__status-text {
	max-width: 22em;
	color: #5c6b7a;
}

/*
 * A 3DS challenge ablakok jellemzően 390x400 vagy 500x600 méretre vannak
 * tervezve; kis kijelzőn a modál teljes képernyős lesz, hogy a challenge
 * ne kapjon görgetősávot.
 */
@media (max-width: 560px), (max-height: 660px) {
	.nvg-wallet-auth-modal__overlay {
		padding: 0;
	}

	.nvg-wallet-auth-modal__container {
		width: 100%;
		height: 100%;
		border-radius: 0;
	}
}

@keyframes nvg-wallet-auth-modal-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes nvg-wallet-auth-modal-slide-in {
	from { transform: translateY(12px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

@keyframes nvg-wallet-auth-modal-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.nvg-wallet-auth-modal__overlay,
	.nvg-wallet-auth-modal__container {
		animation: none;
	}

	.nvg-wallet-auth-modal__spinner {
		animation-duration: 2.5s;
	}
}
