/**
 * Popup Frontend CSS
 */

.lg-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lg-popup-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.lg-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    z-index: 1;
}

.lg-popup-container {
    position: relative;
    background-color: #fff;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    min-height: 200px;
    /* Ensure visibility if content is empty */
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10;
    /* Higher than overlay */
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lg-popup-modal.is-active .lg-popup-container {
    transform: scale(1);
}

.lg-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.2s;
}

.lg-popup-close:hover {
    color: #000;
}

.lg-popup-content {
    /* Elementor content usually handles its own padding, but we can add some defaults if needed */
    width: 100%;
}