.ba-widget-wrapper {
    width: 100%;
    user-select: none;
}

.ba-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.ba-img-wrapper {
    overflow: hidden;
}

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

.ba-img-wrapper.before-image {
    position: relative;
    width: 100%;
}

.ba-img-wrapper.after-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 2;
}

.ba-img-wrapper.after-image img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    max-width: none !important;
}

/* Range input styled to cover comparison area */
.ba-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    opacity: 0;
    cursor: ew-resize;
    margin: 0;
    padding: 0;
}

/* Custom separator line and handle */
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
    transform: translateX(-50%);
}

.ba-handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
}

.ba-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.ba-handle-button svg {
    width: 24px;
    height: 24px;
}

/* Labels Overlaid layout (customizable coordinates) */
.ba-labels-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    pointer-events: none;
}

.ba-labels-overlay .ba-label {
    position: absolute;
}

/* Labels Below layout */
.ba-labels-below {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.ba-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    transition: opacity 0.2s;
}
