/* Full-screen live map (customer tracking + shop), same look as the driver app. */
body.lm-open { overflow: hidden; }
.lm { --lm-glass: rgba(255,255,255,.93); --lm-navy: #14213d; --lm-shadow: 0 12px 32px rgba(20,33,61,.22), 0 2px 8px rgba(20,33,61,.10);
  position: fixed; inset: 0; z-index: 1000; background: #e5e7eb; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--lm-navy); }
.lm__map { position: absolute; inset: 0; }
.lm .nav-map { position: absolute; inset: 0; height: auto; border: 0; border-radius: 0; background: #e5e7eb; overflow: hidden; touch-action: none; cursor: grab; }
.lm .nav-map__tiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; pointer-events: none; }
.lm .nav-map__route { position: absolute; inset: 0; pointer-events: none; }
.lm .nav-map__marks { position: absolute; inset: 0; pointer-events: none; }
.lm .nav-map__mark { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); color: #fff; font: 800 14px/1 system-ui, sans-serif; }
.lm .nav-map__mark--shop { background: #f97316; }
.lm .nav-map__mark--customer { background: #dc2626; }
.lm .nav-map__attr { position: absolute; inset-inline-end: 6px; top: calc(env(safe-area-inset-top) + 76px); font-size: 10px; background: rgba(255,255,255,.8); padding: 0 4px; border-radius: 6px; color: #333; }
.lm .nav-map__status { position: absolute; top: 42%; inset-inline-start: 50%; transform: translateX(-50%); background: rgba(20,33,61,.85); color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 13px; }
.lm .nav-map__status[hidden] { display: none; }
/* round map buttons, stacked on the right above the card */
.lm .nav-map__btn { position: absolute; inset-inline-end: 12px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--lm-glass); color: var(--lm-navy); box-shadow: var(--lm-shadow); font-size: 22px; line-height: 1; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lm .nav-map__btn:active, .lm__close:active { transform: scale(.94); }
.lm .nav-map__btn--fit { bottom: calc(var(--lm-card-h, 160px) + 34px + env(safe-area-inset-bottom)); }
.lm .nav-map__btn--me { bottom: calc(var(--lm-card-h, 160px) + 90px + env(safe-area-inset-bottom)); color: #2563eb; }
.lm .nav-map__btn--out { bottom: calc(var(--lm-card-h, 160px) + 154px + env(safe-area-inset-bottom)); }
.lm .nav-map__btn--in { bottom: calc(var(--lm-card-h, 160px) + 206px + env(safe-area-inset-bottom)); }

/* top bar */
.lm__top { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top) + 10px); left: 12px; right: 12px; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 99px; background: rgba(20,33,61,.92); color: #fff; box-shadow: var(--lm-shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lm__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }
.lm__titles { display: grid; flex: 1; min-width: 0; line-height: 1.2; } .lm__titles b { font-size: 16px; }
.lm__sub { font-size: 12.5px; color: #cbd5e1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lm__sub:empty { display: none; }
.lm__live { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 800 11.5px/1 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #bbf7d0; }
.lm__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: lm-dot 1.6s ease-out infinite; }
.lm__live[hidden] { display: none; }
@keyframes lm-dot { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 100% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } }

/* floating card */
.lm__card { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); max-height: 55%; overflow-y: auto; display: grid; gap: 12px; padding: 16px; border-radius: 24px; background: var(--lm-glass); box-shadow: var(--lm-shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.lm__card > * { margin: 0; }
.lm-head { display: flex; align-items: center; gap: 12px; }
.lm-head__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #eef2ff; color: #2563eb; }
.lm-head__icon--shop, .lm-head__icon--box, .lm-head__icon--receipt { background: #fff1e6; color: #c2410c; } .lm-head__icon--check { background: #dcfce7; color: #15803d; }
.lm-head b { display: block; font-size: 17px; line-height: 1.25; }
.lm-eta { display: flex; align-items: baseline; gap: 8px; } .lm-eta b { font-size: 30px; line-height: 1; color: #15803d; } .lm-eta span { color: #5b6782; }
.lm-steps { display: flex; gap: 6px; } .lm-steps i { flex: 1; height: 5px; border-radius: 99px; background: #e3e7ef; } .lm-steps i.on { background: #16a34a; }
.lm-pin { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--lm-navy); color: #fff; }
.lm-pin span { font-size: 13px; color: #cbd5e1; } .lm-pin b { font: 800 26px/1 ui-monospace, monospace; letter-spacing: 6px; }
.lm-row { display: flex; gap: 8px; }
.lm-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 16px; background: #eef1f6; color: var(--lm-navy); font: 700 15px/1 inherit; text-decoration: none; cursor: pointer; }
.lm-btn--go { background: #16a34a; color: #fff; }
.lm-muted { color: #5b6782; font-size: 13px; }
.lm__err { color: #b91c1c; }
@media (min-width: 900px) { .lm__card { left: auto; width: 400px; } .lm__top { right: auto; width: 420px; } .lm .nav-map__btn { inset-inline-end: 428px; } }
@media (prefers-reduced-motion: reduce) { .lm__live::before { animation: none; } }
