.buyweb-compare-images {
    position: relative;
    overflow: hidden;
}

.buyweb-compare-images-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.buyweb-compare-images-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.buyweb-compare-images-after {
    z-index: 1;
}

.buyweb-compare-images-before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.buyweb-compare-images-dragger {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 12px rgba(0,0,0,.5);
    z-index: 3;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.thanh-keo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    transform: translate(-50%, -50%);
    background: url("../img/icon-left-right.svg") center/contain no-repeat;
}

.buyweb-compare-images-dragger:active {
    cursor: grabbing;
}