/* LD OTP Verification — Minimal UI v1.0.4
   Designed to look native inside any Elementor form. */

/* -------------------------------------------------------------------------
   Wrapper
   ------------------------------------------------------------------------- */
.ld-otp-wrap {
	width: 100%;
}

/* -------------------------------------------------------------------------
   Phone input row — looks like one seamless input field
   ------------------------------------------------------------------------- */
.ld-otp-phone-row {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--e-global-color-text, #d4d4d4);
	border-radius: 3px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s;
}

.ld-otp-phone-row:focus-within {
	border-color: #aaa;
}

.ld-otp-prefix {
	display: flex;
	align-items: center;
	padding: 0 12px;
	font-size: 14px;
	color: #777;
	background: #fafafa;
	border-right: 1px solid #e5e5e5;
	white-space: nowrap;
	flex-shrink: 0;
	user-select: none;
}

.ld-otp-phone-input {
	flex: 1 1 0;
	min-width: 0;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 10px 12px !important;
	font-size: 14px;
	background: transparent;
	color: #333;
}

.ld-otp-phone-input[readonly] {
	color: #555;
	cursor: default;
}

/* "Send OTP" — simple text link inside the row */
.ld-otp-send-btn {
	display: flex;
	align-items: center;
	padding: 0 14px;
	border: none;
	border-left: 1px solid #e5e5e5;
	background: none;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.15s, background 0.15s;
	flex-shrink: 0;
}

.ld-otp-send-btn:hover:not(:disabled) {
	color: #222;
	background: #f5f5f5;
}

.ld-otp-send-btn:disabled {
	color: #aaa;
	cursor: not-allowed;
}

/* -------------------------------------------------------------------------
   OTP verify section (shown after Send)
   ------------------------------------------------------------------------- */
.ld-otp-verify-section {
	margin-top: 8px;
}

.ld-otp-code-row {
	display: flex;
	align-items: stretch;
	border: 1px solid #d4d4d4;
	border-radius: 3px;
	background: #fff;
	overflow: hidden;
}

.ld-otp-code-input {
	flex: 1 1 0;
	min-width: 0;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 10px 12px !important;
	font-size: 15px;
	letter-spacing: 6px;
	background: transparent;
	color: #333;
}

/* "Verify OTP" — mirrors the Send button style */
.ld-otp-verify-btn {
	display: flex;
	align-items: center;
	padding: 0 14px;
	border: none;
	border-left: 1px solid #e5e5e5;
	background: none;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.15s, background 0.15s;
	flex-shrink: 0;
}

.ld-otp-verify-btn:hover:not(:disabled) {
	color: #222;
	background: #f5f5f5;
}

.ld-otp-verify-btn:disabled {
	color: #aaa;
	cursor: not-allowed;
}

/* -------------------------------------------------------------------------
   Timer + Resend row
   ------------------------------------------------------------------------- */
.ld-otp-timer-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 5px;
	padding-left: 2px;
}

.ld-otp-timer {
	font-size: 11px;
	color: #999;
}

.ld-otp-resend-btn {
	background: none;
	border: none;
	padding: 0;
	font-size: 12px;
	color: #666;
	cursor: pointer;
	text-decoration: underline;
}

.ld-otp-resend-btn:hover {
	color: #333;
}

/* -------------------------------------------------------------------------
   Status messages — small, below the field
   ------------------------------------------------------------------------- */
.ld-otp-message {
	margin-top: 4px;
	padding: 0 2px;
	font-size: 12px;
	line-height: 1.4;
	display: none;
}

.ld-otp-msg-error   { color: #c0392b; display: block; }
.ld-otp-msg-success { color: #27ae60; display: block; }
.ld-otp-msg-verified {
	color: #27ae60;
	font-weight: 600;
	font-size: 13px;
	display: block;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 480px) {
	.ld-otp-send-btn,
	.ld-otp-verify-btn {
		padding: 0 10px;
		font-size: 12px;
	}
}
