/* ===== Bottom Banner Ticker ===== */
.bottom-banner-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px; /* задаётся инлайном из админки */
    z-index: 99999;
    overflow: hidden;
    /* box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.25); */
    /* border-top: 1px solid #e7e7e7; */
    /* background: #fff; */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.bottom-banner-wrapper.bb-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* Трек — flex в одну строку. Анимацию запускает JS (Web Animations API) */
.bb-ticker-track {
    display: flex;
    width: max-content;
    height: 100%;
    will-change: transform;
}

/* Запасной вариант для браузеров без Web Animations API */
.bb-ticker-track.bb-css-animation {
    animation: bb-scroll linear infinite;
}

/* Один набор баннеров */
.bb-ticker-set {
    display: flex;
    flex-shrink: 0;
    height: 100%;
}

/* Отдельный баннер */
.bb-ticker-item {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.bb-ticker-item img {
    display: block;
    height: 100%;
    width: auto;
    object-fit: contain;
}

.bb-ticker-item a {
    display: block;
    height: 100%;
    line-height: 0;
}

/* Анимация прокрутки — задаётся через JS в зависимости от ширины */
@keyframes bb-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* сдвигаем на половину (один набор) */
}

/* Close Button */
.bb-close-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    transition: background 0.25s, transform 0.25s;
    padding: 0;
    line-height: 1;
}

.bb-close-btn:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: translateY(-50%) scale(1.15);
}

.bb-close-btn svg {
    width: 14px;
    height: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .bb-close-btn {
        right: 6px;
        width: 24px;
        height: 24px;
    }
    .bb-close-btn svg {
        width: 12px;
        height: 12px;
    }
    .bottom-banner-wrapper {
        bottom: 75px;
    }
}