.sheet { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; justify-items: center; }
.sheet[hidden], .ok[hidden], .bloco[hidden], .mapa[hidden], .campo[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(6,10,24,.6); backdrop-filter: blur(4px); }
.sheet-box {
  position: relative; width: min(560px, 100%); max-height: 92svh; overflow-y: auto; overscroll-behavior: contain;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0;
  background: var(--bg); color: var(--ink); animation: sobe .35s cubic-bezier(.2,.8,.2,1);
  display: grid; gap: 12px;
}
@keyframes sobe { from { transform: translateY(100%); } }
@media (min-width: 600px) { .sheet { align-items: center; } .sheet-box { border-radius: 24px; } }
.sheet-top { display: flex; justify-content: space-between; align-items: center; }
.sheet-top h2 { font-size: 1.6rem; }
.x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); font-size: 1.1rem; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.sh-h { font-size: 1.05rem; font-weight: 700; margin-top: 8px; }

.li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.li small { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.qt { display: flex; align-items: center; gap: 4px; flex: none; }
.qt button { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--card); color: var(--ink); font-size: 1.2rem; box-shadow: inset 0 0 0 1px var(--line); }
.qt span { min-width: 24px; text-align: center; font-weight: 700; }

.tipos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tipo {
  display: grid; gap: 4px; justify-items: center; padding: 12px 6px; min-height: 76px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--card); color: var(--ink); font-size: 1.5rem; box-shadow: inset 0 0 0 1.5px var(--line);
}
.tipo span { font: 600 .82rem "Inter"; }
.tipo[aria-checked="true"] { box-shadow: inset 0 0 0 2.5px var(--azul), var(--glow); }
.bloco { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--bg-alt); }
.gps { width: 100%; }
.gps-st { margin: 0; font-size: .92rem; }
.mapa iframe { width: 100%; height: 180px; border: 0; border-radius: 12px; }
.mini { margin: 0; font-size: .88rem; color: var(--muted); }
.mini a { color: var(--azul); font-weight: 600; }
.centro { text-align: center; }
.lbl { font-weight: 600; font-size: .92rem; }
.campo {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 0; font: 500 1rem "Inter";
  background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
}
.resumo { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.resumo div { display: flex; justify-content: space-between; color: var(--muted); }
.resumo .tot { color: var(--ink); font: 800 1.2rem "Inter"; padding-top: 6px; border-top: 1px solid var(--line); }
.erro { margin: 0; color: #E5484D; font-weight: 600; min-height: 1em; }
.envio { display: grid; gap: 8px; }
.btn-wa { background: #25D366; color: #06331A; width: 100%; }
.envio-aviso { margin: 0; text-align: center; color: var(--muted); font-size: .88rem; }
.campo.invalido { box-shadow: inset 0 0 0 2px #E5484D; }
.tipo small { font: 700 .72rem "Inter"; color: var(--muted); }
.btn-wa:hover { background: #1FBE5A; }

/* Confirmacao */
.ok { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(6,10,24,.75); backdrop-filter: blur(6px); }
.ok-box { width: min(440px, 100%); padding: 28px 20px; border-radius: 24px; background: var(--bg); color: var(--ink); text-align: center; display: grid; gap: 12px; animation: entra .4s both; }
.ok-box h2 { font-size: 1.7rem; }
.ok-box p { margin: 0; color: var(--muted); }
.estrada { position: relative; height: 64px; margin: 8px 0; border-radius: 999px; background: var(--bg-alt); font-size: 1.8rem; }
.estrada::before { content: ""; position: absolute; left: 50px; right: 50px; top: 50%; border-top: 3px dashed var(--line); }
.estrada span { position: absolute; top: 50%; transform: translateY(-50%); }
.loja-ic { left: 12px; } .voce { right: 12px; }
.moto { left: 40px; transform: translateY(-50%) scaleX(-1); animation: moto 3.2s ease-in-out infinite; }
@keyframes moto { 0% { left: 40px; } 80%, 100% { left: calc(100% - 84px); } }
.eta { color: var(--ink) !important; font-size: 1.1rem; }
.eta strong { color: var(--azul); }
