/* Banner home — barras de progresso (Vant Swipe / Swiper) */
#js_banner {
    position: relative;
    width: 100%;
    --banner-autoplay-ms: 5000ms;
}

#js_banner .van-swipe,
#js_banner .van-swipe__track,
#js_banner .van-swipe-item {
    cursor: default !important;
    touch-action: pan-y;
    -webkit-user-drag: none;
    user-select: none;
}

#js_banner .van-swipe__indicators,
#js_banner .montanha-banner-indicators-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#js_banner .custom-pagination {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 0 8px 4px;
    width: 100%;
    box-sizing: border-box;
    pointer-events: auto;
}

#js_banner .custom-pagination .custom-bullet {
    display: inline-block;
    position: relative;
    overflow: hidden;
    width: 24px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    opacity: 1;
    margin: 0 !important;
    padding: 0;
    border: 0;
    flex-shrink: 0;
    pointer-events: auto;
}

#js_banner .custom-pagination .custom-bullet.is-active,
#js_banner .custom-pagination .swiper-pagination-bullet-active.custom-bullet {
    width: 32px;
    background: rgba(255, 255, 255, 0.35);
}

#js_banner .custom-pagination .custom-bullet .dot-progress {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--cms-primary-color, #ff8c00);
    pointer-events: none;
}

#js_banner .custom-pagination .custom-bullet.is-active .dot-progress,
#js_banner .custom-pagination .swiper-pagination-bullet-active.custom-bullet .dot-progress {
    animation: montanha-banner-dot-progress var(--banner-autoplay-ms, 5000ms) linear forwards;
}

@keyframes montanha-banner-dot-progress {
    from { width: 0; }
    to { width: 100%; }
}

@media (hover: hover) and (pointer: fine) {
    #js_banner .van-swipe,
    #js_banner .van-swipe__track {
        touch-action: pan-y !important;
    }
}
