/* Всплывающий баннер */
.ebs-popup-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
}

.ebs-popup-banner.show {
    bottom: 0;
    pointer-events: auto;
}

.ebs-popup-banner-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
}

.ebs-popup-banner-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1200px;
    cursor: pointer;
}

.ebs-popup-banner-link {
    display: block;
    position: relative;
}

/* Кнопка закрытия - ПОВЕРХ всего */
.ebs-popup-banner-close {
    position: absolute;
    cursor: pointer;
    z-index: 10002;
    background: transparent;
    border: none;
    padding: 0;
}

.ebs-popup-banner-close:hover {
    background: rgba(255, 0, 0, 0.1);
}

/* Десктопная версия */
@media (min-width: 769px) {
    .ebs-popup-banner-mobile {
        display: none !important;
    }
    
    .ebs-popup-banner-desktop {
        display: block;
        position: relative;
        width: 100%;
        max-width: 1200px;
    }
    
    /* Кнопка закрытия в правом верхнем углу - 0px от краев */
    .ebs-popup-banner-desktop .ebs-popup-banner-close {
        top: 0;
        right: 0;
        width: 30px;
        height: 30px;
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    .ebs-popup-banner-desktop {
        display: none !important;
    }
    
    .ebs-popup-banner-mobile {
        display: block;
        position: relative;
        width: 100%;
    }
    
    .ebs-popup-banner-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Кнопка закрытия в правом верхнем углу */
    .ebs-popup-banner-mobile .ebs-popup-banner-close {
        top: 0;
        right: 0;
        width: 60px;
        height: 60px;
    }
}

/* Overlay для затемнения фона */
.ebs-popup-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.ebs-popup-banner-overlay.show {
    opacity: 1;
    pointer-events: none;
}