.za-badge {
  --dot-size: var(--za-badge-dot-size, 8px);
  --color: var(--za-badge-color, var(--za-theme-danger));
  --text-color: var(--za-badge-text-color, #fff);
  --border-color: var(--za-badge-border-color, #fff);
  --font-size: var(--za-badge-font-size, 12px);
  --font-weight: var(--za-badge-font-weight, 600);
  --height: var(--za-badge-height, 20px);
  --padding-horizontal: var(--za-badge-padding-horizontal, 4px);
  --border-radius: var(--za-badge-border-radius, var(--za-radius-sm));
  --top: var(--za-badge-top, 0);
  --right: var(--za-badge-right, 0);
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.za-badge .za-icon {
  color: inherit;
}
.za-badge__content {
  display: flex;
  justify-content: center;
  align-items: center;
  top: auto;
  background-color: var(--color);
  color: var(--text-color);
  font-size: var(--font-size);
  font-weight: var(--font-weight);
  height: var(--height);
  padding: 0 var(--padding-horizontal);
  white-space: nowrap;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.za-badge--dot {
  --height: var(--za-badge-height, var(--dot-size));
}
.za-badge--dot .za-badge__content {
  width: var(--height);
  border-radius: 50%;
  padding: 0;
}

.za-badge--radius .za-badge__content {
  border-radius: var(--border-radius);
}

.za-badge--round .za-badge__content {
  min-width: var(--height);
  border-radius: var(--height);
}

.za-badge--circle .za-badge__content {
  width: var(--height);
  border-radius: 50%;
  padding: 0;
}

.za-badge--leaf .za-badge__content {
  min-width: var(--height);
  border-radius: var(--height) var(--height) var(--height) 0;
}

.za-badge--sup {
  --font-size: var(--za-badge-font-size, 10px);
  --height: var(--za-badge-height, 16px);
}
.za-badge--sup.za-badge--dot {
  --height: var(--za-badge-height, var(--dot-size));
}

.za-badge--sup .za-badge__content {
  position: absolute;
  top: var(--top);
  right: var(--right);
  transform: translate3d(calc(100% - var(--height) / 2), -50%, 0);
}

.za-badge--bordered .za-badge__content {
  border: 1px solid var(--border-color);
}