@import '~@zgfe/business-lib/es/assets/styles/inner.less';
.cdp-link-list {
  display: flex;
  flex-direction: column;
  width: calc(100% - @padding-md);
  padding: @padding-md;
  background: #fff;
  border-radius: @border-radius-normal;
  .biz-select-handle {
    flex: none;
  }
  &-empty {
    .__select-nodata();
    margin-top: 16px;
  }
  &-panel {
    display: flex;
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
    max-height: 128px;
    margin-top: @padding-md;
    overflow-y: auto;
    box-shadow: none;
    &-white {
      width: 100%;
      height: 36px;
    }
    &-bg {
      width: 100%;
      height: 36px;
      margin-top: -36px;
      background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 1) 100%
      );
      // pointer-events: none;
    }
  }
  &-del {
    display: inline-block;
    flex: none;
    margin-left: 5px;
    visibility: hidden;
    cursor: pointer;
  }
  &-item {
    .__select-option();
    display: flex;
    flex-direction: row;
    min-width: 140px;
    max-width: 270px;
    // width: 280px;
    height: 32px;
    margin: 16px 16px 0 0;
    padding: 0 16px;
    line-height: 32px;
    background-color: #fafafb;
    border-radius: 16px;
    &:hover {
      .cdp-link-list-del {
        color: #165dff;
        visibility: visible;
      }
    }
    &.active {
      .cdp-link-list-del {
        color: @white;
        visibility: visible;
      }
    }
  }
  &-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  &-logo {
    display: inline-block;
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 8px;
    margin-right: @margin-xs;
    object-fit: cover;
    border-radius: 50%;
  }
}
.cdp-link-tip {
  margin-bottom: @margin-md;
  color: @text-color;
  font-weight: 500;
  font-size: @font-size-base;
  &-scope {
    color: @text-color-secondary;
    font-size: @font-size-base;
  }
  &-scopev {
    display: inline-block;
    width: 392px;
    max-height: 260px;
    margin-left: @margin-sm;
    padding: @padding-xs;
    overflow-y: auto;
    line-height: 20px;
    vertical-align: middle;
    background: @background-color-base;
    border-radius: @border-radius-small;
    &.fail {
      color: @error-color;
    }
  }
  &-loading {
    width: 392px !important;
    margin-left: @margin-sm;
  }
  &-warn {
    margin: @margin-lg 0;
    color: @warning-color;
    span {
      margin-right: @margin-xs;
    }
  }
}
