/* Conversion Pro — reusable OTP modal (module 1)
 * Re-skinned to match www.buy.stickme.in's actual "Log In" dialog exactly
 * (captured via getComputedStyle() on the live reference): plain white
 * sheet, bold black "Log In" title + plain-text instructional line, red
 * #C4080E required-marker labels, subtly-rounded #6C7778-bordered input,
 * solid red pill-shaped submit button. Deliberately plain — no icons, no
 * extra chrome — matching the reference's own minimal one-field-at-a-time
 * design. */

.cvp-otp-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100010;
	align-items: center;
	justify-content: center;
	font-family: Inter, -apple-system, sans-serif;
}

.cvp-otp-modal.is-open {
	display: flex;
}

.cvp-otp-modal__panel {
	background: #fff;
	border-radius: 8px;
	padding: 20px 24px 24px;
	width: 360px;
	max-width: 90vw;
	position: relative;
}

.cvp-otp-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #eee;
	margin: 0 -24px 16px;
	padding: 0 24px 14px;
}

.cvp-otp-modal__title {
	font-size: 16px;
	font-weight: 700;
	color: #000;
}

.cvp-otp-modal__subtitle {
	font-size: 15px;
	font-weight: 500;
	color: #000;
	margin: 0 0 16px;
}

.cvp-otp-modal__panel label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 6px;
	color: #C4080E;
}

.cvp-otp-required {
	color: #C4080E;
}

.cvp-otp-modal__panel input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #6C7778;
	border-radius: 4px;
	font-size: 16px;
	margin-bottom: 14px;
	box-sizing: border-box;
	font-family: inherit;
}

.cvp-otp-modal__panel input:focus {
	outline: none;
	border-color: #C4080E;
	box-shadow: 0 0 0 1px #C4080E;
}

/* v0.19.32: phone-number and OTP-code digits specifically — larger, bold,
 * and letter-spaced so what the shopper typed/received is unambiguous at a
 * glance, per direct request after live use. Scoped to just these two
 * fields (not .cvp-otp-modal__panel input generally) so the email-fallback
 * field and anything else added later keeps the plain, denser style above. */
#cvp-otp-phone,
#cvp-otp-code {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 3px;
	text-align: center;
}

.cvp-otp-step button:not(.cvp-otp-skip) {
	width: 100%;
	background: #C4080E;
	color: #fff;
	border: 1px solid #C4080E;
	padding: 12px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.cvp-otp-step button:not(.cvp-otp-skip):hover {
	opacity: 0.85;
}

.cvp-otp-step button:not(.cvp-otp-skip):disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.cvp-otp-skip {
	background: none;
	border: none;
	color: #999;
	text-decoration: underline;
	cursor: pointer;
	margin-top: 8px;
	font-size: 14px;
}

.cvp-otp-countdown {
	font-size: 13px;
	color: #6C7778;
	margin: 10px 0 0;
	text-align: center;
}

#cvp-otp-resend {
	display: block;
	width: 100%;
	text-align: center;
	color: #C4080E;
	font-weight: 600;
	margin-top: 10px;
}

/* Reset the theme's default button chrome — same fix as the Offers
   drawer's close button (Motta renders bare <button>s as big
   rounded/filled pills otherwise; the reference's close control is a
   plain "×" glyph). */
#cvp-otp-close {
	background: none;
	border: none;
	border-radius: 0;
	width: auto;
	height: auto;
	min-width: 0;
	padding: 0 2px;
	margin: 0;
	position: static;
	font-size: 22px;
	line-height: 1;
	color: #000;
	cursor: pointer;
}
#cvp-otp-close:hover {
	opacity: 0.6;
}

.cvp-otp-error {
	color: #C4080E;
	font-size: 13px;
	margin-top: -6px;
}

.cvp-otp-debug-code {
	font-size: 12px;
	color: #999;
}

/* Proactive COD verification's success state (otp-modal.js's
finishVerification(), 'cod-proactive' source) — a brief checkmark +
confirmation before the modal closes itself, so the shopper sees
verification actually succeeded before returning to Place Order. */
.cvp-otp-step--verified {
	text-align: center;
	padding: 12px 0 4px;
}
.cvp-otp-verified-check {
	width: 48px;
	height: 48px;
	line-height: 48px;
	border-radius: 50%;
	background: #029E4C;
	color: #fff;
	font-size: 26px;
	margin: 0 auto 14px;
}
.cvp-otp-step--verified .cvp-otp-modal__subtitle {
	color: #029E4C;
	font-weight: 600;
}

/* Mobile: bottom sheet, same pattern used by the size-visualizer popup (module 5) */
@media ( max-width: 480px ) {
	.cvp-otp-modal {
		align-items: flex-end;
	}
	.cvp-otp-modal__panel {
		width: 100%;
		border-radius: 12px 12px 0 0;
	}
}

/* Replacement prompt shown in place of WooCommerce's native login/register
 * form on My Account (and anywhere else that form renders) — see
 * account-login-otp.js. Kept visually consistent with the modal above
 * rather than a separate design language. */
.cvp-account-otp-prompt {
	border: 1px solid #E4E4E4;
	border-radius: 8px;
	padding: 20px;
	max-width: 360px;
	font-family: Inter, -apple-system, sans-serif;
}

.cvp-account-otp-prompt__heading {
	margin: 0 0 14px;
	color: #333;
	font-size: 14px;
	line-height: 1.4;
}

.cvp-account-otp-prompt__btn {
	background: #C4080E;
	color: #fff;
	border: none;
	border-radius: 24px;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.cvp-account-otp-prompt__btn:hover {
	opacity: 0.9;
}
