/* app-pickupchat.css (b770): THE PICKUP CHAT card, its own file so app-first.css and app.css stay as they were.
   One piece (app-pickupchat.js builds it once); Option A places it in the Ride sheet under START THE RIDE (order -30, with the
   flight line and the airport wait), so the map and the door pin stay above the sheet. The thread scrolls inside a fixed height,
   so the card is one known size and the sheet's fold (phaseFold) can end right under it. */
.fx-ride[data-role="driver"] > .sheet > .pkc{order:-30}
.pkc{flex:0 0 auto;display:flex;flex-direction:column;gap:6px;margin:6px 0 2px;padding:8px 10px 10px;border:1.5px solid var(--line,#E4E1DA);
  border-radius:var(--r-card,16px);background:var(--card,#fff);box-sizing:border-box;min-width:0}
.pkc[hidden]{display:none!important}
.pkc-h{display:flex;align-items:center;gap:6px;min-height:44px;min-width:0}
.pkc-lab{flex:0 0 auto;display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:6px;background:var(--label-bg,#0A0A0A);color:var(--label-fg,#B6FF3B);
  font:800 11px/1 'Space Grotesk',sans-serif;letter-spacing:.1em;text-transform:uppercase}
.pkc-n{flex:1 1 auto;min-width:0;font-weight:700;font-size:var(--t-body,15px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink,#0A0A0A)}
.pkc-ow{flex:0 0 auto;min-height:44px;min-width:44px;padding:0 10px;border:1.5px solid var(--line,#E4E1DA);border-radius:var(--r-input,10px);background:var(--card,#fff);
  color:var(--ink,#0A0A0A);font:700 14px/1 'Space Grotesk',sans-serif;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}
.pkc-ow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
/* the thread: newest at the bottom, scrolls inside 100px on a phone (two or three bubbles), more on the open Fold */
.pkc-th{flex:0 0 auto;height:100px;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding:2px 0;overscroll-behavior:contain}
.pkc-th > :first-child{margin-top:auto}
.pkc-m{flex:0 0 auto;max-width:84%;padding:7px 10px;border-radius:16px;font-size:var(--t-body,15px);line-height:1.35;overflow-wrap:anywhere;box-sizing:border-box}
.pkc-m small{display:block;font-size:12px;font-weight:700;margin-top:2px;opacity:.75}
.pkc-m.me{align-self:flex-end;background:var(--ink,#0A0A0A);color:#fff;border-bottom-right-radius:5px}
.pkc-m.them{align-self:flex-start;background:var(--paper,#F4F4F2);border:1px solid var(--line,#E4E1DA);color:var(--ink,#0A0A0A);border-bottom-left-radius:5px}
.pkc-m.them.new{border:2px solid var(--accent,#FF3B00)}
.pkc-m.vn{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.pkc-m.vn small{flex:1 0 100%;margin-top:0}
.pkc-vi svg{width:18px;height:18px;fill:currentColor;display:block}
.pkc-vo{min-height:44px;padding:0 10px;border:1.5px solid currentColor;border-radius:var(--r-pill,999px);background:transparent;color:inherit;font:700 13px/1 'Space Grotesk',sans-serif;cursor:pointer}
.pkc-sys{flex:0 0 auto;align-self:center;font-size:12px;font-weight:700;color:var(--muted,#6B6862);padding:2px 0;text-align:center}
/* his call, over the quick replies: never answered or declined for him, OPEN WHATSAPP takes him there */
.pkc-call{flex:0 0 auto;display:flex;align-items:center;gap:8px;background:#FFF1EF;border:2px solid var(--red,#D7261E);border-radius:var(--r-ctl,12px);padding:4px 4px 4px 10px;min-width:0}
.pkc-call[hidden]{display:none!important}
.pkc-ci{width:28px;height:28px;border-radius:50%;background:var(--red,#D7261E);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.pkc-ci svg{width:15px;height:15px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pkc-call b{flex:1 1 auto;min-width:0;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink,#0A0A0A)}
.pkc-acc{flex:0 0 auto;min-height:44px;padding:0 12px;border:none;border-radius:var(--r-input,10px);background:var(--accent,#FF3B00);color:var(--on-accent,#fff);
  font:800 13px/1 'Space Grotesk',sans-serif;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;cursor:pointer}
/* the quick replies, one row that scrolls sideways; a tap fills the box, SEND sends */
.pkc-qr{flex:0 0 auto;display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none;min-width:0}
.pkc-qr::-webkit-scrollbar{display:none}
.pkc-q{flex:0 0 auto;min-height:44px;padding:0 14px;border:1.5px solid var(--line,#E4E1DA);border-radius:var(--r-pill,999px);background:var(--card,#fff);color:var(--ink,#0A0A0A);
  font:700 14px/1 'Space Grotesk',sans-serif;white-space:nowrap;cursor:pointer}
.pkc-q.lead{border-color:var(--accent,#FF3B00)}
.pkc-cmp{flex:0 0 auto;display:flex;gap:8px;margin:0;min-width:0}
.pkc-in{flex:1 1 auto;min-width:0;min-height:44px;box-sizing:border-box;border:1.5px solid var(--line,#E4E1DA);border-radius:var(--r-input,10px);padding:0 12px;
  font:500 16px 'Space Grotesk',sans-serif;color:var(--ink,#0A0A0A);background:var(--card,#fff)}
.pkc-snd{flex:0 0 auto;min-height:44px;min-width:76px;padding:0 14px;border:none;border-radius:var(--r-input,10px);background:var(--accent,#FF3B00);color:var(--on-accent,#fff);
  font:800 15px/1 'Space Grotesk',sans-serif;letter-spacing:.06em;cursor:pointer}
.pkc-note{flex:0 0 auto;font-size:13px;font-weight:700;color:var(--muted,#6B6862)}
.pkc-note[hidden]{display:none!important}
/* a phone: the ringing strip takes the quick replies' row, so the card does not grow while he is called */
@media (max-width:599px){
  .pkc[data-calling] > .pkc-qr{display:none}
}
/* a narrow phone: Call and WhatsApp are their icons, the ringing strip's button is one word, so the name keeps its room */
@media (max-width:420px){
  .pkc-ow{padding:0;width:44px}
  .pkc-ow span{display:none}
  .pkc-ci, .pkc-opn, .pkc-labl{display:none}
}
/* the open Fold: two columns, the thread on the left, the ringing strip, the quick replies and the box on the right, so the card
   is about as tall as the thread and the map keeps its strip above the sheet */
@media (min-width:600px){
  .pkc{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-auto-rows:min-content;column-gap:12px;row-gap:6px;align-content:start}
  .pkc-h{grid-column:1 / -1;grid-row:1}
  .pkc-th{grid-column:1;grid-row:2 / span 4;height:158px;align-self:start}
  .pkc-call, .pkc-qr, .pkc-cmp, .pkc-note{grid-column:2}
  .pkc-opn{display:none}
}
