/* Popup Overlay/Backdrop */
.wakavite-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 48, 86, 0.8);
    /* Navy blue tint */
    opacity: 0;
    visibility: hidden;
    z-index: 10000;
    transition: all 0.4s ease-in-out;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Show State */
.wakavite-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Popup Content Container */
.wakavite-popup-content {
    background: transparent;
    padding: 0;
    border-radius: 15px;
    position: relative;
    max-width: 500px;
    width: 90%;
    transform: scale(0.7) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.wakavite-popup-overlay.show .wakavite-popup-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* The Flyer Image */
.wakavite-popup-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Close Button */
.wakavite-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    background-color: #fe7701;
    /* Wakavite Orange */
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.2s;
    z-index: 2;
}

.wakavite-popup-close:hover {
    background-color: #003056;
    /* Navy Blue */
    transform: scale(1.1);
}

@media (max-width: 576px) {
    .wakavite-popup-content {
        max-width: 90%;
    }

    .wakavite-popup-close {
        top: -10px;
        right: -10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}