.ride-backdrop {
  position: fixed;
  inset: 0;
  z-index: 995;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(38, 21, 20, .58);
  backdrop-filter: blur(10px);
}

.ride-backdrop[hidden] {
  display: none;
}

.ride-dialog {
  width: min(440px, 100%);
  border: 1px solid rgba(127, 24, 28, .22);
  border-radius: 24px;
  background: var(--paper, #fffaf2);
  box-shadow: 0 24px 70px rgba(54, 27, 23, .22);
  padding: 26px;
  outline: none;
}

.ride-dialog h2 {
  margin: 4px 0 8px;
  font: 500 clamp(2rem, 8vw, 3.2rem)/.95 var(--font-display);
}

.ride-dialog p {
  margin: 0;
  color: var(--muted, #766b62);
  line-height: 1.6;
}

.ride-options {
  display: grid;
  gap: 12px;
  margin: 22px 0 12px;
}

.ride-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid var(--line, rgba(54, 27, 23, .16));
  border-radius: 16px;
  background: rgba(255, 255, 255, .68);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.ride-option:hover,
.ride-option:focus-visible {
  transform: translateY(-2px);
  background: white;
  box-shadow: 0 14px 28px rgba(54, 27, 23, .12);
}

.ride-option strong,
.ride-option span {
  display: block;
}

.ride-option span {
  margin-top: 4px;
  color: var(--muted, #766b62);
  font-size: .84rem;
}

.ride-close {
  width: 100%;
  margin-top: 6px;
}
