.sf-video-slider {
    --sf-video-accent: #0d6efd;
    --sf-video-accent-2: #21d4fd;
    --sf-video-surface: rgba(8, 15, 31, 0.78);
    --sf-video-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
    --sf-video-slider-width: 1180px;
    --sf-video-slider-height: 420px;
    position: relative;
    width: 100%;
    margin: 5px auto 2rem;
    overflow: hidden;
    background: #050814;
    color: #fff;
    isolation: isolate;
}

.shop-main-column > .container > .sf-video-slider:first-child {
    margin-top: calc(-1.75rem + 5px) !important;
}

.sf-video-slider--width-full {
    width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.sf-video-slider--width-half {
    width: 50%;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 1.25rem;
}

.sf-video-slider--width-custom {
    width: min(100%, var(--sf-video-slider-width));
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 1.25rem;
}

.sf-video-slider__viewport {
    position: relative;
    width: 100%;
    height: var(--sf-video-slider-height);
    overflow: hidden;
}

.sf-video-slider--height-full .sf-video-slider__viewport {
    height: calc(100vh - var(--shop-app-chrome-height, 0px) - 5px);
    min-height: 320px;
}

.sf-video-slider--height-half .sf-video-slider__viewport {
    height: 50vh;
    min-height: 260px;
}

.sf-video-slider--height-custom .sf-video-slider__viewport {
    min-height: 220px;
}

.sf-video-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 680ms ease, transform 900ms ease;
    pointer-events: none;
}

.sf-video-slider__slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}

.sf-video-slider[data-transition="slide"] .sf-video-slider__slide {
    transform: translateX(4%);
}

.sf-video-slider[data-transition="slide"] .sf-video-slider__slide.is-active {
    transform: translateX(0);
}

.sf-video-slider__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #050814;
}

.sf-video-slider::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 8, 20, 0), rgba(5, 8, 20, 0.5));
}

.sf-video-slider__control {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: var(--sf-video-surface);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.sf-video-slider:hover .sf-video-slider__control,
.sf-video-slider:focus-within .sf-video-slider__control {
    opacity: 1;
}

.sf-video-slider__control:hover {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(13, 110, 253, 0.92);
}

.sf-video-slider__control--prev {
    left: 1rem;
}

.sf-video-slider__control--next {
    right: 1rem;
}

.sf-video-slider--width-full .sf-video-slider__control--prev {
    left: max(1rem, calc((100vw - 1180px) / 2 + 1rem));
}

.sf-video-slider--width-full .sf-video-slider__control--next {
    right: max(1rem, calc((100vw - 1180px) / 2 + 1rem));
}

.sf-video-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 1.2rem;
    z-index: 4;
    display: flex;
    gap: 0.55rem;
    align-items: center;
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(4, 10, 22, 0.48);
    backdrop-filter: blur(14px);
    transform: translateX(-50%);
}

.sf-video-slider__dot {
    width: 0.62rem;
    height: 0.62rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    transition: width 220ms ease, background-color 220ms ease;
}

.sf-video-slider__dot.is-active {
    width: 1.7rem;
    background: linear-gradient(90deg, var(--sf-video-accent), var(--sf-video-accent-2));
}

.sf-video-slider__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    height: 3px;
    background: rgba(255, 255, 255, 0.18);
}

.sf-video-slider__progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--sf-video-accent), var(--sf-video-accent-2));
    transition: width 120ms linear;
}

[data-bs-theme="dark"] .sf-video-slider,
[data-theme="dark"] .sf-video-slider {
    --sf-video-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

@media (max-width: 767.98px) {
    .sf-video-slider {
        margin-bottom: 1.25rem;
    }

    .sf-video-slider--width-half,
    .sf-video-slider--width-custom {
        width: 100%;
        border-radius: 1rem;
    }

    .sf-video-slider__viewport {
        height: min(var(--sf-video-slider-height), 360px);
    }

    .sf-video-slider--height-full .sf-video-slider__viewport,
    .sf-video-slider--height-half .sf-video-slider__viewport {
        height: clamp(220px, 62vw, 360px);
        min-height: 220px;
    }

    .sf-video-slider__control {
        display: none;
    }

    .sf-video-slider__dots {
        bottom: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-video-slider__slide,
    .sf-video-slider__control,
    .sf-video-slider__dot,
    .sf-video-slider__progress span {
        transition: none;
    }
}
