/* Popup Container */
.pe-popup {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001; /* Ensure this is higher than the overlay */
    padding: 0;
    box-sizing: border-box;
    overflow: auto;
}

.pe-popup.active {
    display: block; /* Show when active */
}

.pe-popup:not([style*="top: 0"]) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pe-popup-content {
    width: 100%;
    height: 100%;
}

.pe-popup:not([style*="top: 0"]) .pe-popup-content {
    padding: 20px;
}

/* Close Button */
.pe-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    background: transparent;
    border: none;
}

/* Overlay */
.pe-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
