#driver-offers[open] {
  position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(205px, 1fr) auto auto auto;
  gap: 8px; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0;
  padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  border: 0; border-radius: 0; background: radial-gradient(ellipse at 50% 0, #e6f0ff, #f4f6fa 60%); overflow-y: auto; overscroll-behavior: contain;
}
#driver-offers :is(.offer-header, .offer-map, .offer-summary, .offer-slides, .offer-actions) { width: min(100%, 900px); margin-inline: auto; }
#driver-offers p { margin: 0; }
.offer-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.offer-header h1 { margin: 0; font-size: clamp(1.55rem, 5.5vw, 2.55rem); }
.offer-header .offer-close, .offer-map .offer-locate { width: 44px; height: 44px; }
#driver-offers .offer-map { min-height: 0; border: 1px solid #dce6f4; border-radius: 23px; }
.offer-map .offer-locate { position: absolute; z-index: 1; top: 10px; left: 10px; color: var(--accent-dark); }
.offer-map .map-location-status { position: absolute; z-index: 1; top: 62px; left: 10px; max-width: calc(100% - 68px); pointer-events: none; }
.offer-map .map-status { bottom: 43px; }
.offer-map .offer-route-status {
  position: absolute; z-index: 1; bottom: 10px; left: 10px; max-width: calc(100% - 58px);
  padding: 4px 7px; border-radius: 9px; background: #fff; color: var(--muted); font-size: .75rem;
}
.offer-route-status:empty { display: none; }
.offer-summary { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; align-items: center; min-height: 42px; }
.offer-distance { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 12px; background: #e6effd; color: #254e82; font-size: .79rem; font-weight: 740; }
.offer-pager { display: flex; align-items: center; gap: 4px; font-size: .76rem; color: var(--muted); }
.offer-pager button { width: 40px; height: 40px; }
.offer-pager [data-offer-step="-1"] svg { transform: rotate(90deg); }
.offer-pager [data-offer-step="1"] svg { transform: rotate(-90deg); }
.offer-slides {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 22px;
}
.offer-slide { scroll-snap-align: start; display: grid; gap: 8px; align-content: start; min-width: 0; padding: 12px 13px; background: #fff; border: 1px solid #dce8f7; border-radius: 22px; }
.offer-identity { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; }
.offer-passenger { display: flex; align-items: center; gap: 7px; color: #476080; font-size: .73rem; }
.offer-avatar { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #e8f1ff; color: #124da1; }
.offer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.offer-amount { border-radius: 14px; background: #edf5ff; padding: 5px 8px; color: #345e8e; }
.offer-amount > small { font-size: .66rem; }
.offer-service { color: #466081; font-size: .81rem; font-weight: 720; }
.offer-price { font-size: clamp(1.4rem, 5.4vw, 2.4rem); line-height: 1.08; color: #124da1; letter-spacing: -.055em; }
.offer-price small { display: inline; letter-spacing: 0; }
.offer-stops { display: grid; gap: 5px; margin: 4px 0 0; padding-left: 9px; border-left: 2px solid #bad8ff; }
.offer-stops dt { color: var(--muted); font-size: .7rem; }
.offer-stops dd { margin: 0; color: var(--ink); font-size: .82rem; font-weight: 650; overflow-wrap: anywhere; }
.offer-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; }
.offer-actions button { justify-content: center; min-height: 50px; border-radius: 16px; }
.offer-error { grid-column: 1 / -1; color: #9c213c; font-size: .81rem; }
.offer-error:empty { display: none; }
