.delivery-tracking{margin:20px 0;position:relative}
.delivery-tracking .delivery-map-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.delivery-map-heading h3{font-size:19px;letter-spacing:-.4px}
.delivery-map-heading button{min-height:44px;padding:8px 14px;flex-shrink:0}
.delivery-tracking>p{font-size:14px;line-height:1.5;margin:8px 0 12px;min-height:0}
.delivery-map{height:340px;min-height:260px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#edf1e9;display:block;isolation:isolate}
.delivery-map>p{padding:30px 18px;text-align:center}
.delivery-map .leaflet-control-attribution{font:10px/1.4 Arial,sans-serif;max-width:100%;background:rgba(255,255,255,.94);color:#365348;padding:3px 6px}
.delivery-map .leaflet-control-attribution a{color:#285a49;text-decoration:underline}
.delivery-map .leaflet-bar a{width:42px;height:42px;line-height:42px;font-size:25px;color:var(--ink)}
.delivery-map .leaflet-pane svg{width:auto;height:auto;fill:initial;stroke:initial}
.delivery-map .courier-marker{background:#ed654b;border:3px solid #fff;border-radius:50%;box-shadow:0 2px 10px #243c334d;display:grid;place-items:center;color:#fff}
.delivery-map .courier-marker svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.8}
.delivery-map .courier-label{font-size:13px;font-weight:700;border-radius:8px;border:0;padding:5px 9px;color:#243c33}
.delivery-map-legend{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;font-size:13px}
.delivery-map-legend>span{display:flex;align-items:center;gap:7px}
.delivery-map-legend i{height:10px;width:10px;border-radius:50%;background:#ed654b}
.delivery-map-legend button{min-height:44px;border:1px solid var(--line);border-radius:10px;padding:8px 12px;background:#fff}
.delivery-map-dialog{width:min(1100px,96vw);max-width:1100px;max-height:96dvh;padding:20px;border:0;border-radius:20px;color:var(--ink);background:var(--paper)}
.delivery-map-dialog::backdrop{background:#102c28a6}
.delivery-map-dialog .delivery-tracking{margin:0}
.delivery-map-dialog .delivery-map{height:calc(90dvh - 170px);min-height:260px}
@media(max-width:540px){.delivery-map{height:320px}.delivery-map-heading h3{font-size:18px}.delivery-map-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:16px;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom))}.delivery-map-dialog .delivery-map{height:calc(100dvh - 190px)}}

/* O acompanhamento mostra somente o pedido aberto e prioriza a entrega. */
#dialog[data-view="order"]{width:min(720px,calc(100vw - 24px));max-width:720px}
#dialog[data-view="order"] .delivery-map{height:clamp(320px,52dvh,480px)}
@media(max-width:540px){#dialog[data-view="order"] .dialog-content{padding:20px 16px}#dialog[data-view="order"] .dialog-head{padding:18px 16px}}
