/* =====================================================================
   Página do passageiro (#/pedir): mapa-herói + painel que sobe por baixo.
   Marca: menta #21f1a8 sobre grafite #171717, Poppins leve. Claro e escuro.
   O destaque é a rota: ela se desenha sozinha e vira a linha do tempo da corrida.
   ===================================================================== */
body.is-ped {
  --pv-bg: #0b0f0e; --pv-map: #0f1513; --pv-sheet: #171717; --pv-s2: #202321; --pv-s3: #2b2f2d;
  --pv-text: #f3f6f4; --pv-soft: #c0c9c4; --pv-mut: #8f9a95; --pv-line: rgba(255,255,255,.09); --pv-line2: rgba(255,255,255,.16);
  --pv-acc: #21f1a8; --pv-ink: #04231a; --pv-acc-soft: rgba(33,241,168,.13); --pv-acc-line: rgba(33,241,168,.45);
  --pv-bad: #ff5d6c; --pv-bad-ink: #ffb8c0; --pv-warn: #ffc53d; --pv-warn-ink: #ffe29a; --pv-dest: #ff5d6c;
  --pv-grid: rgba(255,255,255,.045); --pv-glass: rgba(15,21,19,.72); --pv-shadow: 0 -22px 50px rgba(0,0,0,.5);
  --pv-ease: cubic-bezier(.22,1,.36,1);
  background: var(--pv-bg); color: var(--pv-text); font-family: 'Poppins', 'Red Hat Display', system-ui, sans-serif; font-weight: 400; color-scheme: dark;
}
html[data-theme="light"] body.is-ped {
  --pv-bg: #e9efec; --pv-map: #e3ebe7; --pv-sheet: #ffffff; --pv-s2: #f1f5f3; --pv-s3: #e3eae6;
  --pv-text: #0d1a15; --pv-soft: #33443d; --pv-mut: #66756e; --pv-line: rgba(13,26,21,.10); --pv-line2: rgba(13,26,21,.2);
  --pv-acc: #0a9a68; --pv-ink: #ffffff; --pv-acc-soft: rgba(10,154,104,.12); --pv-acc-line: rgba(10,154,104,.5);
  --pv-bad: #d3273b; --pv-bad-ink: #b3202f; --pv-warn: #b06a00; --pv-warn-ink: #7a4a00; --pv-dest: #e0344a;
  --pv-grid: rgba(13,26,21,.07); --pv-glass: rgba(255,255,255,.82); --pv-shadow: 0 -18px 40px rgba(13,26,21,.14); color-scheme: light;
}
/* fundo da página = cor do painel: se a janela ficar mais alta que o painel (barra do navegador some), não aparece faixa de outra cor embaixo.
   !important porque theme.css pinta um degradê rosado no body claro. */
html body.is-ped, html[data-theme="light"] body.is-ped { background: var(--pv-sheet) !important; background-image: none !important; }
/* a página do passageiro rola no documento (o painel trava a rolagem em telas largas) */
html:has(body.is-ped), html:has(body.is-ped) body.is-ped.is-panel { height: auto; overflow: visible; overflow-x: clip; }
body.is-ped.is-panel #app { height: auto; min-height: 100svh; display: block; }
body.is-ped #app { min-height: 100svh; }
.ped { --hero-h: 40svh; position: relative; max-width: 520px; margin: 0 auto; min-height: 100svh; }
.ped [hidden] { display: none !important; }
.ped h1, .ped h2, .ped p { margin: 0; }
:where(.ped) :where(button, input, textarea) { font-family: inherit; color: inherit; }
.ped *:focus-visible { outline: 2px solid var(--pv-acc); outline-offset: 2px; }

/* ---------- mapa-herói ---------- */
.ped-hero { position: sticky; top: 0; z-index: 0; height: var(--hero-h); min-height: 250px; overflow: hidden; background: var(--pv-map); contain: paint; }
.ped-streets { position: absolute; inset: -30%; transform: rotate(-14deg);
  background-image: linear-gradient(var(--pv-grid) 1.5px, transparent 1.5px), linear-gradient(90deg, var(--pv-grid) 1.5px, transparent 1.5px), linear-gradient(var(--pv-grid) 1px, transparent 1px), linear-gradient(90deg, var(--pv-grid) 1px, transparent 1px);
  background-size: 168px 168px, 168px 168px, 42px 42px, 42px 42px; }
