.upop-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    /* Flex alignment is now handled dynamically in Frontend_Render.php */
    box-sizing: border-box;
}

.upop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.upop-content-wrapper {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    z-index: 2;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.upop-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.upop-close:hover {
    color: #000;
}

/* Animations */

.upop-anim-fade {
    animation: upopFadeIn 0.4s ease-out forwards;
}

.upop-anim-slide_up {
    animation: upopSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.upop-anim-zoom_in {
    animation: upopZoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

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

@keyframes upopZoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
