/*
 * OTP login form (shortcode `[pp_otp_login]` and its Elementor widget).
 *
 * Deliberately minimal and theme-neutral: the form is placed inside whatever
 * column a theme provides, so it must not assume a width, a font family or a
 * background. Only the pieces a theme cannot supply — the field rhythm, the
 * status message tones and the numeric input direction — are set here.
 */

.pp-otp-login {
	max-width: 380px;
	margin: 0 0 16px;
}

.pp-otp-title {
	margin: 0 0 12px;
	font-size: 17px;
	line-height: 1.5;
}

.pp-otp-signed-in {
	margin: 0;
	color: #50575e;
}

/* Status messages: one shape, four tones. */
.pp-otp-notice {
	margin: 0 0 12px;
	padding: 8px 12px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #f6f7f7;
	font-size: 13px;
	line-height: 1.8;
}

.pp-otp-notice.is-success {
	border-color: #b8e0bf;
	background: #f3fbf4;
	color: #1d5c28;
}

.pp-otp-notice.is-warning {
	border-color: #e0c98a;
	background: #fcf9e8;
	color: #7a5c00;
}

.pp-otp-notice.is-error {
	border-color: #e6b3b5;
	background: #fcf0f1;
	color: #8a2424;
}

.pp-otp-form {
	margin: 0 0 8px;
}

.pp-otp-field {
	margin: 0 0 10px;
}

.pp-otp-field label {
	display: block;
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
}

.pp-otp-field input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 9px 12px;
	border: 1px solid #c9cccf;
	border-radius: 4px;
	font-size: 15px;
	/* The number is Latin digits read left to right even on an RTL page. */
	text-align: left;
}

.pp-otp-field input:focus {
	border-color: var(--wd-primary-color, #2271b1);
	outline: 1px solid var(--wd-primary-color, #2271b1);
}

.pp-otp-field input:disabled {
	background: #f0f0f1;
	color: #8c8f94;
}

.pp-otp-actions {
	margin: 0 0 8px;
}

.pp-otp-submit {
	width: 100%;
	cursor: pointer;
}

.pp-otp-submit:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.pp-otp-hint {
	margin: 0 0 10px;
	color: #50575e;
	font-size: 13px;
	line-height: 1.8;
}

.pp-otp-cancel {
	margin: 0;
	text-align: center;
}

.pp-otp-cancel .button-link {
	padding: 0;
	border: 0;
	background: none;
	color: #646970;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

/* The code input is the one field a customer reads off a phone screen and types
 * back, so it gets a little more room and letter-spacing than a normal field. */
#pp_otp_code {
	font-size: 20px;
	letter-spacing: 0.25em;
}
