
.elementor-widget-crx_image_compare_slider,
.elementor-widget-crx_image_compare_slider > .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
  box-sizing: border-box;
}

.elementor-widget-crx_image_compare_slider {
  min-width: 0;
}

.crx-ics {
  display: block;
  box-sizing: border-box;
  line-height: 0;
  --crx-ics-position: 50%;
  --crx-ics-label-offset: 20px;
  --crx-ics-aspect: 16 / 9;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  user-select: none;
  touch-action: auto;
  isolation: isolate;
  cursor: default;
}

/* v2.0: image-like layout shim.
   A real <img> stays in normal document flow so Elementor/Flexbox columns
   calculate this widget similarly to the native Image widget, especially on iPad/tablet. */
.crx-ics-flow-img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.crx-ics-image-like.crx-ics-height-auto {
  height: auto;
  aspect-ratio: auto;
}

.crx-ics-image-like.crx-ics-height-custom .crx-ics-flow-img {
  height: 100% !important;
  object-fit: cover;
}


.crx-ics.crx-ics-width-fill {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}


.crx-ics *,
.crx-ics *::before,
.crx-ics *::after {
  box-sizing: border-box;
}

.crx-ics-height-auto {
  height: auto;
  aspect-ratio: var(--crx-ics-aspect);
}

.crx-ics-height-custom {
  height: 520px;
}

.crx-ics-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.crx-ics-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  display: block;
  max-width: none !important;
  pointer-events: none;
  user-select: none;
}

.crx-ics-after-wrap {
  z-index: 1;
  clip-path: inset(0 0 0 var(--crx-ics-position));
  -webkit-clip-path: inset(0 0 0 var(--crx-ics-position));
}

.crx-ics-before-wrap {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--crx-ics-position)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--crx-ics-position)) 0 0);
}

.crx-ics-label {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(50% - 30px);
  color: #fff;
  background: rgba(0,0,0,0.48);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.crx-ics-label-top .crx-ics-label {
  top: var(--crx-ics-label-offset);
}

.crx-ics-label-bottom .crx-ics-label {
  bottom: var(--crx-ics-label-offset);
}

.crx-ics-label-before {
  left: var(--crx-ics-label-offset);
}

.crx-ics-label-after {
  right: var(--crx-ics-label-offset);
}

.crx-ics.is-at-left .crx-ics-label-before,
.crx-ics.is-at-right .crx-ics-label-after {
  opacity: 0;
  transform: translateY(-4px);
}

.crx-ics-handle {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: var(--crx-ics-position);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  touch-action: none;
  width: 64px;
}

.crx-ics-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 10px 30px rgba(0,0,0,0.18);
}

.crx-ics-handle-button {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 42px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.76);
  cursor: pointer;
  pointer-events: none;
}

.crx-ics-handle-button svg {
  width: 22px;
  height: 22px;
  display: block;
}

.crx-ics-range {
  position: absolute;
  z-index: 7;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: default;
  opacity: 0;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.crx-ics-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 52px;
  height: 52px;
  cursor: default;
}

.crx-ics-range::-moz-range-thumb {
  width: 52px;
  height: 52px;
  border: 0;
  cursor: default;
}

.crx-ics-placeholder {
  padding: 26px;
  border-radius: 16px;
  background: #f3f4f6;
  color: #374151;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 767px) {
  .crx-ics-height-custom {
    height: 360px;
  }

  .crx-ics-label {
    max-width: calc(50% - 18px);
    font-size: 12px;
    padding: 7px 10px;
  }

  .crx-ics-handle-button {
    width: 42px;
    height: 42px;
  }
}

/* v1.6: Dragging is limited to handle/line only so Elementor widget selection works normally. */
.crx-ics .crx-ics-img-wrap,
.crx-ics .crx-ics-img,
.crx-ics .crx-ics-label {
  cursor: default;
}

.crx-ics .crx-ics-handle,
.crx-ics .crx-ics-handle-line,
.crx-ics .crx-ics-handle-button {
  cursor: pointer;
}

.crx-ics.is-dragging,
.crx-ics.is-dragging .crx-ics-handle {
  cursor: pointer;
}


/* v1.8: Respect Elementor column/container width, including Tablet/iPad.
   The Elementor wrapper may be flex/grid/column based, so avoid forcing flex-basis.
   Only the internal slider fills the widget container. */
