/**
 * Phone OTP login UI — RTL, Woodmart-friendly.
 * Hides the original username/password controls inside any WooCommerce
 * login form and leaves only the injected .pol-otp-box.
 */

/* The OTP box is the only visible child of the login form. */
.woocommerce-form-login > :not(.pol-otp-box) {
	display: none !important;
}

/* Never hide the form wrapper itself (Woodmart toggles .hidden-form). */
.pol-otp-box {
	direction: rtl;
	text-align: right;
}

.pol-otp-box .form-row {
	margin-bottom: 15px;
}

.pol-otp-box label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.pol-otp-box input.pol-phone,
.pol-otp-box input.pol-code {
	width: 100%;
	text-align: left; /* digits read LTR */
	letter-spacing: 1px;
}

.pol-otp-box input.pol-code {
	font-size: 1.35em;
	text-align: center;
	letter-spacing: 8px;
}

.pol-otp-box input.pol-invalid {
	border-color: #d63638;
}

.pol-otp-box .pol-send,
.pol-otp-box .pol-verify {
	width: 100%;
	margin-top: 4px;
}

.pol-otp-box .pol-sent-msg {
	margin: 0 0 12px;
	font-size: 0.95em;
	opacity: 0.85;
}

.pol-otp-box .pol-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	font-size: 0.9em;
}

.pol-otp-box .pol-countdown {
	opacity: 0.7;
}

.pol-otp-box .pol-msg {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 0.95em;
}

.pol-otp-box .pol-msg-error {
	background: rgba(214, 54, 56, 0.08);
	color: #b32d2e;
	border: 1px solid rgba(214, 54, 56, 0.35);
}

.pol-otp-box .pol-msg-ok {
	background: rgba(0, 163, 42, 0.08);
	color: #007a1f;
	border: 1px solid rgba(0, 163, 42, 0.35);
}

/* Elements with [hidden] must actually hide even against theme display rules. */
.pol-otp-box [hidden],
.pol-otp-box.pol-hidden {
	display: none !important;
}
