#s-active .ride-updates-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 4px 0 0;
  padding: 0 10px 0 0;
  border: 0;
  background: none;
  color: var(--ride-text);
  font: 620 13px/1.3 var(--font-ui);
}
#s-active .ride-updates-trigger[hidden] { display: none; }
#s-active .ride-updates-trigger svg { width: 16px; height: 16px; }

.ride-updates {
  --updates-overview: #111212;
  --updates-surface: #050505;
  --updates-ink: #f7f7f6;
  --updates-muted: #adadab;
  --updates-accent: #a9d65e;
  --updates-progress: .25;
  width: min(490px, calc(100% - 28px));
  max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: auto;
  padding: 0;
  box-sizing: border-box;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  color: var(--updates-ink);
  background: var(--updates-surface);
  box-shadow: 0 20px 64px #0008;
  color-scheme: dark;
  font-family: var(--font-ui, system-ui, sans-serif);
}
.ride-updates::backdrop {
  background: #07080769;
  -webkit-backdrop-filter: var(--passenger-backdrop-blur, none);
  backdrop-filter: var(--passenger-backdrop-blur, none);
}
:root[data-theme=light] .ride-updates::backdrop { background: #11171155; }
.ride-updates[open] { animation: ride-updates-enter var(--ui-motion-standard,240ms) var(--ui-motion-ease,cubic-bezier(.2,.85,.25,1)); }
@keyframes ride-updates-enter {
  from { opacity: .84; transform: translateY(var(--ui-motion-distance,10px)); }
  to { opacity: 1; transform: none; }
}
.ride-updates [hidden] { display: none !important; }
.ride-updates-overview {
  padding: 20px clamp(17px, 5vw, 25px) 13px;
  background:
    radial-gradient(ellipse 55% 64% at 83% 24%, #2530207a, transparent),
    linear-gradient(180deg, var(--updates-overview) 38%, var(--updates-surface));
}
.ride-updates-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.ride-updates-status-copy { min-width: 0; }
.ride-updates-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 13px; }
.ride-updates-heading .passenger-logo { display: block; width: clamp(82px, 22vw, 108px); height: auto; filter: none; }
.ride-updates-status-row strong {
  display: block;
  font-weight: 670;
  font-size: clamp(21px, 6.1vw, 29px);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.ride-updates[data-has-eta=false] .ride-updates-status-row strong { font-size: clamp(17px, 4.5vw, 22px); }
.ride-updates-status-row p {
  margin: 4px 0 0;
  color: var(--updates-muted);
  font-size: clamp(13px, 3.5vw, 17px);
  line-height: 1.26;
}
.ride-updates-vehicle {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(84px, 28vw, 140px);
}
.ride-updates-vehicle img { width: 100%; height: auto; margin: 0 0 -7px; }
.ride-updates-vehicle span {
  position: relative;
  z-index: 1;
  max-width: 100%;
  background: #2b2c2c;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: clamp(12px, 3.6vw, 17px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: .025em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-align: center;
}
.ride-updates[data-ride-phase=searching] { --updates-progress: 0; }
.ride-updates[data-ride-phase=waiting] { --updates-progress: .5; }
.ride-updates[data-ride-phase=in_progress] { --updates-progress: .75; }
.ride-updates-rail { position: relative; height: 24px; margin: 14px 0 0; }
.ride-updates-rail-track {
  position: absolute;
  inset: 9px 12px auto;
  height: 6px;
  border-radius: 6px;
  background: #4d4f4e;
}
.ride-updates-rail-track::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(var(--updates-progress));
  border-radius: inherit;
  background: linear-gradient(90deg, #a9d65e, #779e42);
}
.ride-updates .ride-updates-rail-marker {
  position: absolute;
  z-index: 1;
  top: 0;
  left: calc(12px + (100% - 24px) * var(--updates-progress));
  width: 24px;
  height: 24px;
  transform: translateX(-50%);
  fill: var(--updates-accent);
  stroke: var(--updates-ink);
  stroke-width: 1.7;
  stroke-linejoin: round;
}
@supports (width:1cqw) {
  .ride-updates-rail { container-type:inline-size; }
  .ride-updates .ride-updates-rail-marker {
    left:0;
    transform:translateX(calc((100cqw - 24px) * var(--updates-progress)));
  }
}
.ride-updates-rail-target {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border: 2px solid #dcebc8;
  border-radius: 50%;
  background: #83a847;
  box-shadow: 0 0 0 5px #83a84725;
}
/* Discrete milestones are announced as stages. The rail has no time or distance scale. */
.ride-updates-stages {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  margin: -1px;
  padding: 0;
  white-space: nowrap;
}
.ride-updates-choice { padding: 17px clamp(15px, 4.4vw, 24px) 16px; text-align: center; }
.ride-updates-choice h2 {
  margin: 0;
  color: var(--updates-ink);
  font-size: clamp(18px, 5vw, 21px);
  font-weight: 620;
  line-height: 1.24;
  letter-spacing: -.025em;
}
.ride-updates-choice p { max-width: 35ch; margin: 6px auto 0; color: var(--updates-muted); font-size: 13px; line-height: 1.38; }
.ride-updates-choice .ride-updates-feedback { color: var(--updates-ink); }
.ride-updates-actions { display: flex; gap: 8px; margin-top: 13px; }
.ride-updates .ride-updates-actions button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  padding: 9px 8px;
  border: 0;
  border-radius: 10px;
  color: var(--updates-ink);
  background: #171818;
  font: 550 clamp(14px, 4vw, 18px)/1.2 var(--font-ui);
}
.ride-updates .ride-updates-actions button:hover:not(:disabled) { background: #282a28; }
.ride-updates #ride-updates-enable { background: #b3ff85; color: #102116; font-weight:650; }
.ride-updates #ride-updates-enable:hover:not(:disabled) { background: #ceffb1; }
.ride-updates #ride-updates-enable:disabled { opacity: .62; cursor: default; }
.ride-updates[data-settings=true] .ride-updates-overview {display:none}
.ride-updates .ride-updates-choice {padding-block:14px}
.ride-updates .ride-updates-actions {margin-top:10px}
.ride-updates .ride-updates-actions button {min-height:44px}
.ride-updates :focus-visible { outline: 2px solid var(--updates-accent); outline-offset: 3px; }
@media (max-width: 350px) {
  .ride-updates { width: calc(100% - 18px); border-radius: 16px; }
  .ride-updates-overview { padding-inline: 14px; }
  .ride-updates-status-row { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .ride-updates[open] { animation: none; } }
@media (prefers-reduced-motion: no-preference) {
  .ride-updates[open]::backdrop { animation: ride-updates-backdrop var(--ui-motion-standard,220ms) ease-out both; }
  .ride-updates-rail-track::after,
  .ride-updates .ride-updates-rail-marker { transition: transform var(--ui-motion-standard,180ms) var(--ui-motion-ease,cubic-bezier(.16,1,.3,1)); }
}
@keyframes ride-updates-backdrop { from { opacity: 0; } }
@media (forced-colors: active) {
  .ride-updates::backdrop, :root[data-theme=light] .ride-updates::backdrop {
    background: #0b0d0bcb;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
