@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@700&display=swap');

.ba-wrap {
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: 1px solid #E5E9EE;
  border-radius: 16px;
  overflow: hidden;
}

.ba-slider {
  --pos: 50%;
  position: relative;
  width: 100%;
  height: 440px;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.ba-layer {
  position: absolute;
  inset: 0;
}
.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-before { background: #E7EDF2; }
.ba-after {
  background: #FFF1E0;
  clip-path: inset(0 0 0 var(--pos));
}

/* divider line */
.ba-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 1px;
  background: rgba(255,255,255,.9);
  transform: translateX(-50%);
  pointer-events: none;
}

/* handle */
.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 40px;
  height: 64px;
  background: #fff;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 2;
  outline: none;
}
.ba-arrow {
  font-size: 20px;
  line-height: 1;
  color: #02254B;
  font-family: Arial, sans-serif;
}

/* labels */
.ba-labels {
  display: flex;
  padding: 18px 24px 22px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}
.ba-labels span { flex: 1; }
.ba-label-before { color: #FF9C1D; }
.ba-label-after  { color: #02254B; }

@media (max-width: 767px) {
  .ba-slider { height: 220px; }
  .ba-labels { font-size: 20px; padding: 14px 16px 18px; }
}