.nut-badge {
  position: relative;
  /* #ifdef dynamic*/
  display: flex;
  /* #endif */
  /* #ifndef dynamic*/
  display: inline-flex;
  box-sizing: content-box;
  /* #endif */
  vertical-align: middle;
  width: auto;

  &-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background: $badge-background-color;
    padding: $badge-icon-padding;
    text-align: center;
    z-index: $badge-z-index;

    .nut-icon {
      width: $badge-icon-size;
      height: $badge-icon-size;
      font-size: $badge-icon-size;
    }
  }

  &-sup,
  &-icon {
    border-radius: $badge-border-radius;
    &::after {
      content: '';
      position: absolute;
      top: -50%;
      bottom: -50%;
      left: -50%;
      right: -50%;
      transform: scale(0.5);
      border: $badge-border;
      border-radius: $badge-border-radius;
    }
  }

  &-sup {
    /* #ifdef dynamic*/
    display: flex;
    /* #endif */
    /* #ifndef dynamic*/
    display: inline-flex;
    /* #endif */
    text-align: center;
    min-width: $badge-min-width;
    padding: $badge-padding;
    box-sizing: border-box;
    color: $badge-color;
    font-size: $badge-font-size;
    line-height: 12px;
    white-space: nowrap;
    font-weight: normal;
    vertical-align: middle;
    background: $badge-background-color;
    z-index: 1;
  }

  &-disabled {
    background: $badge-background-disabled-color;
  }

  &-number {
    font-family: 'JDZH-Regular';
  }

  &-one {
    height: $badge-height;
    width: $badge-height;
  }

  &-content {
    position: absolute;
    transform: $badge-content-transform;
  }

  &-dot {
    padding: 0;
    border-radius: 50%;
    &::after {
      border: $badge-dot-border;
      border-radius: 50%;
    }
    &-normal {
      min-width: $badge-dot-width;
      width: $badge-dot-width;
      height: $badge-dot-width;
    }
    &-small {
      min-width: $badge-dot-small-width;
      width: $badge-dot-small-width;
      height: $badge-dot-small-width;
    }
    &-large {
      min-width: $badge-dot-large-width;
      width: $badge-dot-large-width;
      height: $badge-dot-large-width;
    }
  }

  &-outline {
    background: $color-primary-text;
    color: $badge-outline-color;
    &::after {
      border: $badge-outline-border;
    }
  }
}
