/* B2B Tracking UI – minimal desktop-first styling */

:root {
  --track-muted: #d6d9de;
  --track-active: #0a66c2; /* brand-ish */
  --track-done: #2e7d32;
}

.b2b-track__wrap { border: 1px solid #e2e4e7; padding: 20px; margin: 20px 0; background:#fff; border-radius: 14px; box-shadow: 0 18px 36px -28px rgba(15,23,42,.45) }
.b2b-track__header { display:flex; align-items:center; justify-content:center; margin-bottom:12px; text-align:center; }
.b2b-track__title { font-size: 1.2rem; font-weight: 700; }
.b2b-track__top { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:center; text-align:center; }
.b2b-track__stagebar { display:grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; margin: 16px 0; align-items:stretch; }
.b2b-track__stage { display:flex; align-items:center; justify-content:center; gap:8px; padding:10px; border:1px solid var(--track-muted); border-radius:10px; color:#4b5563; background:#f9fafb }
.b2b-track__stage .idx { font-weight:700; }
.b2b-track__stage .lbl { font-weight:600; }
.b2b-track__stage--active { border-color: var(--track-active); color: var(--track-active); }
.b2b-track__stage--done { border-color: var(--track-done); color: var(--track-done); }
.b2b-track__timeline { margin-top: 12px; }
.b2b-track__timeline ul { list-style: none; margin: 0; padding: 0; }
.b2b-track__timeline li { display:flex; gap:10px; border-left: 3px solid var(--track-muted); padding: 10px 0 10px 12px; }
.b2b-track__timeline time { color:#666; min-width: 160px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.b2b-track__pkg { border-top:1px solid #eee; padding-top:12px; margin-top:12px; text-align:center; }
.b2b-track__actions { display:flex; gap:10px; margin-top:8px; }
.b2b-track__actions { justify-content:center; }
.b2b-track__btn { appearance:none; border:1px solid #c7ccd1; background:#f7f8fa; color:#222; padding:6px 10px; border-radius:4px; cursor:pointer; }
.b2b-track__btn:hover { background:#eef1f4; }

@media (prefers-reduced-motion: reduce) {
  .b2b-track__stage .lottie { display:none; }
}

/* Fulfillment panel */
.b2b-fulfill__wrap { border:1px solid #e2e4e7; padding: 12px; margin: 16px 0; background:#fff; }
.b2b-fulfill__title { font-weight:700; margin-bottom:8px; text-align:center; }
.b2b-fulfill__table { width:100%; border-collapse: collapse; }
.b2b-fulfill__table th, .b2b-fulfill__table td { border:1px solid #eef1f4; padding:6px 8px; text-align:left; }
.b2b-fulfill__alloc { color:#555; font-size: 0.95em; }

/* Skeleton loader for tracking + fulfillment */
@keyframes b2b-sheen {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}
.b2b-skel {
  position: relative;
  overflow: hidden;
  background-color: #eceff3;
  background-image: linear-gradient(90deg, #eceff3 0, #f5f7fa 40%, #eceff3 80%);
  background-size: 200px 100%;
  animation: b2b-sheen 1.2s ease-in-out infinite;
  color: transparent;
}
.b2b-track__skeleton { margin-top: 8px; }
.b2b-track__skeleton .row { display:grid; grid-template-columns: repeat(4, 1fr); gap:10px; margin: 10px 0; }
.b2b-track__skeleton .cell { height: 40px; border-radius: 8px; }
.b2b-track__skeleton .line { height: 12px; width: 60%; border-radius: 6px; margin: 8px 0; }
.b2b-track__skeleton-msg { font-size: 0.95rem; color:#52607a; margin-top: 6px; }
.b2b-fulfill__skeleton .row { display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap:8px; margin:8px 0; }
.b2b-fulfill__skeleton .cell { height: 18px; border-radius: 6px; }

/* Hero phrase + lottie */
.b2b-track__hero { display:flex; align-items:center; justify-content:center; gap:14px; margin: 6px 0 10px; }
.b2b-track__hero-text { font-weight:800; color:#0f172a; font-size: 1.05rem; }
.b2b-track__hero-anim { display:flex; align-items:center; justify-content:center; }

@media (prefers-reduced-motion: reduce) {
  .b2b-track__hero-anim dotlottie-player { display:none; }
}
