.therme-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
}

.therme-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.therme-popup-container {
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    background-color: transparent;
}

.therme-popup-overlay.active .therme-popup-container {
    transform: scale(1);
}

.therme-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.2s ease;
    padding: 0;
}

.therme-popup-close:hover {
    opacity: 0.7;
}

.therme-popup-close svg {
    width: 30px;
    height: 30px;
    stroke: #ffffff;
}

.therme-popup-container .elementor {
    width: 100%;
}

.therme-popup-container .elementor-section-wrap {
    width: 100%;
}

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

    .therme-popup-container {
        max-height: 95vh;
        width: 100%;
    }

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

    .therme-popup-close svg {
        width: 25px;
        height: 25px;
    }
}

/* Scrollbar styling for popup content */
.therme-popup-container::-webkit-scrollbar {
    width: 8px;
}

.therme-popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.therme-popup-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.therme-popup-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}