.ba-slider-wrapper {
    width: 100%;
    max-width: 1000px;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
}

.ba-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    line-height: 0;
    --position: 50%;
}

.ba-image {
    width: 100%;
    height: auto;
    display: block;
}

.ba-image img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: cover;
}

.ba-image-before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.ba-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 15px 15px;
    border-radius: 2px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.ba-label-before {
    left: 20px;
}

.ba-label-after {
    right: 20px;
}

.ba-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: col-resize;
    z-index: 20;
    margin: 0;
    touch-action: pan-y;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    width: 2px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 15;
    pointer-events: none;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.ba-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #fff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-handle-circle svg {
    width: 18px;
    height: 18px;
    stroke-width: 3;
}

@media (max-width: 767px) {
    .ba-label {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .ba-label-before {
        left: 10px;
    }

    .ba-label-after {
        right: 10px;
    }

    .ba-handle-circle {
        width: 36px;
        height: 36px;
    }
}