/* mapa real (MapLibre) por cima do quadriculado; se falhar, o quadriculado continua */
.ped-streets { transition: opacity .5s var(--pv-ease); }
.ped-hero.has-map .ped-streets { opacity: 0; }
.ped-hero .ped-base { position: absolute !important; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: transparent; }
.ped-base .maplibregl-canvas { outline: none; }
.ped-base .maplibregl-canary, .ped-base .maplibregl-control-container { display: none; }
.ped-credit { position: absolute; z-index: 2; right: 10px; bottom: 34px; font-size: 9.5px; letter-spacing: .01em; color: var(--pv-mut); opacity: .75; text-decoration: none; padding: 2px 6px; border-radius: 999px; background: var(--pv-glass); display: none; }
.ped-hero.has-map .ped-credit { display: block; }
.ped-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, var(--pv-map) 100%), linear-gradient(to bottom, var(--pv-map) 0, transparent 26%); }
.ped-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.ped-topbar { position: absolute; z-index: 3; left: 14px; right: 14px; top: max(12px, env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ped-brand { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 6px; border-radius: 999px; background: var(--pv-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--pv-line); font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; }
.ped-brand b { width: 32px; height: 32px; border-radius: 50%; background: var(--pv-acc); color: var(--pv-ink); display: grid; place-items: center; }
.ped-top-r-w { display: flex; align-items: center; gap: 8px; min-width: 0; } .ped-top-r { display: flex; gap: 8px; min-width: 0; }
.ped-city { font-size: 12.5px; color: var(--pv-soft); background: var(--pv-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--pv-line); border-radius: 999px; padding: 0 14px; height: 36px; display: inline-flex; align-items: center; white-space: nowrap; }
.ped .theme-btn { width: 44px; height: 44px; border-color: var(--pv-line); background: var(--pv-glass); color: var(--pv-soft); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ped-chips { position: absolute; z-index: 2; left: 16px; bottom: 40px; display: flex; gap: 8px; }
.ped-chips span { background: var(--pv-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--pv-line); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-variant-numeric: tabular-nums; }

/* a rota se desenha; o embarque emite radar enquanto a corrida espera */
.ped-map .m-glow { stroke: var(--pv-acc); stroke-width: 6; opacity: .14; }
.ped-map .m-route { stroke: var(--pv-acc); stroke-width: 2.2; }
.ped-map .m-glow, .ped-map .m-route { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ped-map.go .m-glow, .ped-map.go .m-route { animation: pv-draw 1.15s var(--pv-ease) both; }
.ped-map.go .m-d { animation: pv-drop .5s var(--pv-ease) .95s both; }
@keyframes pv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pv-drop { from { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(.4); } to { opacity: 1; } }
.ped-map .m-dp { fill: var(--pv-dest); } .ped-map .m-dr { fill: var(--pv-dest); opacity: .2; }
.ped-map .m-dot { fill: var(--pv-acc); stroke: var(--pv-sheet); stroke-width: 3; } .ped-map .m-halo { fill: var(--pv-acc); opacity: .22; }
.ped-map .m-ring { fill: none; stroke: var(--pv-acc); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ped-hero[data-mode="search"] .m-ring, .ped-hero[data-mode="wait"] .m-ring, .ped-hero[data-mode="arrive"] .m-ring { animation: pv-radar 2.6s ease-out infinite; }
.ped-hero[data-mode="search"] .m-ring.r2, .ped-hero[data-mode="wait"] .m-ring.r2 { animation-delay: .87s; } .ped-hero[data-mode="search"] .m-ring.r3, .ped-hero[data-mode="wait"] .m-ring.r3 { animation-delay: 1.73s; }
.ped-hero[data-mode="search"] .m-ring { stroke-width: 2.5; } .ped-hero[data-mode="wait"] .m-ring { animation-duration: 4.2s; }
.ped-hero[data-mode="arrive"] .m-ring { animation-duration: 1.4s; } .ped-hero[data-mode="arrive"] .m-ring.r2 { animation-delay: .45s; } .ped-hero[data-mode="arrive"] .m-ring.r3 { animation-delay: .9s; }
@keyframes pv-radar { 0% { transform: scale(.7); opacity: .85; } 100% { transform: scale(5.4); opacity: 0; } }
.ped-hero[data-mode="ride"] .m-route { stroke-dasharray: .035 .02; animation: pv-flow 1.4s linear infinite; }
@keyframes pv-flow { to { stroke-dashoffset: -.055; } }
.ped-hero.busy .m-dot { animation: pv-breathe 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pv-breathe { 50% { transform: scale(1.35); } }

/* ---------- painel ---------- */
.ped-sheet { position: relative; z-index: 2; margin-top: -26px; min-height: calc(100svh - max(var(--hero-h), 250px) + 26px); border-radius: 30px 30px 0 0; background: var(--pv-sheet); box-shadow: var(--pv-shadow);
  padding: 24px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; box-sizing: border-box;}
.ped-sheet.ped-enter > * { animation: pv-rise .55s var(--pv-ease) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes pv-rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
.ped-bar { position: sticky; bottom: 0; margin: auto -18px -18px; padding: 26px 18px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--pv-sheet) 40%); z-index: 4; }
.ped-sheet.ped-enter > .ped-bar { animation: none; }
.ped-skel { display: grid; gap: 14px; } .ped-skel i { display: block; height: 22px; border-radius: 11px; background: linear-gradient(90deg, var(--pv-s2) 30%, var(--pv-s3) 50%, var(--pv-s2) 70%); background-size: 240% 100%; animation: pv-shimmer 1.3s linear infinite; }
.ped-skel i:nth-child(1) { width: 62%; height: 32px; } .ped-skel i:nth-child(3) { height: 120px; border-radius: 22px; }
@keyframes pv-shimmer { to { background-position: -240% 0; } }

/* tipografia */
.ped h1 { font-size: 29px; font-weight: 300; letter-spacing: -.025em; line-height: 1.15; }
.ped h2 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.ped-intro p { margin-top: 6px; font-size: 14.5px; color: var(--pv-mut); line-height: 1.45; }
.ped-sub { font-size: 12.5px; color: var(--pv-mut); line-height: 1.4; } .ped-sub.bad { color: var(--pv-bad-ink); } .ped .center { text-align: center; }
.ped-hint { font-size: 13.5px; color: var(--pv-mut); }
.ped-h2 { margin-top: 2px; }

/* ---------- trajeto (a linha liga embarque e destino) ---------- */
.ped-route { position: relative; display: grid; border-radius: 22px; background: var(--pv-s2); padding: 4px 16px; }
.ped-pt { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.ped-pt:not(.last)::after { content: ''; position: absolute; left: 5px; top: 38px; bottom: -12px; width: 2px; background: repeating-linear-gradient(to bottom, var(--pv-line2) 0 4px, transparent 4px 8px); }
.ped-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--pv-acc); box-shadow: 0 0 0 5px var(--pv-acc-soft); }
.ped-dot.d { border-radius: 3px; background: var(--pv-dest); box-shadow: 0 0 0 5px color-mix(in srgb, var(--pv-dest) 18%, transparent); }
.ped-pt-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ped-lab { font-size: 12px; color: var(--pv-mut); }
.ped-addr { font-size: 15px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ped-tag { flex: none; font-size: 11.5px; color: var(--pv-acc); border: 1px solid var(--pv-acc-line); border-radius: 999px; padding: 4px 10px; }
.ped-inp { width: 100%; box-sizing: border-box; min-height: 46px; border-radius: 14px; border: 1px solid var(--pv-line2); background: var(--pv-sheet); color: var(--pv-text); font-size: 16px; padding: 0 14px; transition: border-color .2s, box-shadow .2s; }
.ped-inp::placeholder { color: var(--pv-mut); } .ped-inp:focus-visible { outline: none; border-color: var(--pv-acc); box-shadow: 0 0 0 4px var(--pv-acc-soft); }
.ped-edit { flex: none; background: none; border: 0; padding: 8px; color: var(--pv-soft); cursor: pointer; border-radius: 10px; display: none; }
.ped-pt.last.set .ped-edit { display: inline-flex; }
.ped-edit.show { display: inline-flex; }
.ped-origin { padding: 16px; gap: 14px; background: var(--pv-sheet); }
.ped-origin .ped-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.ped-or { display: flex; align-items: center; gap: 12px; color: var(--pv-mut); font-size: 12.5px; }
.ped-or::before, .ped-or::after { content: ''; flex: 1; height: 1px; background: var(--pv-line2); }
.ped-results { display: grid; gap: 6px; }
.ped-res { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-align: left; border-radius: 18px; border: 0; background: var(--pv-s2); cursor: pointer; min-height: 54px; transition: background .15s, transform .15s; }
.ped-res:hover, .ped-res:focus-visible { background: var(--pv-s3); } .ped-res:active { transform: scale(.985); }
.ped-res-t { display: grid; min-width: 0; } .ped-res-t b { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ped-res-t small { font-size: 12.5px; color: var(--pv-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ped-ico { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--pv-s3); color: var(--pv-soft); transition: background .25s, color .25s; }
.ped-ico.sm { width: 32px; height: 32px; }

/* ---------- categorias ---------- */
.ped-sech { display: flex; align-items: baseline; justify-content: space-between; }
.ped-sech span { font-size: 12.5px; color: var(--pv-mut); }
.ped-cats { display: grid; gap: 8px; }
.ped-cat { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px 12px 12px; text-align: left; border-radius: 22px; cursor: pointer; border: 1.5px solid transparent; background: var(--pv-s2); min-height: 72px; transition: border-color .25s, background .25s, transform .15s; }
.ped-cat:active { transform: scale(.985); }
.ped-cat.rise { animation: pv-rise .4s var(--pv-ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.ped-cat.on { border-color: var(--pv-acc); background: var(--pv-acc-soft); }
.ped-cat.on .ped-ico { background: var(--pv-acc); color: var(--pv-ink); }
.ped-cat-t { flex: 1; min-width: 0; display: grid; } .ped-cat-t b { font-size: 16px; font-weight: 500; } .ped-cat-t small { font-size: 12.5px; color: var(--pv-mut); }
.ped-cat strong { font-size: 17px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; } .ped-cat.on strong { color: var(--pv-acc); }

/* ---------- botões ---------- */
.ped-cta { display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; height: 56px; border: 0; border-radius: 999px; background: var(--pv-acc); color: var(--pv-ink); font-size: 16px; font-weight: 500; letter-spacing: -.005em; cursor: pointer; text-decoration: none; transition: transform .15s var(--pv-ease), opacity .2s, box-shadow .25s; }
.ped-cta:active:not(:disabled) { transform: scale(.975); }
.ped-cta:disabled { background: var(--pv-s3); color: var(--pv-mut); box-shadow: none; cursor: not-allowed; }
.ped-bar .ped-cta { max-width: 100%; }
.ped-cta { position: relative; overflow: hidden; isolation: isolate; }
.ped-cta .ped-prog { position: absolute; inset: 0; z-index: -1; transform-origin: left center; transform: scaleX(0); background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,.34)); pointer-events: none; }
.ped-cta.loading:disabled { background: var(--pv-acc); color: var(--pv-ink); opacity: 1; cursor: progress; }
.ped-cta.loading .ped-prog { animation: pv-load 4.5s cubic-bezier(.12,.7,.25,1) forwards; }
.ped-cta .ped-prog.done { animation: none; transform: scaleX(1); transition: transform .32s var(--pv-ease); }
@keyframes pv-load { from { transform: scaleX(0); } to { transform: scaleX(.93); } }
@media (prefers-reduced-motion: reduce) { .ped-cta.loading .ped-prog { animation: none; transform: scaleX(.5); } }
.ped-cta.bad { background: var(--pv-bad); color: #fff; }
.ped-ghost { min-height: 50px; width: 100%; border-radius: 999px; border: 1px solid var(--pv-line2); background: none; color: var(--pv-soft); font-size: 15px; cursor: pointer; box-sizing: border-box; transition: background .2s, transform .15s; }
.ped-ghost:hover:not(:disabled) { background: var(--pv-s2); } .ped-ghost:active:not(:disabled) { transform: scale(.98); } .ped-ghost:disabled { opacity: .5; }
.ped-ghost.bad { color: var(--pv-bad-ink); border-color: color-mix(in srgb, var(--pv-bad) 45%, transparent); }
.ped-msg { font-size: 13.5px; line-height: 1.45; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--pv-bad) 12%, transparent); color: var(--pv-bad-ink); }
.ped-msg.warn { background: color-mix(in srgb, var(--pv-warn) 14%, transparent); color: var(--pv-warn-ink); }

/* ---------- pagamento ---------- */
.ped-top2 { display: flex; align-items: center; gap: 12px; } .ped-top2 h1 { font-size: 24px; }
.ped-back { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--pv-line2); background: none; display: grid; place-items: center; cursor: pointer; transition: transform .15s; } .ped-back:active { transform: scale(.92); }
.ped-t { display: grid; }
.ped-sum { border-radius: 26px; padding: 18px; display: grid; gap: 10px; background: linear-gradient(150deg, var(--pv-acc-soft), transparent 70%), var(--pv-s2); border: 1px solid var(--pv-acc-line); }
.ped-sum-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--pv-soft); }
.ped-price { font-size: 44px; font-weight: 300; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ped-sum-ad { display: grid; gap: 4px; font-size: 13.5px; color: var(--pv-soft); } .ped-sum-ad span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ped-pays { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.ped-pay { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border-radius: 20px; border: 1.5px solid transparent; background: var(--pv-s2); cursor: pointer; color: var(--pv-soft); font-size: 14px; min-height: 44px; transition: border-color .25s, background .25s, color .25s, transform .15s; }
.ped-pay:active { transform: scale(.97); } .ped-pay.on { border-color: var(--pv-acc); background: var(--pv-acc-soft); color: var(--pv-acc); font-weight: 500; }
.ped-card { border-radius: 22px; padding: 14px 16px; background: var(--pv-s2); display: grid; gap: 10px; }
.ped-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ped-q { font-size: 15px; } .ped-q small { font-size: 12.5px; color: var(--pv-mut); }
.ped-pills { display: flex; gap: 6px; } .ped-pills.wrap { flex-wrap: wrap; } .ped-pills.wrap .ped-pill { padding: 6px 12px; }
.ped-pill { font-size: 13px; color: var(--pv-soft); border: 1px solid var(--pv-line2); background: none; border-radius: 999px; padding: 6px 16px; min-height: 36px; cursor: pointer; transition: background .2s, color .2s; }
.ped-pill.on { background: var(--pv-acc); border-color: var(--pv-acc); color: var(--pv-ink); font-weight: 500; }
.ped-moneyrow { box-sizing: border-box; min-width: 0; width: 100%; display: flex; align-items: center; gap: 10px; height: 50px; border-radius: 16px; border: 1px solid var(--pv-line2); padding: 0 14px; background: var(--pv-sheet); }
.ped-moneyrow span { font-size: 13px; color: var(--pv-mut); }
.ped-money { flex: 1; min-width: 0; border: 0; background: none; text-align: right; font-size: 17px; color: var(--pv-text); outline: none; font-variant-numeric: tabular-nums; }
.ped-switch { width: 48px; height: 30px; flex: none; border-radius: 15px; border: 0; background: var(--pv-s3); position: relative; cursor: pointer; padding: 0; transition: background .25s; }
.ped-switch i { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--pv-soft); transition: transform .3s var(--pv-ease), background .25s; }
.ped-switch.on { background: var(--pv-acc-soft); box-shadow: inset 0 0 0 1.5px var(--pv-acc); } .ped-switch.on i { transform: translateX(18px); background: var(--pv-acc); }
.ped-obs { display: flex; gap: 12px; align-items: flex-start; border-radius: 20px; padding: 13px 16px; background: color-mix(in srgb, var(--pv-warn) 12%, transparent); font-size: 13.5px; line-height: 1.45; color: var(--pv-soft); }
.ped-obs b { font-weight: 500; color: var(--pv-warn-ink); } .ped-obs-i { flex: none; margin-top: 1px; color: var(--pv-warn); }

/* ---------- estados ---------- */
.ped-state { margin: auto 0; display: grid; gap: 14px; justify-items: center; text-align: center; padding: 18px 4px; }
.ped-state p { color: var(--pv-soft); font-size: 15px; line-height: 1.5; max-width: 34ch; } .ped-state .ped-cta { margin-top: 6px; }
.ped-ok { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--pv-acc); background: var(--pv-acc-soft); border: 1px solid var(--pv-acc-line); animation: pv-pop .5s var(--pv-ease) both; }
.ped-ok.sm { width: 38px; height: 38px; flex: none; }
@keyframes pv-pop { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
.ped-dl { width: 100%; box-sizing: border-box; margin: 0; text-align: left; display: grid; gap: 12px; }
.ped-dl dt { font-size: 12px; color: var(--pv-mut); } .ped-dl dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }

/* ---------- acompanhamento: a linha do tempo é a rota ---------- */
.ped-threadw { position: relative; padding: 2px 0 0; }
.ped-track { position: absolute; left: calc(50% / var(--n, 5)); right: calc(50% / var(--n, 5)); top: 12px; height: 3px; border-radius: 2px; background: var(--pv-s3); overflow: hidden; }
.ped-track b, .ped-track u { position: absolute; inset: 0; display: block; }
.ped-track b { background: var(--pv-acc); transform-origin: left; transform: scaleX(var(--p, 0)); }
.ped-thread { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); }
.ped-thread li { display: grid; justify-items: center; gap: 8px; font-size: 11.5px; color: var(--pv-mut); text-align: center; }
.ped-thread i { width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: var(--pv-sheet); border: 2px solid var(--pv-s3); box-sizing: border-box; transition: background .3s, border-color .3s; }
.ped-thread li.past { color: var(--pv-soft); } .ped-thread li.past i { background: var(--pv-acc); border-color: var(--pv-acc); }
.ped-thread li.now { color: var(--pv-text); font-weight: 500; } .ped-thread li.now i { background: var(--pv-acc); border-color: var(--pv-acc); box-shadow: 0 0 0 5px var(--pv-acc-soft); animation: pv-node 2s ease-in-out infinite; }
@keyframes pv-node { 50% { box-shadow: 0 0 0 9px transparent; } }
.ped-threadw:not(.still) .ped-track b { animation: pv-fill .9s var(--pv-ease) both; }
@keyframes pv-fill { from { transform: scaleX(var(--p0, 0)); } to { transform: scaleX(var(--p, 0)); } }
.ped-live { display: grid; gap: 8px; }
.ped-live p { color: var(--pv-soft); font-size: 15px; line-height: 1.5; max-width: 38ch; }
.ped-live h1 { font-size: 30px; }
.ped-wait { display: grid; gap: 8px; margin-top: 6px; }
.ped-count { height: 4px; border-radius: 2px; background: var(--pv-s3); overflow: hidden; } .ped-count i { display: block; height: 100%; background: var(--pv-acc); transform-origin: left; animation: pv-drain var(--dur, 60s) linear forwards; animation-delay: calc(var(--el, 0s) * -1); }
@keyframes pv-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.ped-drvcard { gap: 14px; padding: 16px; }
.ped-drv { display: flex; align-items: center; gap: 14px; }
.ped-avatar { flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--pv-acc-soft); color: var(--pv-acc); font-size: 26px; font-weight: 300; box-shadow: 0 0 0 2px var(--pv-sheet), 0 0 0 4px var(--pv-acc-line); }
.ped-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; animation: pv-fadein .4s ease both; } @keyframes pv-fadein { from { opacity: 0; } }
.ped-drv-t { display: grid; gap: 2px; min-width: 0; } .ped-drv-t b { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.ped-stars-r { display: inline-flex; align-items: center; gap: 3px; color: var(--pv-warn); } .ped-stars-r svg { fill: currentColor; stroke: none; }
.ped-handle { justify-self: start; font-size: 12.5px; color: var(--pv-acc); background: var(--pv-acc-soft); border-radius: 999px; padding: 2px 10px; margin-top: 3px; }
.ped-car { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ped-car-t { display: grid; gap: 1px; min-width: 0; } .ped-car-t b { font-size: 16px; font-weight: 500; } .ped-car-t small { font-size: 13px; color: var(--pv-mut); text-transform: capitalize; }
/* placa Mercosul (SVG desenhado em pedir-ui.js → plate()) */
.plate { flex: none; display: block; height: auto; overflow: visible; }
.plate .pl-edge { stroke: rgba(120,126,138,.35); stroke-width: 1; }
.plate .pl-br { fill: #fff; font: 600 14px/1 'Poppins', system-ui, sans-serif; letter-spacing: 6px; text-indent: 3px; }
.plate .pl-globe { stroke: #fff; stroke-width: 1; opacity: .9; }
.plate .pl-seal { font: 600 7px/1 'Poppins', sans-serif; fill: #4a4f59; letter-spacing: .5px; }
.plate .pl-ch, .plate .pl-hi { font: 600 57px/1 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif; }
.plate .pl-ch { fill: #4a4f58; }
.plate .pl-hi { fill: #fff; opacity: .95; }
.plate.ghost .pl-ch { fill: #4a4f58; opacity: .25; } .plate.ghost .pl-hi { opacity: .6; }
.plate .pl-sheen { animation: pl-sheen 1.5s var(--pv-ease, ease) .45s 1 both; }
@keyframes pl-sheen { from { transform: translateX(0) skewX(-18deg); } to { transform: translateX(520px) skewX(-18deg); } }
@media (prefers-reduced-motion: reduce) { .plate .pl-sheen { display: none; } }
.ped-carphoto { border-radius: 18px; overflow: hidden; background: var(--pv-s3); min-height: 40px; display: grid; place-items: center; } .ped-carphoto img { width: 100%; max-height: 210px; object-fit: cover; display: block; }
.ped-code { display: flex; justify-content: center; gap: 10px; perspective: 700px; }
.ped-code span { width: 64px; height: 82px; display: grid; place-items: center; font-size: 44px; font-weight: 300; font-variant-numeric: tabular-nums; border-radius: 20px; background: var(--pv-s2); color: var(--pv-text); }
.ped-code.flip span { animation: pv-flip .7s var(--pv-ease) both; animation-delay: var(--d, 0ms); }
@keyframes pv-flip { from { transform: rotateX(-95deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.ped-fav { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; border-radius: 999px; border: 1px solid var(--pv-line2); background: none; color: var(--pv-soft); font-size: 15px; cursor: pointer; box-sizing: border-box; transition: background .2s, border-color .2s, transform .15s; }
.ped-fav:active { transform: scale(.97); } .ped-fav svg { flex: none; transition: transform .3s var(--pv-ease); }
.ped-fav.on { border-color: color-mix(in srgb, var(--pv-dest) 55%, transparent); color: var(--pv-text); background: color-mix(in srgb, var(--pv-dest) 9%, transparent); } .ped-fav.on svg { fill: var(--pv-dest); stroke: var(--pv-dest); animation: pv-beat .5s var(--pv-ease); }
@keyframes pv-beat { 0% { transform: scale(.6); } 60% { transform: scale(1.3); } 100% { transform: none; } }
.ped-favbox { display: grid; gap: 6px; justify-items: center; text-align: center; } .ped-favbox .ped-sub { max-width: 36ch; }
.ped-more { border-radius: 20px; background: var(--pv-s2); padding: 0 16px; }
.ped-more > summary { cursor: pointer; padding: 14px 0; font-size: 14.5px; color: var(--pv-soft); list-style: none; display: flex; justify-content: space-between; }
.ped-more > summary::after { content: '▾'; color: var(--pv-mut); transition: transform .25s; } .ped-more[open] > summary::after { transform: rotate(180deg); } .ped-more > summary::-webkit-details-marker { display: none; }
.ped-more .ped-dl { margin: 0 0 14px; }
.ped-confirm { text-align: center; } .ped-confirm b { font-weight: 500; font-size: 16px; }
.ped-thanks { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; }

/* ---------- avaliação ---------- */
.ped-rate { display: grid; gap: 14px; }
.ped-starrow { display: flex; justify-content: center; gap: 4px; }
.ped-star { width: 52px; height: 52px; border: 0; background: none; cursor: pointer; color: var(--pv-s3); display: grid; place-items: center; border-radius: 14px; padding: 0; transition: color .2s, transform .15s; }
.ped-star:active { transform: scale(.88); }
.ped-star.on { color: var(--pv-warn); } .ped-star svg { fill: currentColor; stroke: none; }
.ped-star.on svg { animation: pv-star .45s var(--pv-ease) both; animation-delay: var(--d, 0ms); } .ped-star.pop svg { animation-name: pv-star-pop; }
@keyframes pv-star { from { transform: scale(.7); } to { transform: none; } } @keyframes pv-star-pop { 0% { transform: scale(.6) rotate(-14deg); } 60% { transform: scale(1.28) rotate(6deg); } 100% { transform: none; } }
.ped-ta { width: 100%; box-sizing: border-box; border-radius: 18px; border: 1px solid var(--pv-line2); background: var(--pv-sheet); color: var(--pv-text); font-size: 16px; padding: 12px 14px; resize: vertical; min-height: 88px; }
.ped-ta::placeholder { color: var(--pv-mut); } .ped-ta:focus-visible { outline: none; border-color: var(--pv-acc); box-shadow: 0 0 0 4px var(--pv-acc-soft); }
.ped .rise { animation: pv-rise .35s var(--pv-ease) both; }

/* ---------- telas largas: mapa de um lado, painel do outro ---------- */
@media (min-width: 900px) {
  .ped { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1fr) 460px; align-items: start; }
  .ped-hero { position: sticky; top: 0; height: 100svh !important; min-height: 0; grid-column: 1; grid-row: 1; }
  .ped-hero .ped-map { padding: 0; }
  .ped-chips { bottom: 28px; }
  .ped-sheet { grid-column: 2; grid-row: 1; margin-top: 0; min-height: 100svh; border-radius: 0; box-shadow: -1px 0 0 var(--pv-line); padding: 76px 28px 24px; }
  .ped-bar { margin: auto -28px -24px; padding-left: 28px; padding-right: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .ped *, .ped *::before, .ped *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ped-count i { animation: none; transform: scaleX(.5); }
}

/* ---------- formulário em pilha ---------- */
.ped-pc, .ped-route, .ped-card, .ped-cats { grid-template-columns: minmax(0, 1fr); }
.ped-pt, .ped-pt-t, .ped-pc .pc-h { min-width: 0; }
.ped-pc .pc-h h2 { flex: none; } .ped-pc .pc-v { flex: 0 1 auto; text-align: right; }
.ped-pile { --pt: calc(12px + env(safe-area-inset-top)); --step: 56px; display: grid; gap: 14px; min-width: 0; padding-bottom: 8px; }
.ped-pc { position: sticky; top: min(calc(var(--pt) + var(--i, 0) * var(--step)), var(--fit, 9999px)); z-index: 1; transform-origin: 50% 0; transform: scale(var(--s, 1)); will-change: transform;
  backface-visibility: hidden;
  border-radius: 26px; padding: 14px 16px 16px; display: grid; gap: 12px; min-width: 0; border: 1px solid var(--pv-line);
  background: var(--tint, var(--pv-s2)); box-shadow: 0 18px 36px -22px rgba(0,0,0,.7); }
.ped-pc { transition: filter .45s var(--pv-ease); }
.ped-pc[data-b="1"] { filter: blur(1.1px); } .ped-pc[data-b="2"] { filter: blur(2px); }
.ped-pc::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(to bottom, rgba(6,8,7,.78), rgba(6,8,7,.5)); opacity: var(--dim, 0); pointer-events: none; z-index: 5; }
/* tema claro: os grupos que ficam por baixo ganham um véu BRANCO (esfumaçado claro), não escuro */
html[data-theme="light"] .ped-pc::after { background: linear-gradient(to bottom, rgba(255,255,255,.88), rgba(255,255,255,.62)); }
html[data-theme="light"] .ped-pc { box-shadow: 0 14px 30px -22px rgba(13,26,21,.28); }
html[data-theme="light"] .ped-pc.under { box-shadow: 0 8px 20px -18px rgba(13,26,21,.16); }
.ped-pc.rise { animation: pv-rise .6s var(--pv-ease) backwards; animation-delay: calc(var(--r, 0) * 110ms); }
.ped-pc .pc-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.ped-pc .pc-h h2 { font-size: 16.5px; font-weight: 500; }
.ped-pc .pc-v { min-width: 0; font-size: 13px; color: var(--pv-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .25s; }
.ped-pc.under .pc-v { color: var(--pv-acc); }
.ped-pc .ped-route, .ped-pc .ped-card { background: var(--pv-sheet); }
.ped-pc .ped-cat, .ped-pc .ped-pay { background: var(--pv-sheet); }
.ped-pc .ped-cat.on, .ped-pc .ped-pay.on { background: var(--pv-acc-soft); }
.ped-pc .ped-sum { background: none; border: 0; padding: 0; }
.ped-field { display: grid; gap: 8px; }
@media (min-width: 900px) { .ped-pile { --pt: 20px; } }
@media (prefers-reduced-motion: reduce) { .ped-pc { transform: none; will-change: auto; filter: none; } .ped-pc::after { display: none; } }

/* celular: vidro sem desfoque do fundo (backdrop-filter sobre o mapa animado pesa e engasga a rolagem) */
@media (max-width: 899px) {
  .ped-brand, .ped-city, .ped .theme-btn, .ped-chips span { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--pv-sheet) 90%, transparent); }
}

/* navegador sem svh: volta para vh */
@supports not (height: 1svh) {
  body.is-ped #app, .ped { min-height: 100vh; } .ped { --hero-h: 40vh; }
  .ped-sheet { min-height: calc(100vh - var(--hero-h) + 26px); }
}

/* toque sem destaque azulado */
body.is-ped, body.is-ped * { -webkit-tap-highlight-color: transparent; }

/* campo de troco: sem contorno em volta do campo; quem mostra o foco é a linha toda */
.ped .ped-money, .ped .ped-money:focus, .ped .ped-money:focus-visible { outline: none !important; box-shadow: none !important; border: 0 !important; background: none !important; -webkit-appearance: none; appearance: none; }
.ped-moneyrow { transition: border-color .2s; }
.ped-moneyrow:focus-within { border-color: var(--pv-acc); }
.ped-why { font-size: 12px; color: var(--pv-mut); text-align: center; margin-top: 8px; }

/* ---------- cupom de desconto ---------- */
.ped-cupom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.ped-cupom:empty { display: none; }
.ped-linkbtn { justify-self: start; background: none; border: 0; padding: 6px 2px; min-height: 36px; color: var(--pv-acc); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--pv-acc-line); }
.ped-linkbtn:disabled { opacity: .5; }
.ped-cupom-row { display: flex; gap: 8px; }
.ped .ped-cupom-in { flex: 1; width: 0; min-width: 0; height: 48px; box-sizing: border-box; border-radius: 16px; border: 1px solid var(--pv-line2); background: var(--pv-sheet); color: var(--pv-text); font: inherit; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; padding: 0 14px; }
.ped .ped-cupom-in::placeholder { letter-spacing: 0; text-transform: none; color: var(--pv-mut); }
.ped .ped-cupom-in:focus, .ped .ped-cupom-in:focus-visible { outline: none; border-color: var(--pv-acc); box-shadow: 0 0 0 4px var(--pv-acc-soft); }
.ped-cupom-ok { flex: none; height: 48px; padding: 0 18px; border-radius: 16px; border: 0; background: var(--pv-acc); color: var(--pv-ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.ped-cupom-ok:disabled { opacity: .6; }
.ped-cupom-on { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 10px 14px; background: var(--pv-acc-soft); color: var(--pv-text); font-size: 14px; }
.ped-cupom-on > svg { flex: none; color: var(--pv-acc); }
.ped-cupom-on > span { flex: 1; min-width: 0; }
.ped-cupom-on b { font-weight: 600; letter-spacing: .04em; }
.ped-was { display: block; font-size: 11.5px; font-weight: 400; color: var(--pv-mut); text-decoration: line-through; text-align: right; }
.ped-cat strong { text-align: right; }

/* ---------- política de cancelamento e taxa ---------- */
.ped-pol { background: var(--pv-s2); }
.ped-pol b { color: var(--pv-text); } .ped-pol .ped-obs-i { color: var(--pv-mut); }
.ped-pix { text-align: center; justify-items: center; background: var(--pv-acc-soft); }
.ped-pixkey { display: flex; align-items: center; gap: 10px; max-width: 100%; }
.ped-pixkey code { font: inherit; font-size: 16px; font-weight: 500; letter-spacing: .01em; word-break: break-all; user-select: all; }
.ped-copy { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--pv-acc-line); background: var(--pv-sheet); color: var(--pv-text); font: inherit; font-size: 13.5px; cursor: pointer; }
.ped-copy.ok { background: var(--pv-acc); color: var(--pv-ink); border-color: var(--pv-acc); }
.ped-feeform { text-align: left; }
.ped-feeform > b { text-align: center; }
.ped-feeform .ped-sub { text-align: left; }
.ped-reasons { display: grid; gap: 6px; }
.ped-reason { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 8px 14px; border-radius: 16px; border: 1px solid var(--pv-line2); background: var(--pv-sheet); color: var(--pv-soft); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.ped-reason i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--pv-line2); box-sizing: border-box; transition: border-color .2s, background .2s, box-shadow .2s; }
.ped-reason.on { border-color: var(--pv-acc); color: var(--pv-text); background: var(--pv-acc-soft); }
.ped-reason.on i { border-color: var(--pv-acc); background: var(--pv-acc); box-shadow: inset 0 0 0 3px var(--pv-sheet); }

/* ---------- compartilhar trajeto (em viagem) ---------- */
.ped-share { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 22px; background: var(--pv-acc-soft); border: 1px solid var(--pv-acc-line); color: var(--pv-text); text-decoration: none; transition: transform .15s; }
.ped-share:active { transform: scale(.98); }
.ped-share > svg { flex: none; width: 44px; height: 44px; padding: 11px; box-sizing: border-box; border-radius: 50%; background: var(--pv-acc); color: var(--pv-ink); stroke-width: 2; }
.ped-share-t { display: grid; gap: 2px; min-width: 0; } .ped-share-t b { font-weight: 500; font-size: 15px; } .ped-share-t small { font-size: 12.5px; color: var(--pv-mut); line-height: 1.35; }

/* ---------- gorjeta ---------- */
.ped-tip { gap: 12px; }
.ped-tip-h { display: flex; align-items: flex-start; gap: 12px; text-align: left; } .ped-tip-h > svg { flex: none; margin-top: 2px; color: var(--pv-dest); }
.ped-tip-h .ped-t { display: grid; gap: 2px; } .ped-tip-h b { font-weight: 500; font-size: 15.5px; }
.ped-tipchips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ped-chip { flex: 1 1 0; min-width: 0; white-space: nowrap; min-height: 46px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--pv-line2); background: var(--pv-sheet); color: var(--pv-soft); font: inherit; font-size: 14.5px; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .15s; }
.ped-chip:active { transform: scale(.96); }
.ped-chip.on { border-color: var(--pv-acc); background: var(--pv-acc-soft); color: var(--pv-text); font-weight: 500; }
.ped-tip-row { display: flex; align-items: center; gap: 10px; border-radius: 16px; border: 1px solid var(--pv-line2); background: var(--pv-sheet); padding: 0 16px; height: 50px; }
.ped-tip-row:focus-within { border-color: var(--pv-acc); box-shadow: 0 0 0 4px var(--pv-acc-soft); }
.ped-tip-row span { color: var(--pv-mut); }
.ped .ped-tip-in, .ped .ped-tip-in:focus, .ped .ped-tip-in:focus-visible { flex: 1; min-width: 0; border: 0 !important; outline: none !important; box-shadow: none !important; background: none !important; color: var(--pv-text); font: inherit; font-size: 18px; font-variant-numeric: tabular-nums; }

/* ---------- ocorrência de pagamento (corrida não paga) ---------- */
.ped-dsp { display: flex; flex-direction: column; gap: 12px; }
.ped-dsp-h { display: flex; gap: 12px; align-items: center; }
.ped-dsp-i { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--pv-warn) 16%, transparent); color: var(--pv-warn); }
.ped-dsp-h b { font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.ped-dsp-p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--pv-soft); }
.ped-dsp-ask { margin: 4px 0 0; font-size: 15px; font-weight: 500; }
.ped-dsp-q { margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--pv-s2); color: var(--pv-text); font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ped-dsp-q span { display: block; margin-bottom: 4px; font-size: 12px; color: var(--pv-mut); }
.ped-dsp-acts { display: flex; flex-direction: column; gap: 10px; }
.ped-dsp-b { height: 52px; border-radius: 999px; border: 1px solid var(--pv-line2); background: transparent; color: var(--pv-text); font: inherit; font-size: 15.5px; cursor: pointer; transition: transform .15s var(--pv-ease), background .2s; }
.ped-dsp-b:active:not(:disabled) { transform: scale(.98); } .ped-dsp-b:disabled { opacity: .5; cursor: default; }
.ped-dsp-b.pri { background: var(--pv-acc); border-color: transparent; color: var(--pv-ink); font-weight: 500; }
.ped-dsp-b.ghost { border-color: transparent; color: var(--pv-mut); height: 44px; }
.ped-dsp-up { display: flex; gap: 10px; align-items: center; min-height: 52px; padding: 10px 14px; border-radius: 18px; border: 1px dashed var(--pv-line2); color: var(--pv-soft); font-size: 14px; cursor: pointer; position: relative; overflow: hidden; }
.ped-dsp-up.on { border-style: solid; border-color: var(--pv-acc-line); color: var(--pv-text); }
.ped-dsp-up svg { flex: none; } .ped-dsp-up span { min-width: 0; overflow-wrap: anywhere; }
.ped-dsp-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ped-dsp-prev { max-width: 100%; max-height: 220px; object-fit: contain; border-radius: 14px; background: var(--pv-s2); align-self: flex-start; }

/* ---- selfie ao vivo do passageiro ---- */
.ped-selfie { display: grid; gap: 14px; justify-items: center; text-align: center; padding-bottom: 28px; }
.ped-selfie > * { max-width: 100%; }
.ped-consent { display: flex; gap: 12px; align-items: flex-start; text-align: left; font-size: 13px; line-height: 1.5; color: var(--pv-soft); padding: 14px; border-radius: 16px; background: var(--pv-s2); border: 1px solid var(--pv-line); cursor: pointer; }
.ped-consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--pv-acc); }
.ped-consent a { color: var(--pv-acc); }
.ped-selfie .ped-cta, .ped-selfie .ped-ghost { width: 100%; }
.ped-selfie .ped-cta[disabled] { opacity: .45; }
.selfie-stage { position: relative; width: min(78vw, 300px); aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; background: #000; border: 1px solid var(--pv-line2); }
.selfie-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.selfie-mask { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 38% 44% at 50% 48%, transparent 98%, rgba(4,9,7,.62) 100%); box-shadow: inset 0 0 0 2px rgba(33,241,168,.0); }
.selfie-mask::after { content: ''; position: absolute; left: 12%; right: 12%; top: 4%; bottom: 8%; border-radius: 50%; border: 2px dashed var(--pv-acc-line); }
.selfie-dot { position: absolute; top: 46%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: var(--pv-acc); box-shadow: 0 0 0 8px var(--pv-acc-soft); animation: selfiePulse 1.1s ease-in-out infinite; }
.selfie-dot.l { left: 4%; } .selfie-dot.r { right: 4%; }
.selfie-say { font-size: 15px; line-height: 1.4; min-height: 42px; }
.selfie-steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.selfie-steps li { font-size: 12px; padding: 5px 11px; border-radius: 99px; background: var(--pv-s2); color: var(--pv-mut); border: 1px solid var(--pv-line); }
.selfie-steps li.now { color: var(--pv-text); border-color: var(--pv-acc-line); }
.selfie-steps li.done { background: var(--pv-acc-soft); color: var(--pv-acc); border-color: var(--pv-acc-line); }
.selfie-photo { width: min(70vw, 260px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 24px; border: 1px solid var(--pv-line2); }
@keyframes selfiePulse { 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .selfie-dot { animation: none; } }

/* motorista sugerido perto do passageiro */
.ped-near { gap: 8px; }
.ped-alt { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--pv-line); } .ped-alt:last-of-type { border-bottom: 0; }
.ped-altav { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--pv-acc); color: var(--pv-ink); font-weight: 600; }
.ped-altx { flex: 1; min-width: 0; display: grid; line-height: 1.3; } .ped-altx b { font-weight: 500; overflow-wrap: anywhere; } .ped-altx small { color: var(--pv-mut); font-size: 12.5px; }
.ped-alton { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--pv-acc-soft); color: var(--pv-acc); }
.ped-altgo { min-height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 99px; background: var(--pv-acc); color: var(--pv-ink); font-weight: 600; font-size: 14px; text-decoration: none; }

