.badge {
  display: inline-block;
  box-sizing: border-box;
  margin: 0 2px;
  border-radius: 4px;
  font-weight: bold;
  font-size: calc(1rem * $type-scale-7);
  text-align: center;
  vertical-align: middle;
}

.badge-small {
  padding-left: 2px;
  padding-right: 2px;
  min-width: 16px;
  line-height: 16px;
  font-size: calc(1rem * $type-scale-8);
}

.badge-medium {
  padding-left: 3px;
  padding-right: 3px;
  min-width: 20px;
  line-height: 20px;
}

.badge-large {
  padding-left: 4px;
  padding-right: 4px;
  min-width: 24px;
  line-height: 24px;
  font-size: calc(1rem * $type-scale-6);
}

.badge-overlap {
  position: absolute;
  top: 2px;
  right: 0;
  z-index: 10;
}

.badge-pill {
  border-radius: 50%;
}

.badge-default,
a.badge-default {
  background-color: var(--medium-light-color);
  color: var(--dark-color);
}

.badge-positive,
a.badge-positive {
  background-color: var(--positive-background-color);
  color: var(--positive-color);
}

.badge-negative,
a.badge-negative {
  background-color: var(--negative-background-color);
  color: var(--negative-color);
}

.badge-pill.badge-positive,
a.badge-pill.badge-positive {
  background-color: var(--positive-color);
  color: var(--x-light-color);
}

.badge-pill.badge-negative,
a.badge-pill.badge-negative {
  background-color: var(--negative-color);
  color: var(--x-light-color);
}
