/* Ride info PiP — compact floating card, solid scrim, no outline */

.cc-ride-pip-bounds {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  pointer-events: none;
  z-index: 40;
}

.cc-ride-pip {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(220px, 68vw, 272px);
  box-sizing: border-box;
  pointer-events: auto;
  touch-action: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.cc-ride-pip__scrim {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 14px 14px;
  box-sizing: border-box;
  background: var(--cc-floating-surface-base, #0b100e);
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 var(--edge-glow-line, rgba(248, 239, 222, 0.75)),
    0 0 14px var(--edge-glow-outer, rgba(248, 239, 222, 0.25));
}

.cc-ride-pip__handle,
.cc-ride-pip__collapse,
.cc-ride-pip__text-action {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  font-family: 'Open Sans', system-ui, sans-serif;
  color: #f8efde;
  background: transparent;
}

.cc-ride-pip__handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 4px 0 0;
  cursor: grab;
}

.cc-ride-pip__handle:active {
  cursor: grabbing;
}

.cc-ride-pip__handle-bar {
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: #635f55;
}

.cc-ride-pip__collapse {
  align-self: flex-end;
  margin: -38px 0 0;
  padding: 10px 8px;
  font-size: 16px;
  line-height: 24px;
  color: var(--brand-muted, #b8a58e);
  font-weight: 500;
}

.cc-ride-pip__sheet {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(62dvh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cc-ride-pip__sheet:has(> .cc-ride-pip-content:not(.cc-ride-pip-content--expanded)) {
  max-height: min(40dvh, 340px);
}

.cc-ride-pip__sheet:has(> .cc-ride-pip-content--expanded) {
  max-height: min(58dvh, 480px);
}

.cc-ride-pip__eyebrow {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: #c5a880;
  font-weight: 700;
}

.cc-ride-pip__eta-label {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--brand-muted, #b8a58e);
}

.cc-ride-pip__eta {
  margin: 0;
  font-family: 'LMRoman10', Georgia, serif;
  font-size: 28px;
  line-height: 32px;
  color: #f8efde;
}

.cc-ride-pip__title {
  margin: 0;
  font-family: 'LMRoman10', Georgia, serif;
  font-size: 22px;
  line-height: 28px;
  color: #f8efde;
}

.cc-ride-pip__line,
.cc-ride-pip__meta {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: #f8efde;
  text-wrap: balance;
}

.cc-ride-pip-content #status-driver {
  margin-bottom: 0;
}

.cc-ride-pip__music.playback-main {
  padding: 0;
  margin: 0;
  max-width: none;
  flex: 0 0 auto;
}

.cc-ride-pip__music #playback-empty,
.cc-ride-pip__music #playback-active:not(.cc-ride-pip__music-detail) {
  display: none !important;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.cc-ride-pip__meta {
  color: #beb5a4;
}

.cc-ride-pip__pill-label {
  display: none;
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: #f8efde;
  font-weight: 600;
}

.cc-ride-pip__actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.cc-ride-pip__text-action {
  padding: 10px 4px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-align: left;
  color: #f8efde;
}

.cc-ride-pip__text-action--strong {
  font-weight: 700;
}

.cc-ride-pip__text-action--quiet {
  color: var(--brand-muted, #b8a58e);
  font-weight: 500;
}

.cc-ride-pip__music--compact .playback-track {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #f8efde;
}

.cc-ride-pip__music--compact .playback-artist {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--brand-muted, #b8a58e);
}

.cc-ride-pip__music-transport {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.cc-ride-pip__icon-btn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #f8efde;
  background: transparent;
}

.cc-ride-pip__icon-btn--toggle {
  color: #c5a880;
}

.cc-ride-pip-content {
  gap: 4px;
}

.cc-ride-pip-content:not(.cc-ride-pip-content--expanded) .cc-ride-pip__music-detail,
.cc-ride-pip-content:not(.cc-ride-pip-content--expanded) #playback-active {
  display: none !important;
}

.cc-ride-pip-content:not(.cc-ride-pip-content--expanded) #playback-live {
  gap: 0;
  min-height: 0;
}

.cc-ride-pip__music--compact .playback-live {
  gap: 0;
}

.cc-ride-pip__music--compact .playback-dock {
  margin: 0;
}

.cc-ride-pip__music #btn-music-back,
.cc-ride-pip__music #playback-cover-frame,
.cc-ride-pip__music #spotify-album-art,
.cc-ride-pip__music #spotify-queue {
  display: none !important;
}

.cc-ride-pip-content:not(.cc-ride-pip-content--expanded) .cc-ride-pip__music-detail .playback-track,
.cc-ride-pip-content:not(.cc-ride-pip-content--expanded) .cc-ride-pip__music-detail .playback-artist,
.cc-ride-pip-content:not(.cc-ride-pip-content--expanded) .cc-ride-pip__music-label {
  display: none;
}

.cc-ride-pip-content:not(.cc-ride-pip-content--expanded) .cc-ride-pip__details {
  display: none !important;
}

.cc-ride-pip__expand-toggle {
  margin-top: 2px;
  color: var(--brand-muted, #b8a58e);
  font-weight: 500;
}

.cc-ride-pip-content--expanded .cc-ride-pip__music-detail .playback-track,
.cc-ride-pip-content--expanded .cc-ride-pip__music-detail .playback-artist,
.cc-ride-pip-content--expanded .cc-ride-pip__music-label {
  display: block;
}

.cc-ride-pip-content--expanded .cc-ride-pip__music-detail .playback-track {
  font-size: 16px;
  line-height: 24px;
}

.cc-ride-pip-content--expanded .cc-ride-pip__music-detail .playback-artist {
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 4px;
}

.cc-map-ride-mode .cc-ride-pip__music {
  overflow: hidden;
  contain: layout paint;
}

.cc-ride-pip--collapsed {
  width: auto;
  min-width: 160px;
  max-width: min(72vw, 240px);
}

.cc-ride-pip--collapsed .cc-ride-pip__title,
.cc-ride-pip--collapsed .cc-ride-pip__line,
.cc-ride-pip--collapsed .cc-ride-pip__meta,
.cc-ride-pip--collapsed .cc-ride-pip__actions,
.cc-ride-pip--collapsed .cc-ride-pip__music,
.cc-ride-pip--collapsed .cc-ride-pip__eta-label,
.cc-ride-pip--collapsed .cc-ride-pip__eta,
.cc-ride-pip--collapsed .cc-ride-pip__eyebrow {
  display: none !important;
}

.cc-ride-pip--collapsed .cc-ride-pip__pill-label {
  display: block;
}

.cc-ride-pip--collapsed .cc-ride-pip__scrim {
  padding: 12px 16px;
  border-radius: 999px;
}

.cc-ride-pip--collapsed .cc-ride-pip__collapse,
.cc-ride-pip--collapsed .cc-ride-pip__handle {
  display: none;
}

.cc-map-ride-mode .shell-container,
.cc-map-ride-mode .mcc-home-container {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.cc-map-ride-mode .shell-container a,
.cc-map-ride-mode .shell-container button,
.cc-map-ride-mode .shell-container input,
.cc-map-ride-mode .mcc-home-container a,
.cc-map-ride-mode .mcc-home-container button,
.cc-map-ride-mode .mcc-home-container input,
.cc-map-ride-mode .cc-ride-pip,
.cc-map-ride-mode .cc-ride-pip * {
  pointer-events: auto;
}

.cc-map-ride-mode .shell-footer {
  display: none;
}

.cc-map-shell {
  pointer-events: none;
}

.cc-map-shell canvas {
  pointer-events: auto;
}

.driver-shift-picker {
  display: none;
}

body.driver-shift-debug .driver-shift-picker {
  display: flex;
}

/* Book bottom sheet (full-screen map + draggable booking PiP) */
.cc-rider-booking-map #rider-home-view.cc-book-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin: 0;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  background: var(--cc-floating-surface-base, #0b100e);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  min-height: 0;
  max-height: none;
  touch-action: pan-y;
  box-shadow:
    inset 0 1px 0 var(--edge-glow-line, rgba(248, 239, 222, 0.75)),
    0 0 14px var(--edge-glow-outer, rgba(248, 239, 222, 0.25));
}

body.cc-rider-booking-map:not(.landing-view).demo-profile-switcher-mounted #rider-home-view.cc-book-sheet,
.cc-rider-booking-map #rider-home-view.cc-book-sheet.mcc-home-container {
  min-height: 0;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
}

.cc-book-sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  --cc-book-sheet-inset-x: 18px;
  padding: 0 var(--cc-book-sheet-inset-x) 24px;
  box-sizing: border-box;
}

