.cs-ba-slider {
    position: relative;
    width: 100%;
    height: clamp(350px, 250.22px + 13.0095vw, 500px);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    line-height: 0;
}
.cs-ba-before,
.cs-ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.cs-ba-slider .cs-ba-before img,
.cs-ba-slider .cs-ba-after img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.cs-ba-before {
    clip-path: inset(0 50% 0 0);
    z-index: 2;
}

.cs-ba-after {
    clip-path: inset(0 0 0 50%);
    z-index: 1;
}
.cs-ba-before-text,
.cs-ba-after-text {
    position: absolute;
    top: 25px;
    z-index: 5;
    font-size: clamp(16px, 9.33px + 0.5556vw, 20px);
    font-weight: 600;
    color: #ffffff;
    padding: 5px 22px;
    background: #282D44;
    border-radius: 0;
    line-height: 1;
    transition: opacity 0.3s ease;
}
.cs-ba-before-text {
    left: 17px;
    top: unset !important;
    bottom: 17px;
}
.cs-ba-after-text {
    right: 17px;
}

.cs-ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    cursor: ew-resize;
    z-index: 6;
}

.cs-ba-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: clamp(4px, 1.34px + 0.3469vw, 8px);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    z-index: 7;
    cursor: ew-resize;
    user-select: none;
}


.cs-ba-pulse {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 50px;
}
/* Pulse */

.cs-ba-pulse::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #ffffff;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    animation: cs-ba-pulse 1.5s infinite;
}
@keyframes cs-ba-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }

}
/* SVG */

.cs-ba-line svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(32px, 2.73px + 3.8161vw, 76px);
    height: clamp(32px, 2.73px + 3.8161vw, 76px);
    transform: translate(-50%, -50%);
    z-index: 3;
    cursor: ew-resize;
}

.cs-ba-slider.cs-ba-dragging,
.cs-ba-slider.cs-ba-dragging * {
    cursor: ew-resize !important;
}

@media (max-width: 767px) {
    .cs-ba-before-text,
    .cs-ba-after-text {
        top: 12px;
            font-size: 11px;
            padding: 4px 10px;
    }
    .cs-ba-before-text {
        left: 12px;
    }
    .cs-ba-after-text {
        right: 12px;
    }

}
