.service-rates {
  display: grid;
  gap: .75rem;
  width: 100%;
  margin: .25rem 0;
  color: inherit;
  font-size: 1rem;
  font-weight: 400;
  text-align: left;
}

.service-rate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .2rem .75rem;
}

.service-rate dt {
  font-weight: 600;
}

.service-rate dd {
  margin: 0;
  text-align: right;
}

.service-rate .service-rate-duration {
  font-size: .85rem;
  font-weight: 400;
}

.service-rates--compact {
  gap: .3rem;
  font-size: .9rem;
}

/* A featured service can be taller than the viewport with all three tiers. */
.carousel-slide--services {
  overflow-y: auto;
  align-items: flex-start;
  overscroll-behavior-y: contain;
}

.carousel-slide--services .slide-content {
  margin-top: auto;
  margin-bottom: auto;
}

@media (max-width: 767px) {
  .carousel-slide--services {
    scroll-padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 6rem);
  }

  .carousel-slide--services .slide-content {
    /* Leave room to scroll the final rate above the two fixed footer controls. */
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 6rem);
  }
}

@media (max-width: 380px) {
  .service-rate {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-rate dd {
    text-align: left;
  }
}
