.sopr-exchange,
.sopr-exchange * {
	box-sizing: border-box;
	letter-spacing: 0;
}

.sopr-exchange {
	--sopr-form-bg: #203f72;
	--sopr-blue: #19519e;
	--sopr-blue-hover: #1d60b8;
	--sopr-white: #ffffff;
	--sopr-input-text: #dce7f6;
	--sopr-error: #ffb0b0;
	--sopr-modal-navy: #172640;
	--sopr-modal-surface: #d9dde3;
	--sopr-modal-ink: #17243d;
	width: 100%;
	direction: rtl;
	font-family: inherit;
}

.sopr-request-form {
	width: 100%;
	max-width: 1147px;
	margin: 0 auto;
	padding: 18px 8px 31px;
	color: var(--sopr-white);
	border: 0;
	border-radius: 0;
}

.sopr-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

.sopr-field {
	position: relative;
	min-width: 0;
}

.sopr-field label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sopr-field input:not([type="hidden"]) {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
	height: 53px;
	margin: 0;
	padding: 16px 24px;
	gap: 10px;
	color: var(--sopr-input-text);
	background: rgba(177, 210, 255, 0.04);
	border: 1px solid rgba(177, 210, 255, 0.19);
	border-radius: 9999px;
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	text-align: right;
	outline: none;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.sopr-field input::placeholder {
	color: var(--sopr-input-text);
	opacity: 0.9;
}

.sopr-field input:focus {
	border-color: rgba(177, 210, 255, 0.58);
}

.sopr-field.has-error input:not([type="hidden"]) {
	border-color: rgba(255, 176, 176, 0.9);
}

.sopr-field-error {
	position: absolute;
	top: 57px;
	right: 24px;
	left: 24px;
	display: block;
	color: var(--sopr-error);
	font-size: 11px;
	line-height: 1.5;
	text-align: right;
}

.sopr-form-status:empty,
.sopr-otp-status:empty {
	display: none;
}

.sopr-form-status {
	margin: -10px 16px 14px;
	color: var(--sopr-white);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.7;
	text-align: center;
}

.sopr-form-status.is-error {
	color: var(--sopr-error);
}

.sopr-submit-button {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 61px;
	margin: 0;
	padding: 16px 24px;
	gap: 5px;
	color: var(--sopr-white);
	background: #19519E;
	border: 0;
	border-radius: 9999px;
	box-shadow: 0 4px 16px rgba(25, 81, 158, 0.4);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.sopr-submit-button:hover {
	background: var(--sopr-blue-hover);
	box-shadow: 0 6px 20px rgba(25, 81, 158, 0.5);
}

.sopr-submit-button:focus-visible,
.sopr-verify-button:focus-visible,
.sopr-resend-button:focus-visible,
.sopr-edit-mobile-button:focus-visible {
	outline: 3px solid rgba(25, 81, 158, 0.28);
	outline-offset: 3px;
}

.sopr-submit-button[aria-disabled="true"],
.sopr-verify-button[aria-disabled="true"],
.sopr-resend-button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.sopr-button-spinner {
	display: none;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: currentColor;
	border-radius: 50%;
	animation: sopr-spin 700ms linear infinite;
}

.is-loading .sopr-button-spinner {
	display: inline-block;
}

.sopr-modal[hidden],
.sopr-modal-content[hidden],
.sopr-resend-button[hidden],
.sopr-otp-timer-label[hidden] {
	display: none;
}

.sopr-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
}

.sopr-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 14, 31, 0.8);
	backdrop-filter: blur(2px);
}

.sopr-modal-panel {
	position: relative;
	z-index: 1;
	width: min(100%, 520px);
	color: var(--sopr-modal-ink);
	border: 0;
	border-radius: 18px;
	text-align: center;
}

.sopr-modal-content {
	width: 100%;
	padding: 43px 40px 35px;
	background: var(--sopr-modal-surface);
	border-radius: 42px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.sopr-modal-content h2 {
	margin: 0 0 20px;
	color: #1D2A3D;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.5;
}

.sopr-modal-lead,
.sopr-success-view p {
	margin: 0;
	color: #314158;
	font-size: 16px;
	font-weight: 400;
	line-height: 2;
}

.sopr-otp-entry-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin-top: 32px;
}

.sopr-otp-inputs {
	display: grid;
	grid-template-columns: repeat(4, 60px);
	gap: 14px;
	margin: 0;
}

.sopr-otp-digit {
	display: block;
	width: 60px;
	height: 60px;
	padding: 0;
	color: var(--sopr-blue);
	background: #c8d1df;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	font: inherit;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	outline: none;
	transition: box-shadow 160ms ease, background-color 160ms ease;
}

