.coe-compare {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #eeebe5;
  direction: ltr;
}
.coe-compare .coe-compare__after {
  display: block;
  width: 100%;
  height: auto;
}
.coe-compare .coe-compare__before {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 calc(100% - var(--coe-split)) 0 0);
}
.coe-compare__line {
  position: absolute;
  inset: 0 auto 0 var(--coe-split);
  width: 2px;
  transform: translateX(-50%);
  pointer-events: none;
  background: #fff;
  box-shadow: 0 0 4px #0008;
}
.coe-compare__label {
  position: absolute;
  top: 12px;
  padding: 4px 9px;
  border-radius: 2px;
  color: #fff;
  background: #181818e5;
  font: 650 13px/1.4 system-ui, sans-serif;
  pointer-events: none;
}
.coe-compare__label--before { left: 12px; }
.coe-compare__label--after { right: 12px; }
.coe-compare input.coe-compare__range {
  position: absolute;
  inset: 0 auto 0 -22px;
  width: calc(100% + 44px);
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.coe-compare__range::-webkit-slider-thumb {
  width: 44px;
  height: 44px;
  appearance: none;
}
.coe-compare__range::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border: 0;
}
.coe-compare__handle {
  position: absolute;
  top: 50%;
  left: clamp(22px, var(--coe-split), calc(100% - 22px));
  transform: translate(-50%, -50%);
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #191a18;
  font: 400 25px/1 system-ui, sans-serif;
  box-shadow: 0 2px 8px #0005;
  pointer-events: none;
}
.coe-compare__range:focus-visible + .coe-compare__handle {
  outline: 2px solid #191a18;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #fff;
}
