.sitsel-before-after-container {
    position: relative;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    width: 100%;
    touch-action: manipulation;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.sitsel-before-after-container.vertical {
    cursor: ns-resize;
}
body:not(.elementor-editor-active) .sitsel-before-after-container:not(.sitsel-ready) {
    opacity: 0;
    visibility: hidden;
}

.sitsel-before-after-container.sitsel-ready {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}


    
    .sitsel-before-after-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }
    
    .sitsel-after-image {
        z-index: 1;
    }
    
    .sitsel-before-image {
        z-index: 2;
    }
    
   /* Ensure divider is touchable */
.sitsel-divider {
    position: absolute;
    background-color: #ffffff;
    z-index: 3;
    pointer-events: auto;
    touch-action: manipulation;
}

.sitsel-before-after-container.horizontal .sitsel-divider {
    top: 0;
    left: 50%;
    height: 100%;
    width: 3px;
    cursor: ew-resize;
}

.sitsel-before-after-container.vertical .sitsel-divider {
    left: 0;
    top: 50%;
    width: 100%;
    height: 3px;
    cursor: ns-resize;
}

    
    .sitsel-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border-radius: 50%;
    z-index: 4;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
    border: 2px solid #cccccc;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.sitsel-before-after-container.vertical .sitsel-handle {
    cursor: ns-resize;
}

.sitsel-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.sitsel-handle svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    fill: none;
}

@media (hover: none) and (pointer: coarse) {
    .sitsel-handle {
        width: 60px;
        height: 60px;
        cursor: grab;
    }
    
    .sitsel-handle:active {
        cursor: grabbing;
    }
}
  .sitsel-label {
    position: absolute;
    top: 20px;
    padding: 8px 15px;
    background-color: rgba(0,0,0,0.7);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 5;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sitsel-label.sitsel-label-hidden {
    opacity: 0;
    pointer-events: none;
}

.sitsel-label.before {
    left: 20px;
    top: 20px;
}

.sitsel-label.after {
    right: 20px;
    top: 20px;
}

.sitsel-before-after-container.vertical .sitsel-label.before {
    left: auto;
    right: 20px;
    top: 20px;
    bottom: auto;
}

.sitsel-before-after-container.vertical .sitsel-label.after {
    left: auto;
    right: 20px;
    bottom: 20px;
    top: auto;
}

@media (max-width: 767px) {
    .sitsel-label {
        font-size: 12px;
        padding: 6px 12px;
    }
}