/* Popup Overlay */
.wc-auth-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Popup Container */
.wc-auth-popup-container {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.wc-auth-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.wc-auth-popup-close:hover {
    color: #333;
    transform: rotate(90deg);
}

/* Popup Content */
.wc-auth-popup-content {
    padding: 40px 30px 30px;
}

.wc-auth-popup-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
    font-size: 24px;
}

/* Popup Tabs */
.wc-auth-popup-tabs {
    width: 100%;
}

.wc-popup-tabs-nav {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 25px;
}

.wc-popup-tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.wc-popup-tab-btn:hover {
    color: #333;
}

.wc-popup-tab-btn.active {
    color: #0073aa;
}

.wc-popup-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0073aa;
}

.wc-popup-tab-panel {
    display: none;
}

.wc-popup-tab-panel.active {
    display: block;
}

/* Popup Trigger Buttons */
.wc-auth-popup-trigger {
    cursor: pointer;
}

.wc-auth-popup-button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.wc-auth-popup-button:hover {
    background: #005a87;
    color: #fff !important;
}

.wc-auth-popup-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.wc-auth-popup-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .wc-auth-popup-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .wc-auth-popup-content {
        padding: 50px 20px 20px;
    }
    
    .wc-popup-tab-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Body No Scroll */
body.wc-auth-popup-open {
    overflow: hidden;
}

/* Popup Animations */
.wc-auth-popup-overlay.closing {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.wc-auth-popup-overlay.closing .wc-auth-popup-container {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(50px);
        opacity: 0;
    }
}

/* Menu Item Popup Trigger */
.wc-auth-menu-item.popup-enabled a[href="#"] {
    cursor: pointer;
}
