/* Authentication Popup Modal */
.auth-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: none;
    /* Flex when visible */
    justify-content: center;
    align-items: center;
}

.auth-popup-overlay.active {
    display: flex !important;
}

.auth-popup-content {
    background: #fff;
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-family: 'Sen', sans-serif;
}

.auth-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.auth-popup-close:hover {
    color: #333;
}

.auth-popup-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-popup-header h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.auth-popup-header p {
    margin: 0;
    font-size: 15px;
    color: #666;
}

.auth-popup-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.auth-btn i,
.auth-btn svg {
    margin-right: 10px;
    font-size: 20px;
}

.auth-email {
    background-color: #0b2e59;
    color: #fff;
}

.auth-email:hover {
    background-color: #071f3e;
    color: #fff;
}

.auth-google {
    background-color: #fff;
    color: #333;
    border-color: #ddd;
}

.auth-google:hover {
    background-color: #f5f5f5;
    color: #333;
}

.auth-facebook {
    background-color: #1877f2;
    color: #fff;
}

.auth-facebook:hover {
    background-color: #166fe5;
    color: #fff;
}

.auth-yahoo {
    background-color: #6001d2;
    color: #fff;
}

.auth-yahoo:hover {
    background-color: #4b00a5;
    color: #fff;
}

.auth-separator {
    text-align: center;
    margin: 10px 0;
    position: relative;
}

.auth-separator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ddd;
    z-index: 1;
}

.auth-separator span {
    background: #fff;
    padding: 0 15px;
    color: #888;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

@media (max-width: 480px) {
    .auth-popup-content {
        padding: 35px 20px 25px;
        /* Added more top padding to avoid close button overlap */
        margin: 0 15px;
    }

    .auth-popup-close {
        top: 8px;
        right: 15px;
    }
}

/* Force popup constraints on Cart/Checkout pages */
body.woocommerce-cart .auth-popup-close,
body.woocommerce-checkout .auth-popup-close {
    display: none !important;
}

body.woocommerce-cart .auth-popup-overlay,
body.woocommerce-checkout .auth-popup-overlay {
    pointer-events: auto;
    /* Prevent clicking through */
}