.elementor-widget-crx_image_compare_slider,
.elementor-widget-crx_image_compare_slider > .elementor-widget-container,
.elementor-widget-crx_image_compare_slider .elementor-widget-container {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.elementor-widget-crx_image_compare_slider > .elementor-widget-container,
.elementor-widget-crx_image_compare_slider .elementor-widget-container {
  width: 100% !important;
  max-width: none !important;
}

.elementor-widget-crx_image_compare_slider .crx-ics.crx-ics-respect-column,
.elementor-widget-crx_image_compare_slider .crx-ics.crx-ics-width-fill.crx-ics-respect-column {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  inline-size: 100% !important;
}

@media (min-width: 768px) and (max-width: 1366px) {
  .elementor-widget-crx_image_compare_slider > .elementor-widget-container,
  .elementor-widget-crx_image_compare_slider .elementor-widget-container,
  .elementor-widget-crx_image_compare_slider .crx-ics.crx-ics-respect-column {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    inline-size: 100% !important;
  }
}

body.elementor-device-tablet .elementor-widget-crx_image_compare_slider > .elementor-widget-container,
body.elementor-device-tablet .elementor-widget-crx_image_compare_slider .elementor-widget-container,
body.elementor-device-tablet .elementor-widget-crx_image_compare_slider .crx-ics.crx-ics-respect-column,
body.elementor-device-tablet_extra .elementor-widget-crx_image_compare_slider > .elementor-widget-container,
body.elementor-device-tablet_extra .elementor-widget-crx_image_compare_slider .elementor-widget-container,
body.elementor-device-tablet_extra .elementor-widget-crx_image_compare_slider .crx-ics.crx-ics-respect-column {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  inline-size: 100% !important;
}

/* v1.8: use Elementor-style hover animation class names.
   Elementor normally supplies these via its animations stylesheet; these rules are a safe fallback. */
.crx-ics.elementor-animation-grow,
.crx-ics.elementor-animation-shrink,
.crx-ics.elementor-animation-pulse,
.crx-ics.elementor-animation-pulse-grow,
.crx-ics.elementor-animation-pulse-shrink,
.crx-ics.elementor-animation-push,
.crx-ics.elementor-animation-pop,
.crx-ics.elementor-animation-bounce-in,
.crx-ics.elementor-animation-bounce-out,
.crx-ics.elementor-animation-rotate,
.crx-ics.elementor-animation-grow-rotate,
.crx-ics.elementor-animation-float,
.crx-ics.elementor-animation-sink,
.crx-ics.elementor-animation-bob,
.crx-ics.elementor-animation-hang,
.crx-ics.elementor-animation-skew,
.crx-ics.elementor-animation-skew-forward,
.crx-ics.elementor-animation-skew-backward,
.crx-ics.elementor-animation-wobble-horizontal,
.crx-ics.elementor-animation-wobble-vertical,
.crx-ics.elementor-animation-wobble-to-bottom-right,
.crx-ics.elementor-animation-wobble-to-top-right,
.crx-ics.elementor-animation-wobble-top,
.crx-ics.elementor-animation-wobble-bottom,
.crx-ics.elementor-animation-wobble-skew,
.crx-ics.elementor-animation-buzz,
.crx-ics.elementor-animation-buzz-out {
  transition-duration: 0.3s;
  transition-property: transform;
  transition-timing-function: ease-out;
  transform: perspective(1px) translateZ(0);
}

.crx-ics.elementor-animation-grow:hover { transform: scale(1.1); }
.crx-ics.elementor-animation-shrink:hover { transform: scale(0.9); }
.crx-ics.elementor-animation-pulse:hover { animation-name: crx-ics-pulse; animation-duration: 1s; animation-timing-function: linear; animation-iteration-count: infinite; }
.crx-ics.elementor-animation-pulse-grow:hover { animation-name: crx-ics-pulse-grow; animation-duration: .3s; animation-timing-function: linear; animation-iteration-count: infinite; animation-direction: alternate; }
.crx-ics.elementor-animation-pulse-shrink:hover { animation-name: crx-ics-pulse-shrink; animation-duration: .3s; animation-timing-function: linear; animation-iteration-count: infinite; animation-direction: alternate; }
.crx-ics.elementor-animation-push:hover { animation-name: crx-ics-push; animation-duration: .3s; animation-timing-function: linear; animation-iteration-count: 1; }
.crx-ics.elementor-animation-pop:hover { animation-name: crx-ics-pop; animation-duration: .3s; animation-timing-function: linear; animation-iteration-count: 1; }
.crx-ics.elementor-animation-bounce-in:hover { transform: scale(1.2); transition-timing-function: cubic-bezier(.47,2.02,.31,-.36); }
.crx-ics.elementor-animation-bounce-out:hover { transform: scale(0.8); transition-timing-function: cubic-bezier(.47,2.02,.31,-.36); }
.crx-ics.elementor-animation-rotate:hover { transform: rotate(4deg); }
.crx-ics.elementor-animation-grow-rotate:hover { transform: scale(1.1) rotate(4deg); }
.crx-ics.elementor-animation-float:hover { transform: translateY(-8px); }
.crx-ics.elementor-animation-sink:hover { transform: translateY(8px); }
.crx-ics.elementor-animation-skew:hover { transform: skew(-10deg); }
.crx-ics.elementor-animation-skew-forward:hover { transform: skew(-10deg); }
.crx-ics.elementor-animation-skew-backward:hover { transform: skew(10deg); }
.crx-ics.elementor-animation-bob:hover { animation-name: crx-ics-bob-float, crx-ics-bob; animation-duration: .3s, 1.5s; animation-delay: 0s, .3s; animation-timing-function: ease-out, ease-in-out; animation-iteration-count: 1, infinite; animation-fill-mode: forwards; animation-direction: normal, alternate; }
.crx-ics.elementor-animation-hang:hover { animation-name: crx-ics-hang-sink, crx-ics-hang; animation-duration: .3s, 1.5s; animation-delay: 0s, .3s; animation-timing-function: ease-out, ease-in-out; animation-iteration-count: 1, infinite; animation-fill-mode: forwards; animation-direction: normal, alternate; }
.crx-ics.elementor-animation-wobble-horizontal:hover { animation-name: crx-ics-wobble-horizontal; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: 1; }
.crx-ics.elementor-animation-wobble-vertical:hover { animation-name: crx-ics-wobble-vertical; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: 1; }
.crx-ics.elementor-animation-wobble-to-bottom-right:hover { animation-name: crx-ics-wobble-to-bottom-right; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: 1; }
.crx-ics.elementor-animation-wobble-to-top-right:hover { animation-name: crx-ics-wobble-to-top-right; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: 1; }
.crx-ics.elementor-animation-wobble-top:hover { animation-name: crx-ics-wobble-top; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: 1; }
.crx-ics.elementor-animation-wobble-bottom:hover { animation-name: crx-ics-wobble-bottom; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: 1; }
.crx-ics.elementor-animation-wobble-skew:hover { animation-name: crx-ics-wobble-skew; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: 1; }
.crx-ics.elementor-animation-buzz:hover { animation-name: crx-ics-buzz; animation-duration: .15s; animation-timing-function: linear; animation-iteration-count: infinite; }
.crx-ics.elementor-animation-buzz-out:hover { animation-name: crx-ics-buzz-out; animation-duration: .75s; animation-timing-function: linear; animation-iteration-count: 1; }

@keyframes crx-ics-pulse { 25% { transform: scale(1.1); } 75% { transform: scale(.9); } }
@keyframes crx-ics-pulse-grow { to { transform: scale(1.1); } }
@keyframes crx-ics-pulse-shrink { to { transform: scale(.9); } }
@keyframes crx-ics-push { 50% { transform: scale(.8); } 100% { transform: scale(1); } }
@keyframes crx-ics-pop { 50% { transform: scale(1.2); } }
@keyframes crx-ics-bob-float { 100% { transform: translateY(-8px); } }
@keyframes crx-ics-bob { 0% { transform: translateY(-8px); } 50% { transform: translateY(-4px); } 100% { transform: translateY(-8px); } }
@keyframes crx-ics-hang-sink { 100% { transform: translateY(8px); } }
@keyframes crx-ics-hang { 0% { transform: translateY(8px); } 50% { transform: translateY(4px); } 100% { transform: translateY(8px); } }
@keyframes crx-ics-wobble-horizontal { 16.65% { transform: translateX(8px); } 33.3% { transform: translateX(-6px); } 49.95% { transform: translateX(4px); } 66.6% { transform: translateX(-2px); } 83.25% { transform: translateX(1px); } 100% { transform: translateX(0); } }
@keyframes crx-ics-wobble-vertical { 16.65% { transform: translateY(8px); } 33.3% { transform: translateY(-6px); } 49.95% { transform: translateY(4px); } 66.6% { transform: translateY(-2px); } 83.25% { transform: translateY(1px); } 100% { transform: translateY(0); } }
@keyframes crx-ics-wobble-to-bottom-right { 16.65% { transform: translate(8px,8px); } 33.3% { transform: translate(-6px,-6px); } 49.95% { transform: translate(4px,4px); } 66.6% { transform: translate(-2px,-2px); } 83.25% { transform: translate(1px,1px); } 100% { transform: translate(0,0); } }
@keyframes crx-ics-wobble-to-top-right { 16.65% { transform: translate(8px,-8px); } 33.3% { transform: translate(-6px,6px); } 49.95% { transform: translate(4px,-4px); } 66.6% { transform: translate(-2px,2px); } 83.25% { transform: translate(1px,-1px); } 100% { transform: translate(0,0); } }
@keyframes crx-ics-wobble-top { 16.65% { transform: skew(-12deg); } 33.3% { transform: skew(10deg); } 49.95% { transform: skew(-6deg); } 66.6% { transform: skew(4deg); } 83.25% { transform: skew(-2deg); } 100% { transform: skew(0); } }
@keyframes crx-ics-wobble-bottom { 16.65% { transform: skew(-12deg); } 33.3% { transform: skew(10deg); } 49.95% { transform: skew(-6deg); } 66.6% { transform: skew(4deg); } 83.25% { transform: skew(-2deg); } 100% { transform: skew(0); } }
@keyframes crx-ics-wobble-skew { 16.65% { transform: skew(-12deg); } 33.3% { transform: skew(10deg); } 49.95% { transform: skew(-6deg); } 66.6% { transform: skew(4deg); } 83.25% { transform: skew(-2deg); } 100% { transform: skew(0); } }
@keyframes crx-ics-buzz { 50% { transform: translateX(3px) rotate(2deg); } 100% { transform: translateX(-3px) rotate(-2deg); } }
@keyframes crx-ics-buzz-out { 10% { transform: translateX(3px) rotate(2deg); } 20% { transform: translateX(-3px) rotate(-2deg); } 30% { transform: translateX(3px) rotate(2deg); } 40% { transform: translateX(-3px) rotate(-2deg); } 50% { transform: translateX(2px) rotate(1deg); } 60% { transform: translateX(-2px) rotate(-1deg); } 70% { transform: translateX(2px) rotate(1deg); } 80% { transform: translateX(-2px) rotate(-1deg); } 90% { transform: translateX(1px) rotate(0); } 100% { transform: translateX(-1px) rotate(0); } }


/* v1.9: iPad / Tablet full-width fix.
   Keep Elementor hover animation from v1.8, but force only this widget's own
   wrapper and internal slider to stretch to the available column/container width. */
.elementor-widget-crx_image_compare_slider {
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  min-inline-size: 0 !important;
  min-width: 0 !important;
  align-self: stretch !important;
}

.elementor-widget-crx_image_compare_slider > .elementor-widget-container,
.elementor-widget-crx_image_compare_slider .elementor-widget-container,
.elementor-widget-crx_image_compare_slider .crx-ics {
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  min-inline-size: 0 !important;
  min-width: 0 !important;
}

/* Elementor Flexbox Container sometimes controls widget width through CSS variables,
   especially around tablet breakpoints. Reset those variables for this widget only. */
.elementor-widget-crx_image_compare_slider {
  --container-widget-width: 100% !important;
  --container-widget-flex-grow: 1 !important;
}

/* Actual iPad/tablet viewport sizes and Elementor tablet preview classes. */
@media (min-width: 768px) and (max-width: 1180px) {
  .elementor-widget-crx_image_compare_slider,
  .elementor-widget-crx_image_compare_slider > .elementor-widget-container,
  .elementor-widget-crx_image_compare_slider .elementor-widget-container,
  .elementor-widget-crx_image_compare_slider .crx-ics {
    inline-size: 100% !important;
    width: 100% !important;
    max-inline-size: 100% !important;
    max-width: 100% !important;
    min-inline-size: 0 !important;
    min-width: 0 !important;
    align-self: stretch !important;
  }
}

body.elementor-device-tablet .elementor-widget-crx_image_compare_slider,
body.elementor-device-tablet .elementor-widget-crx_image_compare_slider > .elementor-widget-container,
body.elementor-device-tablet .elementor-widget-crx_image_compare_slider .elementor-widget-container,
body.elementor-device-tablet .elementor-widget-crx_image_compare_slider .crx-ics,
body.elementor-device-tablet_extra .elementor-widget-crx_image_compare_slider,
body.elementor-device-tablet_extra .elementor-widget-crx_image_compare_slider > .elementor-widget-container,
body.elementor-device-tablet_extra .elementor-widget-crx_image_compare_slider .elementor-widget-container,
body.elementor-device-tablet_extra .elementor-widget-crx_image_compare_slider .crx-ics {
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  min-inline-size: 0 !important;
  min-width: 0 !important;
  align-self: stretch !important;
}
