/* Table of contents: 1. Component 2. Responsive 3. Accessibility */
.inoforest-compare-slider { --pos: 50%; position: relative; aspect-ratio: var(--f26-ratio, 4 / 3); overflow: hidden; background: var(--inoforest-custom-warm, #f3e9dc); border-radius: 26px; box-shadow: 0 18px 44px rgb(43 26 18 / 12%); }
.inoforest-compare-slider figure { position: absolute; inset: 0; margin: 0; }
.inoforest-compare-slider img { width: 100%; height: 100%; object-fit: cover; }
.inoforest-compare-slider__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
[dir="rtl"] .inoforest-compare-slider__before { clip-path: inset(0 0 0 calc(100% - var(--pos))); }
.inoforest-compare-slider__handle { position: absolute; inset-block: 0; inset-inline-start: var(--pos); width: 0; pointer-events: none; }
.inoforest-compare-slider__handle::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: -1.5px; width: 3px; background: #fff; box-shadow: 0 0 12px color-mix(in srgb, #2b1a12 30%, transparent); }
.inoforest-compare-slider__handle i {
  position: absolute; inset-block-start: 50%; inset-inline-start: -29px;
  display: grid; place-items: center;
  width: 58px; height: 58px;
  margin-block-start: -29px;
  font-size: 22px;
  color: var(--inoforest-color-heading, #2b1a12);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 18px 44px rgb(43 26 18 / 12%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.inoforest-compare-slider:hover .inoforest-compare-slider__handle i { transform: scale(1.08); }
.inoforest-compare-slider:has(.inoforest-compare-slider__range:active) .inoforest-compare-slider__handle i { transform: scale(0.92); }
.inoforest-compare-slider:has(.inoforest-compare-slider__range:focus-visible) .inoforest-compare-slider__handle i { outline: 3px solid var(--inoforest-color-primary, #b23a1e); outline-offset: 3px; }
.inoforest-compare-slider__label { position: absolute; inset-block-end: 18px; z-index: 1; padding: 7px 14px; font-size: 0.8rem; font-weight: 700; color: var(--inoforest-color-heading, #2b1a12); background: color-mix(in srgb, #fff 92%, transparent); border-radius: 999px; pointer-events: none; }
.inoforest-compare-slider__label--before { inset-inline-start: 18px; }
.inoforest-compare-slider__label--after { inset-inline-end: 18px; }
.inoforest-compare-slider[data-f26-show-labels="false"] .inoforest-compare-slider__label { display: none; }
.inoforest-compare-slider__range { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; cursor: ew-resize; opacity: 0; -webkit-appearance: none; appearance: none; }




.elementor .inoforest-compare-slider img { width:100%; height:100%; object-fit:cover; }
.inoforest-compare-slider input.inoforest-compare-slider__range { width:100%; height:100%; opacity:0; position:absolute; inset:0; padding:0; }

/* Preserve intrinsic sizing inside native flex containers; Advanced width still takes precedence. */
.elementor-widget-inoforest-compare-slider:not([class*="elementor-widget__width-"]) { width:100%; }
.elementor .inoforest-compare-slider img { display:block; }

/* Responsive and reduced-motion alternatives. */

/* Responsive and reduced-motion alternatives. */
@media (prefers-reduced-motion: reduce) {
.inoforest-compare-slider *, .inoforest-compare-slider *::before, .inoforest-compare-slider *::after { animation: none; transition: none; }
}
