/* BULKLINK order tracking, part 2: details, timeline, sharing, the floating widget. */
.bl-section { margin-top:20px; }
.bl-section h3 { margin:0 0 8px; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:#5d6b85; font-weight:700; }
.bl-items { list-style:none; margin:0; padding:0; }
.bl-items li { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid #eef1f7; font-size:14px; }
.bl-items li .bl-iname { flex:1; min-width:0; overflow-wrap:anywhere; }
.bl-items li span:last-child { font-weight:700; white-space:nowrap; }
.bl-items li.on { background:#f3f7ff; border-radius:10px; padding-left:6px; padding-right:6px; }
.bl-thumb { width:48px; height:48px; flex:none; object-fit:cover; border-radius:10px; background:#e5e7eb; }

/* The widget, when an order has several items: one chip per item to choose which one is in front. */
.bl-pick { display:flex; gap:8px; overflow-x:auto; padding:2px 2px 10px; margin:0 -2px 4px; scrollbar-width:thin; }
.bl-chip { flex:none; display:flex; align-items:center; gap:8px; max-width:190px; padding:5px 12px 5px 5px; border-radius:14px; border:2px solid #dbe3f1; background:#fff; color:#0A1F44; cursor:pointer; font:700 12px/1.2 Inter,sans-serif; text-align:left; }
.bl-chip[aria-pressed=true] { border-color:#1E4D9A; background:#f3f7ff; }
.bl-chip .bl-thumb { width:36px; height:36px; border-radius:8px; }
.bl-chip .bl-ph { width:36px; height:36px; flex:none; border-radius:8px; background:#e5e7eb; color:#5d6b85; display:flex; align-items:center; justify-content:center; font-weight:800; }
.bl-chip span.bl-ct { overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow-wrap:anywhere; }
.bl-chip small { display:block; font-weight:600; color:#5d6b85; font-size:11px; }
.bl-which { margin:0 0 8px; font-size:12px; color:#5d6b85; }
.bl-itembox { margin:0 0 12px; }

/* Several orders in the widget: one short row each, all on screen; the chosen order's full card opens below the list. */
.bl-olist { margin:0 0 14px; max-height:236px; overflow-y:auto; border:1px solid #dbe3f1; border-radius:14px; background:#fff; }
.bl-orow { display:flex; align-items:center; gap:10px; width:100%; padding:11px 12px; border:0; border-bottom:1px solid #eef1f7; background:#fff; color:#0A1F44; text-align:left; cursor:pointer; font:600 13px/1.2 Inter,sans-serif; }
.bl-orow:last-child { border-bottom:0; }
.bl-orow[aria-pressed=true] { background:#f3f7ff; box-shadow:inset 4px 0 0 #1E4D9A; }
.bl-odot { flex:none; width:11px; height:11px; border-radius:50%; background:#F2B544; }
.bl-odot[data-state=active], .bl-odot[data-state=done] { background:#2FB67C; }
.bl-odot[data-state=bad] { background:#8a96ad; }
.bl-onum { flex:none; font-weight:800; }
.bl-ostat { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#4a5878; }
.bl-ocount { flex:none; font-size:12px; color:#5d6b85; }
.bl-front { display:flex; align-items:center; gap:12px; padding:10px; border-radius:14px; background:#f3f7ff; border:1px solid #dbe3f1; }
.bl-front .bl-big { width:84px; height:84px; flex:none; object-fit:cover; border-radius:12px; background:#e5e7eb; }
.bl-front .bl-ph.bl-big { display:flex; align-items:center; justify-content:center; font:800 28px Montserrat,Inter,sans-serif; color:#5d6b85; }
.bl-fname { margin:0; font:800 15px/1.25 Inter,sans-serif; color:#0A1F44; overflow-wrap:anywhere; }
.bl-fqty { margin:4px 0 0; font-size:13px; color:#4a5878; }
.bl-chip .bl-ph.bl-thumb { display:flex; align-items:center; justify-content:center; }
.bl-items li .bl-ph.bl-thumb { display:flex; align-items:center; justify-content:center; background:#e5e7eb; color:#5d6b85; font-weight:800; }
.bl-total { display:flex; justify-content:space-between; padding:10px 0 2px; font-weight:800; font-size:16px; color:#0A1F44; }
.bl-to { margin:10px 0 0; font-size:14px; color:#4a5878; }
.bl-tl { list-style:none; margin:0; padding:0 0 0 16px; border-left:3px solid #e1e8f4; }
.bl-tl li { position:relative; padding:0 0 12px 4px; font-size:14px; color:#2b3858; }
.bl-tl li:before { content:""; position:absolute; left:-23px; top:5px; width:11px; height:11px; border-radius:50%; background:#3B74C9; border:2px solid #fff; }
.bl-tl li:last-child { padding-bottom:0; } .bl-tl small { display:block; color:#7a869c; font-size:12px; }

.bl-share { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.bl-share .bl-main { grid-column:1 / -1; }
.bl-sbtn { display:flex; flex-direction:column; align-items:center; gap:5px; padding:10px 4px; border-radius:12px; border:1px solid #dbe3f1; background:#fff; color:#0A1F44 !important; font:700 12px Inter,sans-serif; text-decoration:none !important; cursor:pointer; }
.bl-sbtn svg { width:22px; height:22px; } .bl-sbtn:active { transform:scale(.97); }
.bl-sbtn.bl-main { flex-direction:row; justify-content:center; gap:10px; padding:13px; background:#0A1F44; border-color:#0A1F44; color:#fff !important; font-size:15px; }
.bl-sbtn.wa { color:#157a4e !important; }
.bl-hint { margin:10px 2px 0; font-size:12px; color:#7a869c; }
.bl-qr { text-align:center; padding:10px 0 0; } .bl-qr svg { display:block; margin:0 auto; width:220px; max-width:100%; height:auto; background:#fff; border-radius:12px; border:1px solid #dbe3f1; shape-rendering:crispEdges; }

/* After delivery: "Did your order arrive?" and the one big button that closes the tracker. */
.bl-confirm-box { background:#f0faf5; border:1px solid #bfe8d3; border-radius:16px; padding:16px 14px; text-align:center; }
.bl-ask { margin:0 0 12px; font:800 17px/1.25 Montserrat,Inter,sans-serif; color:#0A1F44; }
.bl-confirm { width:100%; display:flex; align-items:center; justify-content:center; gap:10px; padding:15px 14px; border:0; border-radius:14px; cursor:pointer; font:800 17px Inter,sans-serif; color:#fff; background:linear-gradient(135deg,#1F9D68,#2FB67C); box-shadow:0 8px 20px rgba(47,182,124,.34); }
.bl-confirm svg { width:22px; height:22px; flex:none; }
.bl-confirm:active { transform:scale(.98); }
.bl-confirm[disabled] { background:#eef1f7; color:#7a869c; box-shadow:none; cursor:default; }
.bl-confirm-box .bl-note { text-align:center; margin-top:10px; }
.bl-details summary { cursor:pointer; font-weight:700; font-size:14px; color:#1E4D9A; }
.bl-link { background:none; border:0; padding:0; color:#1E4D9A; font:700 13px Inter,sans-serif; text-decoration:underline; cursor:pointer; }
.bl-foot { text-align:center; margin:18px 8px 0; font-size:12px; color:#6b7893; }
.bl-final { display:none; margin:0 0 14px; padding:12px 14px; border-radius:12px; font-weight:700; font-size:14px; }
.bl-card[data-state=done] .bl-final { display:block; background:#e3f6ec; color:#157a4e; }
.bl-card[data-state=bad] .bl-final { display:block; background:#eef1f7; color:#4d5a75; }

/* The floating widget: a small pill that stays on the screen; it opens into the live ticket and never closes by itself
   until the order is delivered or cancelled. */
#bl-widget { position:fixed; z-index:10000; top:calc(env(safe-area-inset-top,0px) + 70px); right:10px; max-width:calc(100vw - 20px); font-family:Inter,system-ui,sans-serif; }
#bl-widget[hidden] { display:none; }
.bl-pill { display:flex; align-items:center; gap:10px; margin-left:auto; max-width:100%; padding:10px 14px 10px 13px; border-radius:999px; border:1px solid rgba(255,255,255,.2); background:#0A1F44; color:#fff; cursor:pointer; font:700 13px Inter,sans-serif; box-shadow:0 10px 28px rgba(0,0,0,.38); }
.bl-pill .bl-dot { margin:0; }
.bl-pill-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bl-badge { background:#F2B544; color:#1a1200; border-radius:999px; padding:1px 8px; font-size:12px; font-weight:800; }
.bl-pill.bl-wiggle { animation:bl-wiggle .7s 2; }
.bl-panel { margin-top:8px; width:min(390px,calc(100vw - 20px)); max-height:calc(100vh - 150px); max-height:calc(100dvh - 150px); overflow:auto; background:#fff; border-radius:20px; padding:16px; box-shadow:0 20px 56px rgba(0,0,0,.45); margin-left:auto; }
.bl-panel[hidden] { display:none; }
.bl-panel-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.bl-panel-top b { font:800 13px Montserrat,Inter,sans-serif; color:#0A1F44; letter-spacing:.04em; }
.bl-min { border:1px solid #dbe3f1; background:#fff; color:#0A1F44; border-radius:999px; padding:5px 12px; font:700 12px Inter,sans-serif; cursor:pointer; }
.bl-mini { padding:14px 0; border-top:1px solid #eef1f7; } .bl-mini:first-of-type { border-top:0; padding-top:0; }
.bl-mini .bl-mnum { font:800 14px Montserrat,Inter,sans-serif; color:#0A1F44; margin:0 0 8px; display:flex; justify-content:space-between; gap:8px; }
.bl-mini .bl-mnum a { font:700 12px Inter,sans-serif; color:#1E4D9A; }
.bl-mini .bl-headline { font-size:17px; } .bl-mini .bl-steps { margin-bottom:12px; }

@keyframes bl-pulse-amber { 0% { box-shadow:0 0 0 0 rgba(242,181,68,.6); } 70% { box-shadow:0 0 0 10px rgba(242,181,68,0); } 100% { box-shadow:0 0 0 0 rgba(242,181,68,0); } }
@keyframes bl-pulse-green { 0% { box-shadow:0 0 0 0 rgba(47,182,124,.6); } 70% { box-shadow:0 0 0 10px rgba(47,182,124,0); } 100% { box-shadow:0 0 0 0 rgba(47,182,124,0); } }
@keyframes bl-ring { 0% { box-shadow:0 0 0 0 rgba(30,77,154,.5); } 70% { box-shadow:0 0 0 9px rgba(30,77,154,0); } 100% { box-shadow:0 0 0 0 rgba(30,77,154,0); } }
@keyframes bl-wiggle { 0%,100% { transform:rotate(0); } 25% { transform:rotate(-3deg) scale(1.04); } 75% { transform:rotate(3deg) scale(1.04); } }
@media (prefers-reduced-motion:reduce) { .bl-dot,.bl-steps li.now i,.bl-pill.bl-wiggle { animation:none !important; } }
