/* CRC Maesta — OTP panel.
   Scoped tightly so it doesn't collide with Bootstrap's .modal or the theme's
   .form-control rules. */

.crc-otp {
	margin: 14px 0 0;
	padding: 16px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	background: rgba(185, 145, 69, 0.06);
	text-align: left;
	font-size: 14px;
	line-height: 1.5;
}

.crc-otp[hidden] { display: none; }

.crc-otp__lead {
	margin: 0 0 12px;
	font-size: 13px;
}

.crc-otp__num { white-space: nowrap; letter-spacing: 0.04em; }

.crc-otp__edit {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 12px;
	color: #b99145;
	text-decoration: underline;
	cursor: pointer;
}

.crc-otp__boxes { display: flex; gap: 8px; }

.crc-otp .crc-otp__box {
	width: 44px;
	height: 50px;
	min-height: 0;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	color: #10233f;
	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
	line-height: 50px;
	text-align: center;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.crc-otp .crc-otp__box:focus {
	border-color: #b99145;
	box-shadow: 0 0 0 3px rgba(185, 145, 69, 0.3);
	outline: none;
}

.crc-otp .crc-otp__box:disabled { opacity: 0.55; }

.crc-otp__msg {
	min-height: 18px;
	margin: 10px 0 0;
	font-size: 12.5px;
}

.crc-otp__msg[data-tone="error"] { color: #c0392b; }
.crc-otp__msg[data-tone="ok"]    { color: #2e7d5b; }

.crc-otp__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.crc-otp__go {
	padding: 11px 22px;
	border: 0;
	border-radius: 4px;
	background: #b99145;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
}

.crc-otp__go:disabled { opacity: 0.6; cursor: default; }

.crc-otp__resend {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 12.5px;
	color: #1f4b8e;
	text-decoration: underline;
	cursor: pointer;
}

.crc-otp__resend:disabled {
	color: rgba(0, 0, 0, 0.45);
	text-decoration: none;
	cursor: default;
}

.crc-otp__go:focus-visible,
.crc-otp__resend:focus-visible,
.crc-otp__edit:focus-visible {
	outline: 2px solid #b99145;
	outline-offset: 2px;
}

/* The callback section sits on a dark photographic background. */
.maesta-contact .crc-otp {
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.maesta-contact .crc-otp__resend { color: #e6d3a8; }
.maesta-contact .crc-otp__resend:disabled { color: rgba(255, 255, 255, 0.5); }

@media (max-width: 560px) {
	.crc-otp { padding: 14px 12px; }
	.crc-otp__boxes { gap: 6px; }
	.crc-otp .crc-otp__box {
		width: 100%;
		max-width: 46px;
		height: 46px;
		line-height: 46px;
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.crc-otp .crc-otp__box { transition: none; }
}