.cc-rider-booking-map #rider-home-view.cc-book-sheet .cc-book-sheet__handle {
  flex-shrink: 0;
  touch-action: none;
}

.cc-rider-booking-map #rider-home-view.cc-book-sheet .home-luxury-header.rider-top-chrome {
  margin-top: 0;
}

/* Demo roles pill: top-center on full-screen Book map (never over the sheet). */
body.cc-rider-booking-map .demo-profile-switcher-host {
  top: calc(8px + env(safe-area-inset-top, 0px));
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
}

body.cc-rider-booking-map.demo-profile-switcher-mounted {
  --demo-switcher-reserve: 0px;
}

/* Compact Book sheet chrome — fit Nearest + 1st venue at ~45% snap */
.cc-rider-booking-map #rider-home-view.cc-book-sheet .top-section-nav {
  display: none;
}

.cc-rider-booking-map #rider-home-view.cc-book-sheet .home-luxury-header.rider-top-chrome {
  flex-direction: row;
  align-items: center;
  padding: 6px 0 4px;
  margin: 0;
  gap: 0;
  background: transparent;
  border-radius: 0;
}

.cc-rider-booking-map #rider-home-view.cc-book-sheet #booking-step-where.where-to-card,
.cc-rider-booking-map #rider-home-view.cc-book-sheet #booking-step-party {
  padding: 0 !important;
  margin: 0;
  background: transparent !important;
  border-radius: 0;
  box-shadow: none !important;
}

