/* ==========================================================================
   Custom OTP Register – cor-style.css
   Fully self-contained. No Bootstrap. No framework dependency.
   All layout rules scoped under #customer_login / .cor-* to avoid conflicts.
   ========================================================================== */

/* ── Two-column layout ──────────────────────────────────────────────────── */

#customer_login.cor-login-wrap {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	gap: 40px;
	-webkit-box-align: start;
	    -ms-flex-align: start;
	        align-items: flex-start;
	width: 100%;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

.cor-col {
	-webkit-box-flex: 1;
	    -ms-flex: 1 1 300px;
	        flex: 1 1 300px;
	min-width: 0;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

/* Stack on mobile */
@media (max-width: 600px) {
	#customer_login.cor-login-wrap {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		    -ms-flex-direction: column;
		        flex-direction: column;
		gap: 32px;
	}
	.cor-col {
		-ms-flex-preferred-size: auto;
		    flex-basis: auto;
		width: 100%;
	}
}

/* ── Field groups ───────────────────────────────────────────────────────── */

.cor-field-group {
	margin-bottom: 1rem;
}

.cor-field-group > label,
.cor-field-group .cor-label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

/* ── Input + OTP button row ─────────────────────────────────────────────── */

.cor-input-row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 8px;
	-webkit-box-align: stretch;
	    -ms-flex-align: stretch;
	        align-items: stretch;
}

.cor-input-row .input-text,
.cor-input-row .woocommerce-Input {
	-webkit-box-flex: 1;
	    -ms-flex: 1 1 auto;
	        flex: 1 1 auto;
	min-width: 0;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

/* ── intl-tel-input (iti) integration ──────────────────────────────────── */

.cor-input-row .iti {
	-webkit-box-flex: 1;
	    -ms-flex: 1 1 auto;
	        flex: 1 1 auto;
	min-width: 0;
}

.cor-input-row .iti input[type="tel"] {
	width: 100% !important;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

#reg_phone {
	padding-top: 0.6em;
	padding-bottom: 0.6em;
}

/* ── OTP Buttons ────────────────────────────────────────────────────────── */

.cor-otp-btn {
	-webkit-box-flex: 0;
	    -ms-flex: 0 0 auto;
	        flex: 0 0 auto;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 4px;
	border: 2px solid #1a1a1a;
	background: #1a1a1a;
	color: #fff;
	-webkit-transition: background 0.2s, color 0.2s;
	        transition: background 0.2s, color 0.2s;
	white-space: nowrap;
	line-height: 1.4;
	text-decoration: none;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

.cor-otp-btn:hover {
	background: #333;
	color: #fff;
}

.cor-otp-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.cor-otp-btn--secondary {
	background: transparent;
	color: #1a1a1a;
}

.cor-otp-btn--secondary:hover {
	background: #f0f0f0;
	color: #1a1a1a;
}

/* Verified state */
.cor-otp-btn.cor-verified {
	background: #2e7d32;
	border-color: #2e7d32;
	color: #fff;
	cursor: default;
}

/* Force visibility – override any third-party display:none */
#cor-send-email-otp,
#cor-send-phone-otp {
	display: -webkit-inline-box !important;
	display: -ms-inline-flexbox !important;
	display: inline-flex !important;
}

/* ── Submit button full-width ───────────────────────────────────────────── */

.cor-submit-btn {
	display: block;
	width: 100%;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

/* ── Status messages ────────────────────────────────────────────────────── */

.cor-status-msg {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	min-height: 18px;
}

.cor-status-msg.cor-success { color: #2e7d32; }
.cor-status-msg.cor-error   { color: #c62828; }
.cor-status-msg.cor-info    { color: #1565c0; }

/* ── DPDP Consent checkbox ──────────────────────────────────────────────── */

.cor-dpdp-group {
	margin-top: 0.5rem;
}

.cor-checkbox-label {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: start;
	    -ms-flex-align: start;
	        align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-weight: normal;
}

.cor-checkbox-label input[type="checkbox"] {
	-webkit-box-flex: 0;
	    -ms-flex: 0 0 auto;
	        flex: 0 0 auto;
	margin-top: 3px;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.dpdp-consent-text {
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}

.dpdp-consent-text a {
	color: inherit;
	text-decoration: underline;
}

.dpdp-consent-text a:hover {
	opacity: 0.75;
}

/* ── OTP Popup overlay ──────────────────────────────────────────────────── */

.cor-otp-popup {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	background: rgba(0, 0, 0, 0.55);
	-webkit-backdrop-filter: blur(2px);
	        backdrop-filter: blur(2px);
}

.cor-otp-popup-inner {
	background: #fff;
	border-radius: 10px;
	padding: 32px 28px 24px;
	max-width: 380px;
	width: 90%;
	-webkit-box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
	        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
	text-align: center;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

.cor-otp-popup-inner h3 {
	margin: 0 0 8px;
	font-size: 20px;
}

.cor-otp-popup-inner p {
	font-size: 14px;
	color: #555;
	margin-bottom: 16px;
}

.cor-otp-popup-inner .input-text {
	width: 100%;
	text-align: center;
	font-size: 22px;
	letter-spacing: 6px;
	padding: 10px;
	margin-bottom: 16px;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

.cor-otp-popup-actions {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 10px;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
}

.cor-otp-popup-actions .cor-otp-btn {
	padding: 10px 22px;
	font-size: 14px;
}

/* ── Hide MO leftover fields if they slip into our form ─────────────────── */

#cor-register-form input#reg_billing_phone:not(#reg_phone),
#cor-register-form label[for="reg_billing_phone"],
#cor-register-form #mo_wc_send_otp,
#cor-register-form #mo_message,
#cor-register-form #reg_verification_field,
#cor-register-form label[for="reg_verification_field"] {
	display: none !important;
}


input#reg_password {
    padding: 10px;
    width: 100%;
}