.route-dialog{width:min(920px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:28px;border:1px solid var(--line);border-radius:16px;background:#f3f5f0;color:#17352e;overflow-y:auto;overscroll-behavior:contain}.route-dialog::backdrop{background:#102c25aa}.route-dialog-header{display:flex;justify-content:space-between;gap:16px;align-items:start}.route-dialog-header .eyebrow{margin:0 0 10px}.route-dialog h2{font-size:28px;letter-spacing:-1px;margin:0}.route-dialog-header button{flex-shrink:0}.route-waybill{font:11px monospace;color:var(--muted);overflow-wrap:anywhere;margin:12px 0}.route-preview-note{font-size:12px;line-height:1.8;padding:12px 16px;border:1px solid #c3d1ae;background:#e8efdf;border-radius:8px}.route-stops{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0}.route-stops dt{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1px;color:var(--brand)}.route-stops div:last-child dt{color:#916121}.route-stops dd{font-size:13px;line-height:1.8;overflow-wrap:anywhere;margin:6px 0 0}#route-status{font-size:12px;line-height:1.8;color:var(--muted)}.delivery-route-map{height:clamp(280px,45dvh,460px);width:100%;background:#e2e9df;border:1px solid var(--line);border-radius:10px;isolation:isolate}.delivery-route-map .leaflet-control-attribution{font-size:9px;max-width:90%}.route-summary{font-size:14px;font-weight:700;margin:20px 0 8px}.route-dialog-footer{display:flex;gap:16px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:24px}.route-dialog-footer a{font-size:12px;line-height:1.8}.order-actions .track-delivery{color:#fff;background:var(--brand);border-color:var(--brand)}.order-actions .track-delivery:hover{background:#184e3b}#route-loading{height:280px}@media(max-width:600px){.route-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:20px}.route-stops{grid-template-columns:1fr;gap:12px}.route-dialog h2{font-size:24px}.route-dialog-footer{align-items:start;flex-direction:column}.order-actions{align-items:stretch}.order-actions>*{flex:1 1 140px;text-align:center}}
.quote-result{margin:22px 0;padding:20px 0;border-top:1px solid var(--line)}.quote-result h3{font-size:16px}.quote-totals{display:grid;grid-template-columns:1fr 1fr;gap:14px}.quote-totals span{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.quote-totals output,.quote-totals strong{font-size:20px;font-weight:700;overflow-wrap:anywhere}#quote-map{height:300px}.quote-result>a{font-size:12px}.quote-result .subtle{overflow-wrap:anywhere}.quote-totals>div{min-width:0}
#priceBadge{white-space:normal;overflow-wrap:anywhere;text-align:right;max-width:55%}

/* Immersive Uber-inspired delivery route / tracking surface */
.route-dialog{width:min(1120px,calc(100% - 18px));max-height:calc(100dvh - 18px);padding:0;border:0;border-radius:26px;background:#f5f7f5;box-shadow:0 32px 100px #071b14a6;overflow:hidden}
.route-dialog::backdrop{background:#071a14c9;backdrop-filter:blur(5px)}
.route-dialog-header{position:relative;z-index:2;align-items:center;padding:20px 24px 13px;background:#fff;border-bottom:1px solid #e6ece8}
.route-dialog-header h2{font-size:24px;font-weight:900;letter-spacing:-1.1px}
.route-dialog-header .eyebrow{margin:0 0 5px;color:#167253}
.route-dialog-header button{border-radius:999px;padding:9px 15px}
.route-waybill{margin:6px 0 0;color:#718078}
.route-preview-note{position:absolute;z-index:3;top:92px;left:24px;margin:0;padding:8px 12px;border:1px solid #ffffffaa;border-radius:999px;background:#fffffff0;color:#40554a;box-shadow:0 8px 24px #132a1d1c;font-size:10px;font-weight:800;backdrop-filter:blur(12px)}
.route-stops{position:absolute;z-index:3;top:145px;left:24px;right:24px;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;pointer-events:none}
.route-stops>div{padding:12px 14px;border:1px solid #e4ebe6;border-radius:14px;background:#fffffff0;box-shadow:0 9px 24px #15271d16;backdrop-filter:blur(12px)}
.route-stops dt{font-size:9px;letter-spacing:1px}
.route-stops dd{font-size:11px;line-height:1.5;margin-top:4px}
#delivery-route-map{height:min(66dvh,650px);min-height:420px;border:0;border-radius:0;background:#dce8e1;box-shadow:inset 0 18px 30px #173d3110;isolation:isolate}
#delivery-route-map .leaflet-tile-pane{filter:saturate(.72) contrast(1.05) brightness(1.02)}
#delivery-route-map .leaflet-control-zoom{border:0!important;border-radius:13px!important;overflow:hidden;box-shadow:0 8px 24px #10241b26!important}
#delivery-route-map .leaflet-control-zoom a{width:36px;height:36px;line-height:36px;border:0!important}
#route-status{position:absolute;z-index:4;bottom:18px;left:20px;max-width:calc(100% - 40px);margin:0;padding:10px 14px;border-radius:999px;background:#12271ff0;color:#fff;font-size:10px;font-weight:750;box-shadow:0 10px 25px #10241b35}
#route-summary{position:relative;z-index:2;display:block!important;margin:0;padding:18px 22px 5px;background:#fff;color:#14231e;font-size:15px;font-weight:900}
#route-locations{position:relative;z-index:2;margin:0;padding:4px 22px 12px;background:#fff;color:#65756d;font-size:10px}
.route-dialog-footer{position:relative;z-index:2;margin:0;padding:12px 22px 18px;background:#fff;border-top:1px solid #e8eeea}
.route-dialog-footer a{font-size:11px;font-weight:800}
#route-loading{height:420px}
@media(max-width:600px){
 .route-dialog{width:100%;max-height:100dvh;height:100dvh;border-radius:0}
 .route-dialog-header{padding:15px 16px 10px}
 .route-dialog-header h2{font-size:20px}
 .route-preview-note{top:83px;left:12px;font-size:9px}
 .route-stops{top:125px;left:12px;right:12px;gap:7px}
 .route-stops>div{padding:9px 10px}
 .route-stops dd{font-size:9px}
 #delivery-route-map{height:calc(100dvh - 320px);min-height:330px}
 #route-status{bottom:12px;left:12px;font-size:9px}
 #route-summary{padding:14px 16px 4px}
 #route-locations{padding:4px 16px 10px}
 .route-dialog-footer{padding:10px 16px 14px}
}

/* Dimensional route line and raised 3D-style pickup/drop-off pins */
#delivery-route-map .swift-map-pin-wrap{background:transparent;border:0}
#delivery-route-map .swift-map-pin{position:relative;display:block;width:27px;height:27px;border:3px solid #fff;border-radius:50% 50% 50% 7px;background:linear-gradient(145deg,color-mix(in srgb,var(--pin-color),white 22%),var(--pin-color));transform:rotate(-45deg);box-shadow:3px 5px 0 #0b211a35,0 7px 16px #0b211a45}
#delivery-route-map .swift-map-pin:after{content:"";position:absolute;inset:6px;border:2px solid #ffffffd9;border-radius:50%;background:#ffffff22}
#delivery-route-map .swift-map-tooltip{border:0;border-radius:8px;background:#12271ff2;color:#fff;box-shadow:0 5px 15px #10241b35;font-size:10px;font-weight:850;padding:5px 8px}
#delivery-route-map .swift-map-tooltip:before{border-top-color:#12271ff2}


/* Customer route layout: trip information first, then a clean full-width map.
   Keep the trip details in normal document flow rather than floating over the map. */
.route-dialog .route-preview-note{
  position:relative;inset:auto;display:block;margin:14px 22px 0;
  width:fit-content;max-width:calc(100% - 44px);
  border:1px solid #dce7df;background:#edf3ef;color:#496157;
  box-shadow:none;backdrop-filter:none;border-radius:10px;
}
.route-dialog .route-stops{
  position:relative;inset:auto;display:grid;grid-template-columns:1fr 1fr;
  gap:10px;margin:12px 22px 14px;pointer-events:auto;
}
.route-dialog .route-stops>div{
  min-width:0;padding:13px 15px;border:1px solid #e3ebe6;
  border-radius:14px;background:#fff;box-shadow:0 3px 12px #15271d0a;
  backdrop-filter:none;
}
.route-dialog #delivery-route-map{
  display:block;width:100%;height:clamp(340px,58dvh,680px);
  min-height:340px;border:0;border-top:1px solid #e3ebe6;border-radius:0;
  background:#e7eee9;
}
.route-dialog #delivery-route-map[hidden]{display:none}
.route-dialog #route-status{
  position:relative;inset:auto;display:block;width:fit-content;max-width:calc(100% - 44px);
  margin:0 22px 12px;background:#edf3ef;color:#365448;
  border:1px solid #dce7df;box-shadow:none;border-radius:10px;
}
.route-dialog #route-loading{height:clamp(340px,58dvh,680px);margin:0}
@media(max-width:600px){
  .route-dialog .route-preview-note{margin:12px 14px 0;max-width:calc(100% - 28px)}
  .route-dialog .route-stops{grid-template-columns:1fr;gap:7px;margin:10px 14px 12px}
  .route-dialog .route-stops>div{padding:10px 12px}
  .route-dialog #delivery-route-map{height:54dvh;min-height:320px}
  .route-dialog #route-status{max-width:calc(100% - 28px);margin:0 14px 10px}
  .route-dialog #route-loading{height:54dvh;min-height:320px}
}
