.at-compare {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
}
.at-compare-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  cursor: ew-resize;
  touch-action: none;
}
@media (max-width: 767.98px) {
  .at-compare-frame {
    max-height: 65vh;
  }
}
.at-compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.at-compare-img--before {
  clip-path: inset(0 50% 0 0);
}
.at-compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}
.at-compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f0f0f;
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  z-index: 3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.at-compare-handle:focus-visible {
  outline: 2px solid var(--at-theme-primary, #f0460e);
  outline-offset: 3px;
}
.at-compare-label {
  position: absolute;
  bottom: 20px;
  z-index: 2;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}
.at-compare-label--before {
  left: 20px;
}
.at-compare-label--after {
  right: 20px;
}
@media (max-width: 574.98px) {
  .at-compare-handle {
    width: 44px;
    height: 44px;
  }
  .at-compare-label {
    font-size: 10px;
    padding: 5px 12px;
  }
}
