/**
 * RDI Checkout UX — marca del modal de login de CheckoutWC.
 * Alineado a rdi-login-personalizado (rosa #F25C92, botones redondeados).
 * Todo scopeado al modal de CFW para no tocar el resto del checkout.
 */

.cfw-modal #cfw_login_modal_form h3 {
	color: #f25c92;
	font-weight: 800;
}

.cfw-modal #cfw_login_modal_form .account-exists-text,
.cfw-modal #cfw_login_modal_form .account-does-not-exist-text {
	color: #666;
}

.cfw-modal #cfw_login_username,
.cfw-modal #cfw_login_password {
	border-radius: 12px;
	border: 1.5px solid #e8e8e8;
	padding: 12px 14px;
}

.cfw-modal #cfw_login_username:focus,
.cfw-modal #cfw_login_password:focus {
	border-color: #f25c92;
	outline: none;
	box-shadow: none;
}

.cfw-modal #cfw-login-btn,
.cfw-modal #cfw-login-btn.cfw-primary-btn {
	background: #f25c92;
	border-color: #f25c92;
	color: #fff;
	border-radius: 22px;
	font-weight: 800;
}

.cfw-modal #cfw-login-btn:hover {
	filter: brightness(1.05);
}

.cfw-modal #cfw_lost_password_trigger {
	color: #f25c92;
}

/* ------------------------------------------------------------------ */
/* Bloque de extras (OTP + Google)                                     */
/* ------------------------------------------------------------------ */

.cfw-modal .rdi-cux-extras {
	margin-top: 4px;
}

.cfw-modal .rdi-cux-divider {
	text-align: center;
	color: #c986a8;
	font-weight: 700;
	margin: 14px 0 10px;
	position: relative;
}

.cfw-modal .rdi-cux-divider span {
	background: #fff;
	padding: 0 12px;
	position: relative;
	z-index: 1;
}

.cfw-modal .rdi-cux-divider::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	border-top: 1px solid #f1f1f1;
}

.cfw-modal .rdi-cux-legend {
	color: #888;
	font-size: 14px;
	margin: 0 0 10px;
}

.cfw-modal .rdi-cux-label {
	display: block;
	margin: 0 0 6px;
	color: #f25c92;
	font-weight: 700;
	font-size: 14px;
}

.cfw-modal a.rdi-cux-btn,
.cfw-modal button.rdi-cux-btn {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 22px;
	border: 2px solid transparent;
	cursor: pointer;
	font-weight: 800;
	font-size: 15px;
	text-decoration: none;
	text-align: center;
	box-sizing: border-box;
	transition: transform 0.06s ease, filter 0.18s ease, background 0.18s ease;
}

.cfw-modal .rdi-cux-btn:active {
	transform: translateY(1px);
}

.cfw-modal .rdi-cux-btn.rdi-cux-busy,
.cfw-modal .rdi-cux-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}

.cfw-modal .rdi-cux-btn-primary {
	background: #f25c92;
	border-color: #f25c92;
	color: #fff;
}

.cfw-modal .rdi-cux-btn-primary:hover {
	filter: brightness(1.05);
	color: #fff;
}

.cfw-modal a.rdi-cux-btn-outline {
	background: #fff;
	color: #f25c92;
	border-color: #f25c92;
}

.cfw-modal a.rdi-cux-btn-outline:hover {
	background: #fff5fa;
	color: #f25c92;
}

.cfw-modal a.rdi-cux-btn-google {
	background: #fff;
	color: #3c4043;
	border: 1.5px solid #dadce0;
	font-weight: 600;
}

.cfw-modal a.rdi-cux-btn-google:hover {
	background: #f8f9fa;
	border-color: #c6c9cc;
	color: #3c4043;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cfw-modal .rdi-cux-btn-google svg {
	flex-shrink: 0;
}

.cfw-modal .rdi-cux-btn-text {
	background: transparent;
	border: none;
	color: #f25c92;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	padding: 6px 0;
}

.cfw-modal .rdi-cux-btn-text:hover {
	text-decoration: underline;
}

.cfw-modal .rdi-cux-btn-text:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	text-decoration: none;
}

/* Paso del código */

.cfw-modal .rdi-cux-otp-input {
	width: 100%;
	box-sizing: border-box;
	font-size: 22px;
	letter-spacing: 8px;
	text-align: center;
	padding: 12px 14px;
	border: 1.5px solid #e8e8e8;
	border-radius: 12px;
	margin-bottom: 10px;
}

.cfw-modal .rdi-cux-otp-input:focus {
	border-color: #f25c92;
	outline: none;
	box-shadow: none;
}

.cfw-modal .rdi-cux-otp-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}

/* Mensajes */

.cfw-modal .rdi-cux-msg {
	font-size: 14px;
	margin-top: 10px;
}

.cfw-modal .rdi-cux-msg-error {
	color: #c0392b;
}

.cfw-modal .rdi-cux-msg-success {
	color: #1e8e5a;
}

.cfw-modal .rdi-cux-msg a {
	color: #f25c92;
	text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Modo "código": se esconde todo lo del password y queda el paso OTP  */
/* (los hijos directos del form; #rdi-cux-extras y el título quedan)   */
/* ------------------------------------------------------------------ */

#cfw_login_modal_form.rdi-cux-otp-mode > *:not(#rdi-cux-extras):not(h3):not(#cfw-login-alert-container) {
	display: none !important;
}

#cfw_login_modal_form.rdi-cux-otp-mode .rdi-cux-pass-only {
	display: none !important;
}
