/* CHELECH Components — autenticación modal. CSS aislado para no alterar el tema. */
.chelech-auth-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;min-height:40px;padding:9px 15px;border-radius:8px;background:#174a85;color:#fff!important;font:inherit;font-size:.92rem;line-height:1.3;text-decoration:none!important;transition:background .15s ease}
.chelech-auth-trigger:hover,.chelech-auth-trigger:focus-visible{background:#103d73;color:#fff!important}
.chelech-auth-trigger-icon{flex:none}
.chelech-auth-modal[hidden]{display:none!important}
.chelech-auth-modal{display:none!important;position:fixed!important;inset:0!important;z-index:999999!important;margin:0!important;padding:12px!important;box-sizing:border-box;overflow:auto!important;align-items:center;justify-content:center;overscroll-behavior:contain}
.chelech-auth-modal.is-open{display:flex!important}
.chelech-auth-backdrop{position:fixed;inset:0;background:rgba(12,22,36,.66);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.chelech-auth-panel{position:relative;flex:0 1 380px;width:100%;max-width:380px;max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;background:#fff;color:#192638;padding:22px 26px 20px;border-radius:14px;box-shadow:0 18px 60px rgba(0,0,0,.24);-webkit-overflow-scrolling:touch}
.chelech-auth-logo{display:block!important;width:132px!important;max-width:60%!important;height:auto!important;max-height:50px;object-fit:contain;margin:0 auto 10px}
.chelech-auth-panel h2{color:inherit;font-size:1.2rem;line-height:1.25;font-weight:700;text-align:center;margin:0 26px 10px}
.chelech-auth-close{position:absolute;z-index:1;top:10px;right:12px;width:32px;height:32px;border:0!important;border-radius:50%;background:transparent!important;color:#536070!important;font-size:25px;line-height:32px;cursor:pointer;padding:0!important;box-shadow:none!important}
.chelech-auth-close:hover{background:#f0f3f7!important}
.chelech-auth-tabs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-bottom:1px solid #dfe4e8;margin:0 0 14px;gap:4px}
.chelech-auth-tabs button{min-width:0;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;padding:9px 4px!important;color:#576477!important;font-size:.91rem;font-weight:600;line-height:1.3;cursor:pointer;box-shadow:none!important;white-space:normal}
.chelech-auth-tabs button.is-selected{color:#174a85!important;border-bottom-color:#174a85!important}
.chelech-auth-modal .woocommerce{width:100%;min-width:0;font-size:.91rem}
.chelech-auth-modal .woocommerce #chelech-auth-customer_login{display:block!important;margin:0!important}
.chelech-auth-modal .woocommerce #chelech-auth-customer_login>.u-column1,.chelech-auth-modal .woocommerce #chelech-auth-customer_login>.u-column2{width:100%!important;float:none!important;margin:0!important;padding:0!important}
.chelech-auth-modal[data-mode="login"] #chelech-auth-customer_login>.u-column2,.chelech-auth-modal[data-mode="register"] #chelech-auth-customer_login>.u-column1{display:none!important}
.chelech-auth-modal #chelech-auth-customer_login h2{display:none!important}
.chelech-auth-modal .woocommerce form.login,.chelech-auth-modal .woocommerce form.register{margin:0!important;border:0!important;padding:0!important;background:transparent!important;border-radius:0!important}
.chelech-auth-modal .woocommerce form .form-row{padding:0!important;margin:0 0 9px!important;float:none!important;max-width:none!important;width:100%!important}
.chelech-auth-modal .woocommerce form .input-text{display:block;box-sizing:border-box;width:100%;height:40px;min-height:40px;border:1px solid #ccd3db;border-radius:7px;padding:8px 11px;color:#142336;background:#fff;font-size:16px}
.chelech-auth-modal .woocommerce form label{display:block;margin:0 0 4px;font-size:.86rem;line-height:1.35;color:#26364a}
.chelech-auth-modal .woocommerce form button.button,.chelech-auth-modal .woocommerce form button[type="submit"]{display:block;width:100%!important;min-height:40px;padding:9px 12px!important;border:0!important;border-radius:7px!important;margin:10px 0 0!important;color:#fff!important;background:#174a85!important;line-height:1.35;font-size:.95rem;box-shadow:none!important;cursor:pointer}
.chelech-auth-modal .woocommerce form button.button:hover{background:#103d73!important}
.chelech-auth-modal .woocommerce .woocommerce-privacy-policy-text{font-size:.8rem;line-height:1.35;margin:6px 0 0;color:#536070}
.chelech-auth-modal .woocommerce .woocommerce-privacy-policy-text p{margin:0 0 7px}
.chelech-auth-modal .woocommerce .woocommerce-form-login__rememberme{display:flex!important;align-items:center;gap:7px;float:none!important;font-size:.83rem;line-height:1.3;margin:4px 0 0!important}
.chelech-auth-modal .woocommerce .woocommerce-form-login__rememberme input{width:16px;height:16px;margin:0;flex:none}
.chelech-auth-modal .woocommerce .woocommerce-LostPassword,.chelech-auth-modal .woocommerce .lost_password{margin:8px 0 0!important;text-align:center;font-size:.84rem;line-height:1.4}
.chelech-auth-modal .woocommerce a{color:#174a85}
.chelech-auth-modal .woocommerce .woocommerce-error,.chelech-auth-modal .woocommerce .woocommerce-message,.chelech-auth-modal .woocommerce .woocommerce-info{padding:9px 12px!important;margin:0 0 10px!important;font-size:.82rem;line-height:1.35}
.chelech-auth-modal .woocommerce .show-password-input{top:auto;bottom:10px}
body.chelech-auth-lock{overflow:hidden}
@media(max-width:480px){.chelech-auth-modal{padding:10px!important}.chelech-auth-panel{max-width:100%;max-height:calc(100dvh - 20px);border-radius:12px;padding:18px 18px 16px}.chelech-auth-logo{width:116px!important;max-height:44px;margin-bottom:7px}.chelech-auth-panel h2{font-size:1.12rem;margin-bottom:8px}.chelech-auth-tabs{margin-bottom:11px}}
@media(max-width:340px){.chelech-auth-panel{padding:16px 13px 14px}.chelech-auth-tabs button{font-size:.85rem}}
@media(max-height:630px){.chelech-auth-modal{align-items:flex-start}.chelech-auth-panel{margin:auto 0;padding-top:14px;padding-bottom:14px}.chelech-auth-logo{width:104px!important;margin-bottom:5px}.chelech-auth-panel h2{font-size:1.08rem;margin-bottom:6px}.chelech-auth-tabs{margin-bottom:8px}}
@media(prefers-reduced-motion:no-preference){.chelech-auth-panel{animation:chelech-auth-appear .16s ease-out}@keyframes chelech-auth-appear{from{opacity:.6;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}

/* Diseño maestro de autenticación: en Elementor se ve el componente completo. */
body.single-elementor_library .chelech-auth-design {
    box-sizing:border-box;
    width:min(100%,380px);
    max-width:380px;
    min-width:0;
    margin:20px auto!important;
    padding:22px 26px 20px;
    border-radius:14px;
    background:#fff;
    color:#192638;
    box-shadow:0 12px 40px rgba(0,0,0,.12);
}
.chelech-auth-design .elementor-widget-image {text-align:center}
.chelech-auth-design .elementor-widget-image img {
    height:auto;
    max-width:100%;
    object-fit:contain;
}
.chelech-auth-design .chelech-auth-heading {
    color:#192638;
    text-align:center;
    font-size:1.2rem;
    font-weight:700;
    line-height:1.25;
    margin:0 0 10px;
}
.chelech-auth-design .chelech-auth-tabs {margin-bottom:14px}
.chelech-auth-design .chelech-auth-tabs button {
    min-width:0;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;
    background:transparent!important;padding:9px 4px!important;color:#576477!important;
    font-size:.91rem;font-weight:600;line-height:1.3;cursor:pointer;
}
.chelech-auth-design .chelech-auth-tabs button.is-selected {
    color:#174a85!important;border-bottom-color:#174a85!important;
}
.chelech-auth-design .chelech-auth-form {width:100%;min-width:0}
.chelech-auth-design .chelech-auth-form-preview .chelech-auth-preview-note {
    color:#667587;
    font-size:.75rem;
    line-height:1.35;
    margin:0 0 12px;
}
.chelech-auth-design .chelech-auth-form .woocommerce {font-size:.91rem;width:100%}
.chelech-auth-design .chelech-auth-form .form-row {padding:0;margin:0 0 10px;float:none;width:100%}
.chelech-auth-design .chelech-auth-form label {display:block;margin:0 0 4px;font-size:.86rem;color:#26364a}
.chelech-auth-design .chelech-auth-form .woocommerce-form-login__rememberme {display:flex;align-items:center;gap:7px}
.chelech-auth-design .chelech-auth-form .input-text {
    display:block;box-sizing:border-box;width:100%;min-height:40px;height:40px;
    border:1px solid #ccd3db;border-radius:7px;padding:8px 11px;
    background:#fff;color:#142336;font-size:16px;
}
.chelech-auth-design .chelech-auth-form .woocommerce button.button {
    width:100%;min-height:40px;margin:0;padding:9px 12px;
    border:0;border-radius:7px;background:#174a85;color:#fff;
    font-weight:600;font-size:.95rem;
}
.chelech-auth-design .chelech-auth-form .woocommerce a {color:#174a85}
.chelech-auth-design .chelech-auth-form .lost_password {
    font-size:.84rem;
    text-align:center;
    margin:10px 0 0;
}
.chelech-auth-design .chelech-auth-form-preview [hidden] {display:none!important}
/* Al usarlo en la tienda, el contenedor del modal aporta el fondo y la altura. */
.chelech-auth-modal .chelech-auth-builder {width:100%;min-width:0}
.chelech-auth-modal .chelech-auth-builder .chelech-auth-design {
    width:100%;max-width:100%;min-width:0;
    padding:0;margin:0!important;border:0;border-radius:0;
    box-shadow:none;background:transparent;
}
.chelech-auth-modal .chelech-auth-builder .elementor {width:100%;min-width:0}
.chelech-auth-modal .chelech-auth-builder .elementor-widget {min-width:0}
.chelech-auth-modal .chelech-auth-builder .chelech-auth-heading {margin:0 0 10px}
@media(max-width:480px){
    body.single-elementor_library .chelech-auth-design {
        padding:18px 18px 16px;
        margin:10px auto!important;
        max-width:100%;
    }
    .chelech-auth-design .chelech-auth-heading {font-size:1.12rem}
}

/* The account landing and modal use the same editable component. */
#chelech-auth-modal.is-inline {display:flex!important;position:relative!important;inset:auto!important;z-index:auto!important;padding:24px 12px!important;overflow:visible!important;}
#chelech-auth-modal.is-inline .chelech-auth-panel {max-height:none;overflow:visible;flex-basis:420px;max-width:420px;border:1px solid #e1e5e9;box-shadow:none;}
#chelech-auth-modal .chelech-auth-panel .woocommerce :is(form.login,form.register) {display:block;width:100%;max-width:none;float:none;}
#chelech-auth-modal .chelech-auth-panel .woocommerce :is(form.login,form.register) .input-text {display:block!important;width:100%!important;max-width:100%;min-height:44px;background:#fff!important;color:#142336!important;border:1px solid #ccd3db!important;border-radius:7px;box-sizing:border-box;}
#chelech-auth-modal .chelech-auth-panel .woocommerce :is(form.login,form.register) label {color:#26364a!important;}
#chelech-auth-modal .chelech-auth-panel .woocommerce :is(form.login,form.register) button[type="submit"] {display:block!important;background:#174a85!important;color:#fff!important;min-height:44px;width:100%!important;opacity:1!important;visibility:visible!important;}
#chelech-auth-modal .chelech-auth-panel .woocommerce form.register > p:not(.form-row) {font-size:.85rem;line-height:1.45;color:#536070;margin:0 0 12px;}
#chelech-auth-modal .chelech-auth-panel .woocommerce .woocommerce-privacy-policy-text {color:#536070!important;}
#chelech-auth-modal .chelech-auth-panel .woocommerce > h2 {display:none;}
