.popup-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.popup-banner-modal {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-banner-overlay.is-visible .popup-banner-modal {
    transform: scale(1);
}

.popup-banner-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid #fff;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 1;
    padding: 0;
}

.popup-banner-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.popup-banner-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.popup-banner-link {
    display: block;
    line-height: 0;
}

.popup-banner-image {
    display: block;
    max-width: 100%;
    height: auto;
}

@media screen and (min-width: 768px) {
    .popup-banner-modal {
        max-width: 600px;
    }
}

@media screen and (max-width: 480px) {
    .popup-banner-modal {
        max-width: 95%;
        border-radius: 6px;
    }

    .popup-banner-close {
        top: 6px;
        right: 6px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

.dark-mode .popup-banner-overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

.dark-mode .popup-banner-modal {
    background-color: #2d2d2d;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dark-mode .popup-banner-close {
    background-color: #555;
    border-color: #888;
}

.dark-mode .popup-banner-close:hover {
    background-color: #777;
}
