/* Overlay */
.epm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.epm-overlay.epm-visible {
    display: flex;
    opacity: 1;
}

/* Popup Container */
.epm-popup-container {
    background: #fff;
    max-width: 90%;
    width: 600px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.epm-visible .epm-popup-container {
    transform: scale(1);
}

/* Close Button */
.epm-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Banner */
.epm-banner {
    width: 100%;
    height: 250px;
    /* Default height */
    background-size: cover;
    background-position: center;
}

/* Content Area (Buttons) */
.epm-content {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;
}

.epm-btn {
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.epm-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

/* Animations */
.epm-anim-fade-in .epm-popup-container {
    animation: fadeIn 0.5s ease-out;
}

.epm-anim-slide-up .epm-popup-container {
    animation: slideUp 0.5s ease-out;
}

.epm-anim-zoom-in .epm-popup-container {
    animation: zoomIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .epm-content {
        flex-direction: column;
    }

    .epm-btn {
        width: 100%;
        display: block;
        box-sizing: border-box;
    }
}