/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-badge {
  position: relative;
  display: inline-flex;
  width: auto;
}
.nut-badge-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--nutui-badge-background-color, var(--nutui-color-primary, #ff0f23));
  padding: var(--nutui-badge-icon-padding, 2px);
  text-align: center;
  z-index: var(--nutui-badge-z-index, 1);
}
.nut-badge-icon .nut-icon {
  width: var(--nutui-badge-icon-size, 10px);
  height: var(--nutui-badge-icon-size, 10px);
  font-size: var(--nutui-badge-icon-size, 10px);
}
.nut-badge-sup, .nut-badge-icon {
  border-radius: var(--nutui-badge-border-radius, var(--nutui-badge-height, 14px));
}
.nut-badge-sup::after, .nut-badge-icon::after {
  content: "";
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -50%;
  right: -50%;
  transform: scale(0.5);
  border: var(--nutui-badge-border, 1px solid #ffffff);
  border-radius: var(--nutui-badge-border-radius, var(--nutui-badge-height, 14px));
}
.nut-badge-sup {
  display: inline-flex;
  justify-content: center;
  height: var(--nutui-badge-height, 14px);
  min-width: var(--nutui-badge-min-width, 6px);
  padding: var(--nutui-badge-padding, 1px 4px);
  box-sizing: border-box;
  color: var(--nutui-badge-color, #ffffff);
  font-size: var(--nutui-badge-font-size, var(--nutui-font-size-xxs, 10px));
  line-height: 12px;
  white-space: nowrap;
  font-weight: normal;
  vertical-align: middle;
  background: var(--nutui-badge-background-color, var(--nutui-color-primary, #ff0f23));
  z-index: 1;
}
.nut-badge-number {
  font-family: "JD";
  /* #ifdef harmony */
  line-height: 12px;
  /* #endif */
  /* #ifndef harmony */
  line-height: 13px;
  /* #endif */
}
.nut-badge-one {
  height: var(--nutui-badge-height, 14px);
  width: var(--nutui-badge-height, 14px);
}
.nut-badge-content {
  position: absolute;
  transform: var(--nutui-badge-content-transform, translate(50%, -50%));
}
.nut-badge-dot {
  padding: 0;
  border-radius: 50%;
}
.nut-badge-dot::after {
  border: var(--nutui-badge-dot-border, 1px solid #ffffff);
  border-radius: 50%;
}
.nut-badge-dot-normal {
  min-width: var(--nutui-badge-dot-width, 6px);
  width: var(--nutui-badge-dot-width, 6px);
  height: var(--nutui-badge-dot-width, 6px);
}
.nut-badge-dot-small {
  min-width: var(--nutui-badge-dot-width, 4px);
  width: var(--nutui-badge-dot-width, 4px);
  height: var(--nutui-badge-dot-width, 4px);
}
.nut-badge-dot-large {
  min-width: var(--nutui-badge-dot-width, 8px);
  width: var(--nutui-badge-dot-width, 8px);
  height: var(--nutui-badge-dot-width, 8px);
}
.nut-badge-outline {
  background: #ffffff;
  color: var(--nutui-badge-outline-color, var(--nutui-color-primary, #ff0f23));
}
.nut-badge-outline::after {
  border: var(--nutui-badge-outline-border, 1px solid var(--nutui-color-primary, #ff0f23));
}