.account-wrap {
  padding: 6px 8px 6px 8px;
  background: #F5F7FA;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-block;

  &.error {
    border: 1px solid #FA4441;

    &.error-active {
      background: #FEECEC;

      &_text {
        color: #FA4441;
      }
    }
  }

  &:hover {
    &.error .close-icon {
      opacity: 1;
      visibility: visible;
    }
  }

  .close-icon {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
  }

  &.active {
    border: 1px solid #004FD3;
    background: #E9F1FF;
  }

  &_icon {
    width: 24px;
    height: 24px;
    border-radius: 60%;
  }

  &_text {
    font-weight: 500;
    font-size: 14px;
    color: #142A51;
    line-height: 20px;
    text-align: left;
    font-style: normal;
    width: 150px;
    margin-right: 50px - 16px;
    overflow: hidden;
    transition: all 0.3s;
    // 单行省略
    text-overflow: ellipsis;
    white-space: nowrap;
    &.active {
      color: #004FD3;
    }
  }
}

.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
