.otpl-box [hidden],
.otpl-modal[hidden] { display: none !important; }

.otpl-box { max-width: 380px; margin: 0 auto; font-size: 15px; box-sizing: border-box; }
.otpl-box * { box-sizing: border-box; }

.otpl-tabs { display: flex; border-bottom: 2px solid #e5e7eb; margin-bottom: 18px; }
.otpl-tabs button {
	flex: 1; padding: 10px; background: none; border: 0; cursor: pointer;
	font-weight: 600; color: #6b7280; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.otpl-tabs button.is-active { color: #111827; border-bottom-color: #111827; }

.otpl-box input[type=text],
.otpl-box input[type=email] {
	width: 100%; padding: 12px 14px; margin: 0 0 12px; border: 1px solid #d1d5db;
	border-radius: 6px; font-size: 15px; background: #fff; color: #111827;
}
.otpl-box input[name=otp] { text-align: center; letter-spacing: 8px; font-size: 22px; }

.otpl-btn {
	width: 100%; padding: 12px; border: 0; border-radius: 6px; cursor: pointer;
	background: #111827; color: #fff; font-size: 15px; font-weight: 600;
}
.otpl-btn:disabled { opacity: .6; cursor: wait; }

.otpl-sent { margin: 0 0 12px; color: #374151; }
.otpl-links { text-align: center; margin: 12px 0 0; color: #9ca3af; }
.otpl-link { background: none; border: 0; padding: 0 4px; cursor: pointer; color: #2563eb; font-size: 14px; }
.otpl-link:disabled { color: #9ca3af; cursor: default; }

.otpl-msg { min-height: 20px; margin: 12px 0 0; text-align: center; font-size: 14px; }
.otpl-msg.is-error { color: #b91c1c; }
.otpl-msg.is-ok { color: #047857; }

/* Popup */
.otpl-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.otpl-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.otpl-modal__dialog {
	position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 10px;
	padding: 28px 24px 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.otpl-modal__close {
	position: absolute; top: 8px; right: 12px; background: none; border: 0;
	font-size: 28px; line-height: 1; cursor: pointer; color: #6b7280;
}
html.otpl-lock { overflow: hidden; }

.otpl-buttons a { margin-right: 10px; }