.cc-rider-booking-map #rider-home-view.cc-book-sheet .wordmark-high-contrast {
  max-height: 24px;
  width: auto;
}

.cc-rider-booking-map #rider-home-view.cc-book-sheet .where-to-title {
  font-size: 1.65rem !important;
  line-height: 1.12 !important;
  margin: 0 0 4px !important;
}

.cc-rider-booking-map #rider-home-view.cc-book-sheet #booking-step-where .booking-meta-readable {
  margin-bottom: 8px !important;
  font-size: 16px;
  line-height: 1.35;
}

.cc-rider-booking-map #rider-home-view.cc-book-sheet .venue-chips-grid {
  gap: 6px;
  margin-bottom: 12px;
}

.cc-rider-booking-map #rider-home-view.cc-book-sheet .venue-chip-card {
  min-height: 44px;
  padding: 10px 0 !important;
  border-radius: 0 !important;
}

.cc-rider-booking-map #rider-home-view.cc-book-sheet .venue-chip-card__sub {
  font-size: 16px;
  line-height: 1.25;
}

.cc-rider-booking-map #rider-home-view.cc-book-sheet .venue-chip-card__sub-long {
  display: block;
  white-space: normal;
  text-wrap: balance;
}

.cc-rider-booking-map #rider-home-view.cc-book-sheet .venue-chip-card__sub-short {
  display: none !important;
}

@media (max-width: 380px) {
  .cc-rider-booking-map #rider-home-view.cc-book-sheet #booking-step-where .venue-chip-card {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .cc-rider-booking-map #rider-home-view.cc-book-sheet #booking-step-where .venue-chip-card__sub-long {
    display: block !important;
  }

  .cc-rider-booking-map #rider-home-view.cc-book-sheet #booking-step-where .venue-chip-card__sub-short {
    display: none !important;
  }
}
