/* Standalone styles. Override --ba-accent on .ba-slider to match another site. */
.ba-slider {
  --ba-accent: #04354f;
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  color: #243746;
  font: 16px/1.5 Arial, sans-serif;
  text-align: center;
}
.ba-slider *, .ba-slider *::before, .ba-slider *::after { box-sizing: border-box; }
.ba-slider .ba-pair { margin: 0 0 16px; }
.ba-slider .ba-pair img { display: block; width: 100%; height: auto; margin: 0; }
.ba-slider [hidden] { display: none !important; }
.ba-slider.ba-ready .ba-pair {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  background: #e9eef0;
  isolation: isolate;
  --ba-position: 50%;
}
.ba-slider.ba-ready .ba-pair img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}
.ba-slider.ba-ready .ba-before { z-index: 1; clip-path: inset(0 calc(100% - var(--ba-position)) 0 0); }
.ba-slider .ba-label {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 4px;
  background: #04354fe6;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}
.ba-slider .ba-label-before { left: 12px; }
.ba-slider .ba-label-after { right: 12px; }
.ba-slider .ba-divider {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--ba-position);
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 5px #0006;
  pointer-events: none;
}
.ba-slider .ba-divider::after {
  content: '\2039  \203A';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ba-accent);
  color: #fff;
  font-size: 27px;
  line-height: 1;
}
.ba-slider .ba-range {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.ba-slider .ba-pair:focus-within { outline: 3px solid var(--ba-accent); outline-offset: 3px; }
.ba-slider .ba-help { margin: 8px 0 12px; font-size: 13px; }
.ba-slider .ba-controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ba-slider .ba-button {
  appearance: none;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--ba-accent);
  border-radius: 5px;
  background: #fff;
  color: var(--ba-accent);
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}
.ba-slider .ba-button:hover { background: var(--ba-accent); color: #fff; }
.ba-slider .ba-button:focus-visible { outline: 3px solid var(--ba-accent); outline-offset: 3px; }
.ba-slider .ba-status { font-size: 14px; }
