/*
 * FormVault Stats Bar — [fv_stats_bar]
 * Clean white strip with 4 stat items and icons.
 */

*, *::before, *::after { box-sizing: border-box; }

.fv-sb2 {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  margin: 0 0 28px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

/* ── Inner row ────────────────────────────────────────────────────────────── */
.fv-sb2__inner {
  display: flex;
  align-items: stretch;
}

/* ── Item ─────────────────────────────────────────────────────────────────── */
.fv-sb2__item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  position: relative;
}

/* Divider between items */
.fv-sb2__item + .fv-sb2__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #e2e8f0;
}

/* ── Icon ─────────────────────────────────────────────────────────────────── */
.fv-sb2__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fv-sb2__icon svg {
  width: 22px;
  height: 22px;
}

.fv-sb2__icon--blue   { background: #eff6ff; color: #2563eb; }
.fv-sb2__icon--green  { background: #f0fdf4; color: #16a34a; }
.fv-sb2__icon--yellow { background: #fffbeb; color: #d97706; }
.fv-sb2__icon--purple { background: #f5f3ff; color: #7c3aed; }

/* ── Text ─────────────────────────────────────────────────────────────────── */
.fv-sb2__text {
  min-width: 0;
}

.fv-sb2__val {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.fv-sb2__lbl {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.3;
  margin-top: 2px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .fv-sb2__inner {
    flex-wrap: wrap;
  }

  .fv-sb2__item {
    flex: 1 1 50%;
    min-width: 0;
  }

  /* Remove the pseudo-divider on mobile — borders handle it */
  .fv-sb2__item + .fv-sb2__item::before {
    display: none;
  }

  .fv-sb2__item:nth-child(1),
  .fv-sb2__item:nth-child(2) {
    border-bottom: 1px solid #f1f5f9;
  }

  .fv-sb2__item:nth-child(even) {
    border-left: 1px solid #f1f5f9;
  }
}

@media (max-width: 360px) {
  .fv-sb2__item {
    flex: 1 1 100%;
  }

  .fv-sb2__item:nth-child(even) {
    border-left: none;
  }

  .fv-sb2__item:nth-child(2) {
    border-bottom: 1px solid #f1f5f9;
  }
}
