.baic-slider {
    --baic-position: 50%;
    --baic-radius: 0px;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--baic-radius);
    line-height: 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    isolation: isolate;
    background: #eee;
}

.baic-slider[style*="--baic-height"] {
    height: var(--baic-height);
}

.baic-base-image,
.baic-after-image {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: cover;
    pointer-events: none;
}

.baic-after-wrap {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--baic-position);
    overflow: hidden;
    z-index: 2;
}

.baic-after-image {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: left center;
}

.baic-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--baic-position);
    width: 3px;
    transform: translateX(-50%);
    background: #fff;
    z-index: 5;
    cursor: ew-resize;
    box-shadow: 0 0 8px rgba(0,0,0,.18);
}

.baic-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    background: #fff;
    color: #1d252c;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    font-size: 34px;
    line-height: 1;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 14px rgba(0,0,0,.28);
    cursor: ew-resize;
}

.baic-arrow {
    display: block;
    height: 34px;
    line-height: 30px;
}

.baic-label {
    position: absolute;
    top: 20px;
    z-index: 6;
    padding: 10px 17px;
    border-radius: 2px;
    background: rgba(20, 27, 33, .82);
    color: #fff;
    font: 700 14px/1.1 Arial, sans-serif;
    letter-spacing: 1px;
    pointer-events: none;
}

.baic-before-label { left: 20px; }
.baic-after-label { right: 20px; }

.baic-no-labels .baic-label { display: none; }

.baic-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

.baic-range::-webkit-slider-thumb { width: 58px; height: 100%; -webkit-appearance: none; }
.baic-range::-moz-range-thumb { width: 58px; height: 100%; border: 0; }

.baic-slider.baic-dragging,
.baic-slider.baic-dragging .baic-handle,
.baic-slider.baic-dragging .baic-divider {
    cursor: ew-resize;
}

@media (max-width: 767px) {
    .baic-handle { width: 46px; height: 46px; font-size: 28px; }
    .baic-label { top: 12px; padding: 8px 12px; font-size: 11px; }
    .baic-before-label { left: 12px; }
    .baic-after-label { right: 12px; }
    .baic-divider { width: 2px; }
}
