/* OTP verification popup for the "BUILD YOUR OWN" story form */

.tbi-otp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 16px;
}

.tbi-otp-overlay.is-open {
	display: flex;
}

.tbi-otp-modal {
	background: #fff;
	width: 100%;
	max-width: 420px;
	border-radius: 14px;
	padding: 32px 28px 26px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	text-align: center;
	font-family: inherit;
	animation: tbi-otp-pop 0.18s ease-out;
}

@keyframes tbi-otp-pop {
	from { transform: translateY(12px) scale(0.98); opacity: 0; }
	to   { transform: translateY(0) scale(1); opacity: 1; }
}

.tbi-otp-title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: #1e293b;
}

.tbi-otp-sub {
	margin: 0 0 18px;
	font-size: 14px;
	color: #64748b;
	line-height: 1.4;
}

.tbi-otp-input {
	width: 100%;
	font-size: 24px;
	letter-spacing: 8px;
	text-align: center;
	padding: 12px 14px;
	border: 2px solid #d6e0ff;
	border-radius: 10px;
	outline: none;
	color: #1b3aa5;
	font-weight: 600;
	transition: border-color 0.15s ease;
}
.tbi-otp-input:focus { border-color: #1b3aa5; }
.tbi-otp-input:disabled { background: #f1f5f9; color: #94a3b8; }

.tbi-otp-status {
	min-height: 20px;
	margin: 10px 0 4px;
	font-size: 13px;
	font-weight: 500;
}
.tbi-otp-status.is-error { color: #dc2626; }
.tbi-otp-status.is-success { color: #16a34a; }

.tbi-otp-timer {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 16px;
}
.tbi-otp-countdown { font-weight: 700; color: #1e293b; }
.tbi-otp-timer.is-expired .tbi-otp-countdown { color: #dc2626; }

.tbi-otp-verify {
	width: 100%;
	border: 0;
	border-radius: 10px;
	background: #1b3aa5;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	padding: 13px 16px;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}
.tbi-otp-verify:hover { background: #16307f; }
.tbi-otp-verify:disabled { opacity: 0.6; cursor: not-allowed; }

.tbi-otp-resend-row {
	margin-top: 16px;
	font-size: 13px;
	color: #64748b;
}

.tbi-otp-resend {
	border: 0;
	background: transparent;
	color: #1b3aa5;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}
.tbi-otp-resend:disabled {
	color: #94a3b8;
	cursor: not-allowed;
	text-decoration: none;
}
