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

.bpm-popup-container {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: bpm-popup-slide-down 0.3s ease-out;
}

@keyframes bpm-popup-slide-down {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bpm-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background-color: #f44336;
    border: 2px solid #f44336;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    z-index: 1000000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bpm-popup-close:hover {
    background-color: #d32f2f;
    border-color: #d32f2f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.bpm-popup-content {
    padding: 20px;
    text-align: center;
}

.bpm-popup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.bpm-popup-content h2 {
    margin: 0;
    padding: 20px;
    font-size: 28px;
    color: #333;
}

.bpm-popup-content a {
    display: block;
    text-decoration: none;
}

.bpm-popup-content a:hover img {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .bpm-popup-container {
        margin: 20px auto;
        max-width: 95%;
    }

    .bpm-popup-overlay {
        padding: 10px;
    }

    .bpm-popup-content {
        padding: 10px;
    }

    .bpm-popup-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
        top: -12px;
        right: -12px;
    }
}
