/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-badge {
  position: relative;
  /* #ifdef dynamic*/
  display: flex;
  /* #endif */
  /* #ifndef dynamic*/
  display: inline-flex;
  box-sizing: content-box;
  /* #endif */
  vertical-align: middle;
  width: auto;
}
.nut-badge-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--nutui-badge-background-color, var(--nutui-color-danger));
  padding: var(--nutui-badge-icon-padding, 3px);
  text-align: center;
  z-index: var(--nutui-badge-z-index, 1);
}
.nut-badge-icon .nut-icon {
  width: var(--nutui-badge-icon-size, 12px);
  height: var(--nutui-badge-icon-size, 12px);
  font-size: var(--nutui-badge-icon-size, 12px);
}
.nut-badge-sup, .nut-badge-icon {
  border-radius: var(--nutui-badge-border-radius, calc(var(--nutui-badge-height, 20px) / 2));
}
.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, 2px solid var(--nutui-badge-color, #fff));
  border-radius: var(--nutui-badge-border-radius, calc(var(--nutui-badge-height, 20px) / 2));
}
.nut-badge-sup {
  /* #ifdef dynamic*/
  display: flex;
  /* #endif */
  /* #ifndef dynamic*/
  display: inline-flex;
  /* #endif */
  text-align: center;
  min-width: var(--nutui-badge-min-width, 8px);
  padding: var(--nutui-badge-padding, 0 4px);
  box-sizing: border-box;
  color: var(--nutui-badge-color, #fff);
  font-size: var(--nutui-badge-font-size, var(--nutui-font-text-xs));
  line-height: scale-px(12px);
  white-space: nowrap;
  font-weight: normal;
  vertical-align: middle;
  background: var(--nutui-badge-background-color, var(--nutui-color-danger));
  z-index: 1;
}
.nut-badge-disabled {
  background: var(--nutui-badge-background-disabled-color, var(--nutui-color-text-disabled));
}
.nut-badge-number {
  font-family: "JDZH-Regular";
}
.nut-badge-one {
  height: var(--nutui-badge-height, 20px);
  width: var(--nutui-badge-height, 20px);
}
.nut-badge-content {
  position: absolute;
  transform: var(--nutui-badge-content-transform, translateY(-50%) translateX(100%));
}
.nut-badge-dot {
  padding: 0;
  border-radius: 50%;
}
.nut-badge-dot::after {
  border: var(--nutui-badge-dot-border, none);
  border-radius: 50%;
}
.nut-badge-dot-normal {
  min-width: var(--nutui-badge-dot-width, 8px);
  width: var(--nutui-badge-dot-width, 8px);
  height: var(--nutui-badge-dot-width, 8px);
}
.nut-badge-dot-small {
  min-width: var(--nutui-badge-dot-small-width, 4px);
  width: var(--nutui-badge-dot-small-width, 4px);
  height: var(--nutui-badge-dot-small-width, 4px);
}
.nut-badge-dot-large {
  min-width: var(--nutui-badge-dot-large-width, 8px);
  width: var(--nutui-badge-dot-large-width, 8px);
  height: var(--nutui-badge-dot-large-width, 8px);
}
.nut-badge-outline {
  background: var(--nutui-color-text-dark);
  color: var(--nutui-badge-outline-color, var(--nutui-color-primary));
}
.nut-badge-outline::after {
  border: var(--nutui-badge-outline-border, 1px solid var(--nutui-color-primary));
}