.baw-widget {
    position: relative;
    overflow: hidden;
    width: 100%;
    cursor: col-resize;
    line-height: 0;
    border-radius: 8px;
}

.baw-widget * {
    box-sizing: border-box;
}

.baw-widget img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.baw-after-layer {
    position: relative;
    width: 100%;
}

.baw-before-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: inset(0 50% 0 0);
}

.baw-label {
    position: absolute;
    z-index: 5;
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 2px;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
}

.baw-label--before {
    left: 24px;
}

.baw-label--after {
    right: 24px;
}

.baw-widget:hover .baw-label {
    opacity: 1;
}

.baw-separator {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transform: translateX(-50%);
}

.baw-separator-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #ffffff;
    transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
}

.baw-handle {
    position: relative;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: col-resize;
    pointer-events: auto;
    transition: all 0.15s ease;
}

.baw-handle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.baw-handle svg {
    fill: #333333;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.baw-widget.baw-dragging {
    cursor: col-resize;
}

.baw-widget.baw-dragging .baw-handle {
    transform: scale(1.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}


@media (max-width: 768px) {
    .baw-label {
        font-size: 12px;
        padding: 6px 14px;
        bottom: 16px;
    }

    .baw-label--before {
        left: 12px;
    }

    .baw-label--after {
        right: 12px;
    }

    .baw-handle {
        width: 36px;
        height: 36px;
    }

    .baw-handle svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .baw-label {
        font-size: 11px;
        padding: 4px 10px;
        bottom: 10px;
		height: max-content;
    }

    .baw-label--before {
        left: 8px;
    }

    .baw-label--after {
        right: 8px;
    }
}
