/* Before/after comparison slider (ceramic + paint correction pages) */
.ba-slider {
  position: relative;
  z-index: 31;
  margin: 28px auto 10px;
  max-width: 880px;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .5);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-slider .ba-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ba-slider .ba-tag {
  position: absolute;
  top: 12px;
  z-index: 3;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-slider .ba-tag-before { left: 12px; }
.ba-slider .ba-tag-after { right: 12px; }
.ba-slider .ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 0;
  z-index: 4;
  outline: none;
}
.ba-slider .ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  width: 4px;
  background: linear-gradient(180deg, #ffe45e, #ffd60a 55%, #e9b949);
  box-shadow: 0 0 10px rgba(0, 0, 0, .55);
}
.ba-slider .ba-knob {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe45e, #ffd60a);
  color: #111;
  border: 1px solid rgba(0, 0, 0, .25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}
.ba-slider .ba-handle:focus-visible .ba-knob {
  box-shadow: 0 0 0 3px #ffd60a, 0 2px 10px rgba(0, 0, 0, .5);
}
.ba-caption {
  max-width: 880px;
  margin: 8px auto 0;
  text-align: center;
  font-size: 14px;
  opacity: .75;
}
