/* Transparent, aligned before/after artwork; no image scaling during reveal. */
.plugin-compare {
  --split: 50%;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  cursor: default;
}
.plugin-compare__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3072 / 1634;
  background: var(--site-bg, #FAFBFD);
  overflow: hidden;
  border-radius: 8px;
  isolation: isolate;
}
.plugin-compare__stage img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.plugin-compare__after {
  position: absolute;
  inset: 0;
  /* A matching backing stops transparent pixels exposing the original below. */
  background: var(--site-bg, #FAFBFD);
  clip-path: inset(0 0 0 var(--split));
}
.plugin-compare__divider {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  transform: translateX(-50%);
  background: #17345C;
  box-shadow: 0 0 0 1px rgba(255,255,255,.6);
  pointer-events: none;
}
.plugin-compare__handle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #17345C;
  background: #fff;
  border: 1px solid rgba(23,52,92,.18);
  box-shadow: var(--site-shadow-sm);
}
.plugin-compare__range {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: -22px;
  width: calc(100% + 44px);
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.plugin-compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; }
.plugin-compare__range::-moz-range-thumb { width: 44px; height: 44px; border: 0; }
.plugin-compare__stage:has(.plugin-compare__range:focus-visible) { outline: 3px solid #467cc3; outline-offset: 4px; }
.plugin-compare__stage:hover .plugin-compare__handle,
.plugin-compare__stage:has(.plugin-compare__range:focus-visible) .plugin-compare__handle { border-color: #17345C; }
.plugin-compare__legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #42536C;
  font: 500 12px/1.5 'Manrope',sans-serif;
}
.plugin-compare__legend > span:first-child,
.plugin-compare__legend > span:last-child { font-size: 14px; font-weight: 600; }
.plugin-compare__hint { color: #65758B; font-weight: 400; }
[data-r="lb-box"]:has(.plugin-compare) { background: var(--site-bg, #FAFBFD) !important; overflow: auto !important; }
[data-r="lb-box"] > sc-if,
[data-r="lb-box"] > .plugin-compare { width: 100%; min-width: 0; flex: 0 0 100%; }
[data-r="lb-box"] .plugin-compare__legend { padding: 0 20px 16px; }
@media (max-width:767px) {
  [data-r="lb-overlay"] { padding: 12px !important; }
  [data-r="lb-box"] { max-width: 100% !important; }
  .plugin-compare__handle { width: 38px; height: 38px; }
  .plugin-compare__handle svg { width: 21px; height: 18px; }
  .plugin-compare__legend { margin-top: 10px; font-size: 11px; }
  .plugin-compare__legend > span:first-child,
  .plugin-compare__legend > span:last-child { font-size: 13px; }
}
