/* Background Remover Tool Styles */
.comparison-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 16px 0;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.slider-canvas {
  display: block;
  width: 100%;
  height: auto;
}
.slider-canvas:last-of-type {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: inset(0 0 0 50%);
}
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}
.slider-line {
  width: 2px;
  height: 100%;
  background: #fff;
  margin: 0 auto;
  box-shadow: 0 0 4px rgba(0,0,0,.5);
}
.slider-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  pointer-events: auto;
  cursor: ew-resize;
}
.slider-label {
  position: absolute;
  top: 12px;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,.5);
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
}
.slider-label-left { left: 12px; }
.slider-label-right { right: 12px; }

/* Checkered transparency background */
.checker-bg {
  background-image: repeating-conic-gradient(#d4d4d4 0% 25%, #fff 0% 50%);
  background-size: 16px 16px;
}

/* Mobile */
@media (max-width: 768px) {
  .slider-circle { width: 36px; height: 36px; }
}
