.simple-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    overflow-y: auto;
}

.simple-popup-overlay.active {
    display: block;
}

.simple-popup-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1000000;
}

.simple-popup-inner {
    position: relative;
    z-index: 1000001;
    max-height: 80vh;
    overflow-y: auto;
}

.simple-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    z-index: 1000002;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.simple-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Reset styles inside popup to prevent theme styles from affecting it */
.simple-popup-inner * {
    box-sizing: border-box;
}

.simple-popup-inner .elementor {
    margin: 0;
    padding: 0;
}

.simple-popup-inner .elementor-widget-container {
    margin: 0;
    padding: 0;
}

/* Ensure popup is above Elementor content */
.elementor {
    z-index: 1;
}

/* Responsive styles */
@media (max-width: 768px) {
    .simple-popup-content {
        width: 95%;
        margin: 20px auto;
        padding: 20px;
    }
} 