.data-count-popover-wrap {
  display: flex;
  align-items: center;
  min-height: 24px;
  .count-icon {
    font-size: 16px;
  }
  button.ant-btn {
    margin-left: 4px;
    padding: 1.6px 3px;
    &.ant-popover-open,
    &:active {
      color: #2869f6;
      background: rgba(40, 105, 246, 0.1);
      & > span {
        color: #2869f6;
        &::after {
          color: #2869f6;
        }
      }
    }
    &.ant-btn-icon-only {
      display: none;
      font-size: 16px;
      line-height: 16px;
      &.ant-btn-sm > * {
        font-size: 16px;
      }
    }
  }
  &:hover,
  &:focus {
    button.ant-btn.ant-btn-icon-only {
      display: block;
    }
  }
}

.metadata-tag-popover {
  .ant-popover-inner-content {
    padding: 8px;
  }
  .tag-list-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 330px;
    max-height: 250px;
    overflow-y: auto;

    .data-count-tag {
      margin-right: 0;
      padding: 0 7px;
      color: rgba(0, 0, 0, 0.65);
      font-size: 12px;
      line-height: 20px;
      background: #f0f2f5;
      border: 1px solid #d9d9d9;
      border-radius: 2px;
    }
  }
}
