.ba-slider-container-b88215fe {
    position: relative;
    width: 100%;
    /* No hardcoded height. Driven by the relative after image */
    overflow: hidden;
    user-select: none;
    cursor: ew-resize;
    display: block;
    min-height: 50px; /* Fallback */
    background: #f0f0f0;
    touch-action: pan-y; /* Allows normal vertical scrolling, handles horizontal via drag */
}

.ba-image-layer-b88215fe {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    pointer-events: none; /* Let the container handle mouse/touch events */
}

.ba-image-layer-wrapper-b88215fe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Use clip-path here so everything inside cuts together */
    clip-path: inset(0 50% 0 0);
    -webkit-clip-path: inset(0 50% 0 0);
}

.ba-image-before-b88215fe {
    width: 100%;
    height: 100%;
}

.ba-image-after-b88215fe {
    /* The after image dictates the height for the relative container */
    position: relative; 
    z-index: 0;
}


.ba-slider-handle-container-b88215fe {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    transform: translateX(-50%);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    left: 50%;
}

.ba-slider-bar-b88215fe {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.ba-slider-handle-b88215fe {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.ba-slider-handle-b88215fe svg {
    width: 14px;
    height: 14px;
    color: #333;
}

.ba-label-b88215fe {
    position: absolute;
    bottom: 20px;
    background: #fff;
    color: #333;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 3;
    pointer-events: none; /* so it doesn't mess with slider hover */
    width: auto !important; /* Prevent it from expanding */
    display: inline-block;
    max-width: max-content;
}

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

.ba-label-after-b88215fe {
    right: 20px;
    /* ensure the after label actually snaps to the right side of the container, not the image */
    left: auto;
}
