/*  Toggle Login / Registro  */

#customer_login .avsec360-auth-hidden {
    display: none !important;
}

#customer_login .u-column1:not(.avsec360-auth-hidden),
#customer_login .u-column2:not(.avsec360-auth-hidden) {
    width: 100% !important;
    float: none !important;
    max-width: 480px;
    margin: 0 auto;
}

.avsec360-auth-switch {
    margin-top: 20px;
    text-align: center;
    font-size: 15px;
    color: #5c6470;
}

.avsec360-auth-switch__link {
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.avsec360-auth-switch__link:hover {
    opacity: 0.8;
}

/*  Popup perfil incompleto  */

.avsec360-profile-popup {
    display: none;
}

.avsec360-profile-popup.is-open {
    display: block;
}

.avsec360-profile-popup__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.avsec360-profile-popup__dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90%, 480px);
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px 32px;
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.avsec360-profile-popup__icon {
    width: 56px;
    height: 56px;
    background: #b3d3da;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.avsec360-profile-popup__title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2430;
}

.avsec360-profile-popup__message {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.6;
    color: #5c6470;
}

.avsec360-profile-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.avsec360-profile-popup__btn {
    width: 100%;
    padding: 13px 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s ease;
}

.avsec360-profile-popup__btn:hover {
    opacity: 0.85;
    border: 1px solid #d1d5db;
}

.avsec360-profile-popup__btn--stay {
    background: #006c82;
    color: #fff;
}

.avsec360-profile-popup__btn--leave {
    background: transparent;
    color: #5c6470;
    border: 1px solid #d1d5db;
}

/* Modal carrito */

.avsec360-auth-modal {
    display: none;
}

.avsec360-auth-modal.is-open {
    display: block;
}

.avsec360-auth-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
}

.avsec360-auth-modal__dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90%, 820px);
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.avsec360-auth-modal__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.avsec360-auth-modal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avsec360-auth-modal__content {
    padding: 32px;
}

.avsec360-auth-modal__content h3 {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 700;
    color: #1f2430;
}

.avsec360-auth-modal__content p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #5c6470;
}

.avsec360-auth-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #111;
    z-index: 2;
}

.avsec360-auth-modal__actions {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.avsec360-auth-modal__actions .button {
    min-width: 180px;
    text-align: center;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

body.avsec360-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .avsec360-auth-modal__dialog {
        width: calc(100% - 24px);
    }

    .avsec360-auth-modal__image {
        height: 160px;
    }

    .avsec360-auth-modal__content {
        padding: 24px;
    }

    .avsec360-auth-modal__content h3 {
        font-size: 30px;
    }

    .avsec360-auth-modal__content p {
        font-size: 16px;
    }

    .avsec360-auth-modal__actions {
        gap: 16px;
        margin-top: 28px;
        justify-content: center;
    }

    .avsec360-auth-modal__actions .button {
        width: 100%;
        min-width: auto;
    }

    .avsec360-profile-popup__dialog {
        padding: 32px 20px 24px;
    }
}

.woocommerce-account form.woocommerce-form.woocommerce-form-login.login {
    width: 100% !important;
    padding-bottom: 6em !important;
}

form.woocommerce-form.woocommerce-form-login.login {
    width: 100% !important;
    padding-bottom: 6em;
}

button.avsec360-auth-modal__close {
    padding-top: 16px;
    padding-bottom: 16px;
}
/*  Modal auth — variante centrada (sin imagen)  */

.avsec360-auth-modal__content--centered {
    text-align: center;
    padding: 48px 40px 40px;
}

.avsec360-auth-modal__content--centered h3 {
    font-size: 26px;
    margin-bottom: 12px;
}

.avsec360-auth-modal__content--centered p {
    font-size: 16px;
    margin-bottom: 0;
}

.avsec360-auth-modal__actions--stacked {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    justify-content: center;
}

.avsec360-auth-modal__btn--primary {
    display: block;
    width: 100%;
    max-width: 320px;
    text-align: center;
    border-radius: 999px;
    padding: 16px 28px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    background: #006c82;
    color: #fff !important;
    transition: background 0.15s ease;
}

.avsec360-auth-modal__btn--primary:hover {
    background: #005568;
    opacity: 1;
}

.avsec360-auth-modal__register-link {
    margin: 0;
    font-size: 14px;
    color: #5c6470;
}

.avsec360-auth-modal__register-link a {
    font-weight: 600;
    color: #006c82;
    text-decoration: underline;
}

.avsec360-auth-modal__register-link a:hover {
    color: #005568;
}