@use "@tencentcloud/uikit-base-component-react/dist/styles/theme/util" as *;

.badge-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;

  @include theme() {
    box-shadow:
      0 12px 26px 0 get(shadow-color),
      0 8px 12px 0 get(shadow-color);
    background: get(dropdown-color-default);

    &:hover {
      // background: #f5f5f5;
      background: get(dropdown-color-hover);
    }

    &:active {
      background: get(dropdown-color-active);
      box-shadow: none;
    }
  }

  &__icon {
    fill: #2b64f1;

    @include theme() {
      color: get(text-color-link);
    }
  }
}

.badge-content {
  z-index: auto;
  position: absolute;
  top: 0;
  left: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  text-align: center;
  border-radius: 16px;
  transform: translate(-20%, -20%);
  display: flex;
  align-items: center;
  justify-content: center;

  @include theme() {
    background: get(text-color-link);
    color: get(bg-color-topbar);
  }
}

.unread-notification-badge--invisible {
  display: none !important;
}
