/* Edmium OTP Gate - scoped to .edmium-otp so nothing else on the page shifts. */

.edmium-otp {
	margin: 8px 0 14px;
	font-size: 14px;
}

.edmium-otp__preview {
	margin: 0 0 8px;
	padding: 6px 10px;
	border-left: 3px solid #d98b00;
	background: #fff8e6;
	color: #7a4e00;
	font-size: 12px;
}

.edmium-otp__row,
.edmium-otp__entry {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.edmium-otp__entry {
	margin-top: 8px;
}

/* The code entry only appears once an OTP has actually been sent. */
.edmium-otp[data-state="idle"] .edmium-otp__entry {
	display: none;
}

.edmium-otp[data-state="verified"] .edmium-otp__entry {
	display: none;
}

.edmium-otp__send,
.edmium-otp__verify {
	padding: 9px 16px;
	border: 0;
	border-radius: 4px;
	background: #1c3f94;
	color: #fff;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
}

.edmium-otp__send:hover:not(:disabled),
.edmium-otp__verify:hover:not(:disabled) {
	background: #16336f;
}

.edmium-otp__send:disabled,
.edmium-otp__verify:disabled {
	background: #9aa5bd;
	cursor: not-allowed;
}

.edmium-otp__code {
	width: 170px;
	padding: 9px 12px;
	border: 1px solid #c9ced8;
	border-radius: 4px;
	font-size: 14px;
	letter-spacing: 2px;
}

.edmium-otp__note {
	font-size: 13px;
	line-height: 1.4;
}

.edmium-otp__note[data-kind="ok"] {
	color: #1a7f37;
}

.edmium-otp__note[data-kind="error"] {
	color: #b32d2e;
}

.edmium-otp__note[data-kind="warn"] {
	color: #8a6100;
}

.edmium-otp[data-state="verified"] .edmium-otp__note[data-kind="ok"]::before {
	content: "\2713\00a0";
	font-weight: 700;
}

@media (max-width: 480px) {
	.edmium-otp__code {
		width: 100%;
	}

	.edmium-otp__send,
	.edmium-otp__verify {
		width: 100%;
	}
}