/* ---------- agendamento: "agora ou agendar" + calendário ---------- */
.ped-whens { display: grid; gap: 12px; }
.ped-when { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 22px; border: 1px solid var(--pv-line2); background: var(--pv-s2); text-align: left; cursor: pointer; min-height: 76px; transition: transform .2s var(--pv-ease), border-color .2s, background .2s; }
.ped-when:hover { border-color: var(--pv-acc-line); } .ped-when:active { transform: scale(.985); }
.ped-when.now { background: linear-gradient(150deg, var(--pv-acc-soft), transparent 70%), var(--pv-s2); border-color: var(--pv-acc-line); }
.ped-when .ped-ico { flex: none; width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: var(--pv-acc-soft); color: var(--pv-acc); }
.ped-when-t { display: grid; gap: 2px; flex: 1; min-width: 0; } .ped-when-t b { font-weight: 600; font-size: 17px; } .ped-when-t small { color: var(--pv-soft); font-size: 13.5px; line-height: 1.35; }
.ped-when-go { color: var(--pv-mut); flex: none; }
.ped-cal { padding: 14px; }
.ped-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ped-cal-title { font-weight: 600; font-size: 16px; } .ped-cal-title::first-letter { text-transform: uppercase; }
.ped-cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--pv-line2); background: none; color: var(--pv-soft); display: grid; place-items: center; cursor: pointer; }
.ped-cal-nav:disabled { opacity: .3; cursor: default; }
.ped-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ped-cal-wd { text-align: center; font-size: 12px; color: var(--pv-mut); padding: 4px 0; }
.ped-cal-d { aspect-ratio: 1; min-height: 40px; border-radius: 14px; border: 1px solid transparent; background: none; color: var(--pv-mut); font-size: 15px; cursor: default; }
.ped-cal-d.free { background: var(--pv-s2); color: var(--pv-text); border-color: var(--pv-line); cursor: pointer; font-weight: 500; }
.ped-cal-d.free:hover { border-color: var(--pv-acc-line); }
.ped-cal-d.on { background: var(--pv-acc); color: var(--pv-ink); border-color: var(--pv-acc); font-weight: 700; }
.ped-cal-d:disabled { opacity: .32; }
.ped-times { display: grid; gap: 14px; }
.ped-cal-day { font-weight: 600; font-size: 15px; } .ped-cal-day::first-letter { text-transform: uppercase; }
.ped-times-g { display: grid; gap: 8px; } .ped-times-l { font-size: 12.5px; color: var(--pv-mut); }
.ped-times-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ped-time { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--pv-line2); background: var(--pv-s2); color: var(--pv-text); font-size: 15px; cursor: pointer; font-variant-numeric: tabular-nums; }
.ped-time:hover { border-color: var(--pv-acc-line); }
.ped-time.on { background: var(--pv-acc); color: var(--pv-ink); border-color: var(--pv-acc); font-weight: 700; }
.ped-whenchip { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 8px 8px 12px; border-radius: 999px; border: 1px solid var(--pv-acc-line); background: var(--pv-acc-soft); color: var(--pv-text); font-size: 13.5px; cursor: pointer; }
.ped-whenchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ped-whenchip em { font-style: normal; color: var(--pv-acc); font-weight: 600; padding: 0 6px; }
.ped-sched-sum { display: grid; gap: 12px; }
.ped-sum-l { display: grid; gap: 2px; } .ped-sum-l small { color: var(--pv-mut); font-size: 12.5px; } .ped-sum-l span { font-size: 15px; line-height: 1.35; }
@media (prefers-reduced-motion: reduce) { .ped-when { transition: none; } }
