.mok-compare
{
  position: relative;
  width: 100%;
  height: clamp(220px, 45vw, 460px);
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  user-select: none;
  touch-action: none;
}

.mok-compare.is-disabled
{
  opacity: 0.7;
  pointer-events: none;
}

.mok-compare-layer
{
  position: absolute;
  inset: 0;
}

.mok-compare-layer--before
{
  overflow: hidden;
}

.mok-compare-img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mok-compare-divider
{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  transform: translateX(-1px);
  pointer-events: none;
}

.mok-compare-divider::before
{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.mok-compare-handle
{
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.mok-compare-handle::before,
.mok-compare-handle::after
{
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(255, 255, 255, 0.9);
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) rotate(45deg);
}

.mok-compare-handle::before
{
  left: 12px;
  transform: translateY(-50%) rotate(225deg);
}

.mok-compare-handle::after
{
  right: 12px;
}

.mok-compare-badge
{
  position: absolute;
  top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

.mok-compare-badge--before
{
  left: 10px;
}

.mok-compare-badge--after
{
  right: 10px;
}

.mok-desc-embed
{
  margin: 14px 0;
}

@supports (aspect-ratio: 16/9)
{
  .mok-compare
  {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
