/* ============================================================================
   Verified Badge — single shared component
   ----------------------------------------------------------------------------
   One component used across stall list, stall details, product details seller
   card, call panel, and market details. Rendered via verified_badge() /
   stall_verified_badge() (application/helpers/verification_helper.php).

   Tiers (color-coded by what is verified):
     .nid   Blue   #2563EB   NID Verified
     .tl    Green  #149A49   Trade License Verified
     .both  Gold   gradient  NID + Trade License Verified

   Sizes: default 18px · .sm 14px · .lg 22px
   ============================================================================ */

.vbadge-wrap {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  line-height: 0;
}

.vbadge-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* The check comes from svg_icon('check', …); CSS owns its size + weight so the
   tick reads crisply on the small colored circle (stroke-width:3 overrides the
   helper's default of 2). */
.vbadge-circle svg {
  width: 64%;
  height: 64%;
  stroke-width: 3;
}

.vbadge-circle.sm { width: 14px; height: 14px; }
.vbadge-circle.lg { width: 22px; height: 22px; }

.vbadge-circle.nid  { background: #2563EB; }
.vbadge-circle.tl   { background: #149A49; }
.vbadge-circle.both { background: linear-gradient(135deg, #F59E0B, #D97706); }

/* Tooltip — shown on hover (mouse) and focus-within (keyboard). Real text in
   the DOM, so screen readers can reach it. */
.vbadge-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1A1A1A;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  z-index: 60;
}

.vbadge-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1A1A1A;
}

.vbadge-wrap:hover .vbadge-tooltip,
.vbadge-wrap:focus-within .vbadge-tooltip {
  opacity: 1;
  visibility: visible;
}