.sopr-otp-digit::placeholder {
	color: #9da8b8;
	font-size: 14px;
	opacity: 0.75;
}

.sopr-otp-digit:focus {
	background: #19519E1A;
}

.sopr-verify-button {
	position: relative;
	display: inline-flex;
	flex: 0 0 126px;
	align-items: center;
	justify-content: center;
	width: 126px;
	height: 60px;
	padding: 12px 20px;
	gap: 7px;
	color: var(--sopr-blue);
	background: #19519E1A;
	border-radius: 9999px;
	box-shadow: none;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
	overflow: hidden;
	transition: color 160ms ease, background-color 160ms ease, opacity 160ms ease;
	border: none;
}

.sopr-verify-button[aria-disabled="true"] {
	opacity: 1;
}

.sopr-verify-button.active,
.sopr-verify-button.active:hover {
	color: var(--sopr-white);
	background: var(--sopr-blue);
}

.sopr-verify-button .sopr-button-spinner {
	border-color: rgba(25, 81, 158, 0.35);
	border-top-color: currentColor;
}

.sopr-verify-button.active .sopr-button-spinner {
	border-color: rgba(255, 255, 255, 0.4);
	border-top-color: currentColor;
}

.sopr-verify-progress {
	position: absolute;
	inset: 0;
	padding: 2px;
	border-radius: inherit;
	pointer-events: none;
	background: conic-gradient(
		from -90deg,
		var(--sopr-blue) calc(var(--sopr-progress, 0) * 1%),
		transparent 0
	);
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}

.sopr-verify-progress span {
	display: none;
}

.sopr-otp-status {
	min-height: 24px;
	margin: 10px 0 0;
	color: #b4232c;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.7;
	text-align: center;
}

.sopr-otp-status.is-success {
	color: #21623b;
}

.sopr-otp-meta {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	min-height: 24px;
	margin-top: 16px;
}

.sopr-otp-resend-area {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 24px;
}

.sopr-otp-timer-label {
	color: #7f8999;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.7;
	white-space: nowrap;
}

.sopr-otp-timer {
	display: inline-block;
	font-variant-numeric: tabular-nums;
	direction: ltr;
}

.sopr-resend-button,
.sopr-edit-mobile-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	margin: 0;
	padding: 0;
	gap: 6px;
	color: var(--sopr-blue);
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font: inherit;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.7;
	cursor: pointer;
}

.sopr-resend-button:hover,
.sopr-edit-mobile-button:hover {
	color: #0d438f;
	text-decoration: underline;
}

.sopr-resend-button .sopr-button-spinner {
	width: 14px;
	height: 14px;
	border-color: rgba(25, 81, 158, 0.3);
	border-top-color: currentColor;
}

.sopr-success-view {
	padding-top: 46px;
	padding-bottom: 46px;
}

.sopr-success-view h2 {
	margin-bottom: 20px;
}

.sopr-success-view p {
	font-size: 14px;
}

.sopr-modal.is-success .sopr-modal-panel {
	width: min(100%, 680px);
}

body.sopr-modal-open {
	overflow: hidden;
}

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

@media (max-width: 760px) {
	.sopr-request-form {
		padding: 18px 16px 24px;
		border-radius: 0;
	}

	.sopr-form-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		margin-bottom: 16px;
	}

	.sopr-field-error {
		position: static;
		padding: 3px 20px 0;
	}

	.sopr-modal {
		padding: 12px;
	}

	.sopr-modal-panel {
		padding: 8px;
		border-radius: 16px;
	}

	.sopr-modal-content {
		padding: 30px 16px 24px;
		border-radius: 28px;
	}

	.sopr-modal-content h2 {
		margin-bottom: 14px;
		font-size: 22px;
	}

	.sopr-modal-lead,
	.sopr-success-view p {
		font-size: 14px;
		line-height: 1.9;
	}

	.sopr-otp-entry-row {
		flex-direction: column;
		gap: 18px;
		margin-top: 24px;
	}

	.sopr-otp-inputs {
		grid-template-columns: repeat(4, 52px);
		gap: 9px;
	}

	.sopr-otp-digit {
		width: 52px;
		height: 52px;
	}

	.sopr-verify-button {
		width: min(100%, 180px);
		height: 52px;
		flex-basis: 52px;
	}

	.sopr-otp-meta {
		margin-top: 8px;
	}

	.sopr-success-view {
		padding-top: 38px;
		padding-bottom: 38px;
	}

	.sopr-submit-button {
		font-size: 16px;
		height: 50px;
	}

	.sopr-field input:not([type="hidden"]) {
		height: 40px;
		min-height: 40px;
	}

	.sopr-field input::placeholder {
		font-size: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sopr-exchange * {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
