/* Bison Delivery – customer order tracking. Inherits theme font. */
.bdbm-track { --t-green: #16a34a; --t-forest: #123d30; --t-line: #e3e9e6; --t-muted: #5f7069; max-width: 640px; margin: 0 auto 24px; padding: 20px; border: 1px solid var(--t-line); border-radius: 16px; background: #fff; box-shadow: 0 4px 20px rgba(16,33,27,.06); color: #11211b; }
.bdbm-track *, .bdbm-track *::before { box-sizing: border-box; }
.bdbm-track h2 { margin: 0; font-size: 22px; }
.bdbm-track-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.bdbm-track-kicker { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--t-muted); font-weight: 600; }
.bdbm-track-status { padding: 6px 12px; border-radius: 999px; background: #dcfce7; color: #166534; font-weight: 700; font-size: 13px; }
.bdbm-track-status--out, .bdbm-track-status--picked { background: #dbeafe; color: #1e40af; }
.bdbm-track-status--ready, .bdbm-track-status--assigned { background: #ede9fe; color: #5b21b6; }
.bdbm-track-status--processing, .bdbm-track-status--pending { background: #fef3c7; color: #92400e; }
.bdbm-track-status--cancelled { background: #fee2e2; color: #991b1b; }
.bdbm-track-alert[hidden], .bdbm-timeline[hidden], .bdbm-track-otp[hidden] { display: none; }
.bdbm-acc-status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f5f3; color: #374151; }
.bdbm-acc-status--out, .bdbm-acc-status--picked { background: #dbeafe; color: #1e40af; }
.bdbm-acc-status--delivered { background: #dcfce7; color: #166534; }
.bdbm-acc-status--cancelled { background: #fee2e2; color: #991b1b; }
.bdbm-acc-status--ready, .bdbm-acc-status--assigned { background: #ede9fe; color: #5b21b6; }
.bdbm-track-alert { padding: 12px 14px; border-radius: 10px; background: #fee2e2; color: #7f1d1d; margin-bottom: 14px; }

.bdbm-timeline { list-style: none; margin: 0 0 18px; padding: 0; position: relative; }
.bdbm-timeline li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; color: var(--t-muted); }
.bdbm-timeline li:last-child { padding-bottom: 0; }
.bdbm-timeline li::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--t-line); }
.bdbm-timeline li:last-child::before { display: none; }
.bdbm-timeline li.is-done::before { background: var(--t-green); }
.bdbm-tl-dot { position: relative; z-index: 1; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--t-line); background: #fff; }
.bdbm-timeline li.is-done { color: #11211b; }
.bdbm-timeline li.is-done .bdbm-tl-dot { border-color: var(--t-green); background: var(--t-green); }
.bdbm-timeline li.is-done .bdbm-tl-dot::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bdbm-timeline li.is-current .bdbm-tl-dot { box-shadow: 0 0 0 5px rgba(22,163,74,.18); }
.bdbm-timeline strong { display: block; font-size: 15px; }
.bdbm-timeline small { display: block; font-size: 12px; color: var(--t-muted); }

.bdbm-track-boy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 12px; background: linear-gradient(135deg, var(--t-forest), #173027); color: #fff; margin-bottom: 14px; }
.bdbm-track-boy[hidden] { display: none; }
.bdbm-track-boy img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.3); }
.bdbm-track-boy > div { flex: 1; min-width: 140px; }
.bdbm-track-boy .bdbm-track-kicker { color: rgba(255,255,255,.7); }
.bdbm-track-boy strong { display: block; font-size: 16px; }
.bdbm-track-boy small { color: rgba(255,255,255,.75); }
.bdbm-track-call { padding: 10px 14px; border-radius: 10px; background: var(--t-green); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 14px; }

.bdbm-track-otp { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; background: #fef3c7; color: #78350f; margin-bottom: 14px; font-size: 13px; }
.bdbm-track-otp strong { font-size: 26px; letter-spacing: .3em; }

.bdbm-track-map-wrap[hidden] { display: none; }
.bdbm-track-map-head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.bdbm-track-map-head small { margin-left: auto; color: var(--t-muted); font-weight: 400; }
.bdbm-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.6); animation: bdbm-pulse 1.6s infinite; }
@keyframes bdbm-pulse { 70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.bdbm-track-map { height: 300px; border-radius: 12px; overflow: hidden; background: #eef2f0; }

.bdbm-track--form p { color: var(--t-muted); }
.bdbm-track-lookup { display: grid; gap: 12px; margin-top: 12px; }
.bdbm-track-lookup label span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.bdbm-track-lookup input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--t-line); border-radius: 10px; font-size: 15px; }
.bdbm-track-lookup button { min-height: 48px; border: 0; border-radius: 12px; background: var(--t-green); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.bdbm-track-lookup button:hover { background: #0f7a37; }
@media (min-width: 600px) { .bdbm-track-lookup { grid-template-columns: 1fr 1fr auto; align-items: end; } }
