body.home-voter-stats-enabled {
  padding-bottom: 138px;
}

.home-voter-stats {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1020;
  min-height: 138px;
  padding: 42px clamp(24px, 4.12vw, 49px) 18px;
  background: #eef3f9;
  box-shadow: 0 -18px 34px rgba(224, 232, 242, 0.68);
}

body.home-voter-stats-enabled #vote_notice_fixed_bottom_bar_v4 {
  bottom: 146px !important;
}

.home-voter-stats__inner {
  width: min(100%, 1092px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-voter-stat-card {
  --home-stat-color: #6257f4;
  --home-stat-soft: rgba(98, 87, 244, 0.11);
  --home-stat-track: #edf0f8;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 17px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 15px 25px rgba(24, 39, 75, 0.08),
    0 4px 10px rgba(24, 39, 75, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.home-voter-stat-card--voted {
  --home-stat-color: #23bfb1;
  --home-stat-soft: rgba(35, 191, 177, 0.13);
}

.home-voter-stat-card--not-voted {
  --home-stat-color: #f5a400;
  --home-stat-soft: rgba(245, 164, 0, 0.14);
  --home-stat-track: #f7ead0;
}

.home-voter-stat-card__icon {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--home-stat-color);
  background:
    conic-gradient(
      var(--home-stat-color) calc(var(--home-stat-percent) * 1%),
      var(--home-stat-track) 0
    );
}

.home-voter-stat-card__icon::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: #fbfcff;
  box-shadow: inset 0 0 0 1px rgba(18, 28, 45, 0.04);
}

.home-voter-stat-card__icon i {
  position: relative;
  z-index: 1;
  font-size: 18px;
}

.home-voter-stat-card__content {
  min-width: 0;
}

.home-voter-stat-card__label {
  margin: 0 0 2px;
  color: #a6aebd;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 1.25px;
  white-space: nowrap;
}

.home-voter-stat-card__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.home-voter-stat-card__row strong {
  color: #111827;
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.home-voter-stat-card__row span {
  color: var(--home-stat-color);
  background: var(--home-stat-soft);
  border-radius: 999px;
  padding: 3px 6px 2px;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

@media (max-width: 767.98px) {
  body.home-voter-stats-enabled {
    padding-bottom: 116px;
  }

  .home-voter-stats {
    min-height: 116px;
    padding: 22px 14px 14px;
  }

  body.home-voter-stats-enabled #vote_notice_fixed_bottom_bar_v4 {
    bottom: 124px !important;
  }

  .home-voter-stats__inner {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(252px, 82vw);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .home-voter-stats__inner::-webkit-scrollbar {
    display: none;
  }

  .home-voter-stat-card {
    height: 76px;
  }
}

@media (max-width: 380px) {
  .home-voter-stat-card {
    gap: 12px;
    padding: 13px 14px;
  }

  .home-voter-stat-card__row strong {
    font-size: 22px;
  }
}
