/* Ignite Popup Styles */

/* Overlay */
.ignite-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Popup container */
.ignite-popup {
    border-radius: 12px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.ignite-popup-overlay.ignite-popup--visible .ignite-popup {
    transform: scale(1);
}

/* Close button */
.ignite-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
}

.ignite-popup__close:hover {
    background: #f0f0f0;
}

/* Template content wrapper — Elementor content */
.ignite-popup__template-content {
    width: 100%;
    position: relative;
}

.ignite-popup__template-content .elementor {
    width: 100% !important;
    max-width: 100% !important;
}

.ignite-popup__template-content .elementor-section {
    max-width: 100% !important;
}

/* Fallback content elements (when no template selected) */
.ignite-popup__body {
    padding: 32px;
}

.ignite-popup__title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.ignite-popup__content {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.ignite-popup__content p {
    margin: 0 0 12px;
}

.ignite-popup__content p:last-child {
    margin-bottom: 0;
}

.ignite-popup__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ignite-popup__btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.4;
    color: #fff;
}

.ignite-popup__btn:hover {
    opacity: 0.88;
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .ignite-popup {
        width: 95%;
        max-height: 90vh;
    }

    .ignite-popup__body {
        padding: 20px;
    }

    .ignite-popup__title {
        font-size: 20px;
    }

    .ignite-popup__buttons {
        flex-direction: column;
    }

    .ignite-popup__btn {
        text-align: center;
        width: 100%;
    }
}
