/**
 * Currency Converter — Xe widget shell.
 */

.sn-currency-converter {
	max-width: 42rem;
	margin-inline: auto;
}

.sn-currency-converter__card {
	position: relative;
	min-height: 22rem;
	padding: 1.25rem;
	background: var(--sn-surface-muted, #f8fafc);
	border: 1px solid var(--sn-border, #e2e8f0);
	border-radius: 1rem;
	box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.12);
	overflow: hidden;
}

.sn-currency-converter__frame {
	display: block;
	width: 100%;
	min-height: 21.875rem;
	border: 0;
	background: #fff;
	border-radius: 0.75rem;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.sn-currency-converter.is-loaded .sn-currency-converter__frame {
	opacity: 1;
}

.sn-currency-converter__loader {
	position: absolute;
	inset: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 0.75rem;
	z-index: 1;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sn-currency-converter.is-loaded .sn-currency-converter__loader {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.sn-currency-converter__spinner {
	width: 2.5rem;
	height: 2.5rem;
	border: 3px solid #e2e8f0;
	border-top-color: #2b7ddb;
	border-radius: 50%;
	animation: sn-currency-spin 0.8s linear infinite;
}

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

.sn-currency-converter__credit {
	margin-top: 0.875rem;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--sn-text-muted, #64748b);
	text-align: center;
}

.sn-currency-converter__credit a {
	color: #0f766e;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sn-currency-converter__noscript {
	margin: 0;
	padding: 1rem;
	font-size: 0.9375rem;
	text-align: center;
}

@media (max-width: 480px) {
	.sn-currency-converter__card {
		padding: 0.75rem;
		min-height: 20rem;
	}

	.sn-currency-converter__frame,
	.sn-currency-converter__loader {
		min-height: 19rem;
	}

	.sn-currency-converter__loader {
		inset: 0.75rem;
	}
}
