.route-slider-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: -2px 0 10px;
}

.route-slider-status {
  min-width: 84px;
  margin-right: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.route-slider-button {
  width: 46px;
  height: 46px;
  display: inline-grid;
  flex: 0 0 46px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(33, 72, 63, .24);
  border-radius: 50%;
  background: #fff;
  color: var(--sage-deep);
  box-shadow: 0 4px 14px rgba(28, 49, 44, .08);
  cursor: pointer;
}

.route-slider-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-slider-button:hover:not(:disabled) {
  border-color: var(--sage-deep);
  background: var(--sage-deep);
  color: #fff;
}

.route-slider-button:focus-visible,
.route-strip:focus-visible {
  outline: 3px solid rgba(33, 72, 63, .32);
  outline-offset: 3px;
}

.route-slider-button:disabled {
  opacity: .35;
  cursor: default;
  box-shadow: none;
}

.route-slider-frame {
  position: relative;
}

.route-slider-frame::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 2px;
  right: 0;
  bottom: 14px;
  width: 42px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(238, 244, 241, 0), rgba(238, 244, 241, .92));
  transition: opacity .2s ease;
}

.route-block-optional .route-slider-frame::after {
  background: linear-gradient(90deg, rgba(248, 246, 240, 0), rgba(248, 246, 240, .94));
}

.route-block-addons {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(33, 72, 63, .14);
}

.route-block-addons .route-slider-frame::after {
  background: linear-gradient(90deg, rgba(248, 246, 240, 0), rgba(248, 246, 240, .94));
}

.route-slider-frame.is-at-end::after {
  opacity: 0;
}

.route-slider-frame .route-strip {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 760px) {
  .route-slider-controls {
    justify-content: space-between;
    margin-top: 0;
  }

  .route-slider-status {
    margin-right: auto;
    text-align: left;
  }

  .route-block-addons {
    margin-top: 22px;
    padding-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-slider-frame .route-strip {
    scroll-behavior: auto;
  }
}
