/**
 * BWA Popup Module Styles
 */

/* Overlay */
.bwa-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.bwa-popup-overlay.bwa-popup-show {
    opacity: 1;
}

/* Container */
.bwa-popup-container {
    position: relative;
    max-width: 800px;
    max-height: 90vh;
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.bwa-popup-overlay.bwa-popup-show .bwa-popup-container {
    transform: scale(1);
}

/* Close button */
.bwa-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bwa-popup-close:hover {
    background-color: #ffffff;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bwa-popup-close:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

.bwa-popup-close svg {
    color: #333333;
}

/* Content */
.bwa-popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image */
.bwa-popup-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .bwa-popup-overlay {
        padding: 10px;
    }

    .bwa-popup-container {
        max-height: 85vh;
        border-radius: 4px;
    }

    .bwa-popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }

    .bwa-popup-image {
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .bwa-popup-overlay {
        padding: 5px;
    }

    .bwa-popup-container {
        border-radius: 0;
        max-height: 95vh;
    }

    .bwa-popup-close {
        top: 5px;
        right: 5px;
        width: 32px;
        height: 32px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .bwa-popup-overlay,
    .bwa-popup-container,
    .bwa-popup-close {
        transition: none;
    }
}

/* Prevent body scroll when popup is open */
body.bwa-popup-open {
    overflow: hidden;
}
