.flytrap-ba {
  --flytrap-ba-height: 520px;
  --flytrap-ba-start: 50%;
  --flytrap-ba-radius: 24px;
  --flytrap-ba-border: rgba(88, 98, 53, 0.18);
  --flytrap-ba-shadow: 0 18px 40px rgba(58, 47, 18, 0.10);
  --flytrap-ba-ink: #3f5422;
  --flytrap-ba-white: #fffdf7;
  position: relative;
  width: 100%;
}

.flytrap-ba__media {
  position: relative;
  width: 100%;
  height: var(--flytrap-ba-height);
  overflow: hidden;
  border-radius: var(--flytrap-ba-radius);
  border: 1px solid var(--flytrap-ba-border);
  background: linear-gradient(135deg, #d8d2bc, #c8c0a3);
  box-shadow: var(--flytrap-ba-shadow);
  isolation: isolate;
}

.flytrap-ba__image,
.flytrap-ba__before-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flytrap-ba__image {
  display: block;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.flytrap-ba__before-wrap {
  width: var(--flytrap-ba-start);
  overflow: hidden;
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  z-index: 2;
}

.flytrap-ba__line {
  position: absolute;
  inset: 0 auto 0 var(--flytrap-ba-start);
  width: 0;
  z-index: 4;
}

.flytrap-ba__line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: rgba(255, 255, 255, 0.82);
}

.flytrap-ba__handle {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--flytrap-ba-white);
  border: 1px solid rgba(88, 98, 53, 0.16);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.flytrap-ba__arrows {
  font-size: 18px;
  line-height: 1;
  color: var(--flytrap-ba-ink);
}

.flytrap-ba__labels {
  position: absolute;
  inset: 18px 18px auto 18px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.flytrap-ba__label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--flytrap-ba-ink);
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(88, 98, 53, 0.12);
  box-shadow: 0 6px 16px rgba(58, 47, 18, 0.06);
}

.flytrap-ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
}

.flytrap-ba:focus-within .flytrap-ba__handle {
  box-shadow: 0 0 0 4px rgba(255, 253, 247, 0.72), 0 12px 24px rgba(0, 0, 0, 0.14);
}

@media (max-width: 782px) {
  .flytrap-ba {
    --flytrap-ba-height: 360px;
    --flytrap-ba-radius: 20px;
  }

  .flytrap-ba__labels {
    inset: 12px 12px auto 12px;
  }

  .flytrap-ba__label {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }

  .flytrap-ba__handle {
    width: 48px;
    height: 48px;
  }
}
