/* ==========================================================================
   Pak-Sino Electronics — live pricing UI (v4)
   Provenance badges + freshness strip. Kept separate from shop.css so the
   supplier-data styling can be audited in one place.
   ========================================================================== */

/* ---- freshness strip ---------------------------------------------------- */
.lv-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  background: #f0f8f3;
  border: 1px solid #cfe9da;
  color: #14603c;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 8px 13px;
  border-radius: 5px;
  margin-bottom: 14px;
}
.lv-strip b { font-weight: 700; }
.lv-strip .lv-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #17a05c; flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(23,160,92,.16);
  animation: lv-pulse 2.4s ease-in-out infinite;
}
@keyframes lv-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(23,160,92,.16); }
  50%      { box-shadow: 0 0 0 5px rgba(23,160,92,.06); }
}
.lv-strip-time {
  margin-left: auto;
  color: #3d7a5c;
  font-size: 11.5px;
  white-space: nowrap;
}
.lv-strip-time em { font-style: normal; opacity: .62; }

.lv-strip-warn {
  background: #fff8ec;
  border-color: #f0dcb8;
  color: #8a5a12;
}
.lv-strip-warn .lv-dot {
  background: #d99114;
  box-shadow: 0 0 0 3px rgba(217,145,20,.16);
  animation: none;
}
.lv-strip-warn .lv-strip-time { color: #9a6b1f; }

/* ---- provenance badges -------------------------------------------------- */
.lv-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  line-height: 1.5;
  vertical-align: middle;
}
.lv-live  { background: #e5f6ed; color: #11794a; border: 1px solid #bfe6d1; }
.lv-stale { background: #fef4e2; color: #95610f; border: 1px solid #f0dcb8; }
.lv-ind   { background: #eef1f6; color: #7b8798; border: 1px solid #dfe5ed; }
.lv-oos   { background: #fdeceb; color: #a8322a; border: 1px solid #f3cdc9; }

/* live price emphasis on cards */
.pcard-price .lv-live-price { color: #0b7a46; }
.pcard-price small .lv-src { color: #11794a; font-weight: 700; }

/* product detail live block */
.lv-detail-box {
  border: 1px solid #cfe9da;
  background: #f7fcf9;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.lv-detail-box .lv-detail-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.lv-detail-box .lv-detail-price {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 25px;
  font-weight: 800;
  color: #0b5fa5;
  line-height: 1.1;
}
.lv-detail-box .lv-detail-meta {
  font-size: 11.5px;
  color: #4a6b5c;
  line-height: 1.6;
}
.lv-detail-box .lv-detail-meta b { color: #14603c; }

/* BOM results live tag */
.lv-bom-live { color: #11794a; font-weight: 800; }
.lv-bom-ind  { color: #8a95a4; }

@media (max-width: 720px) {
  .lv-strip { font-size: 11.5px; }
  .lv-strip-time { margin-left: 0; width: 100%; }
  .lv-detail-box .lv-detail-price { font-size: 21px; }
}
