// @import '../../styles-new/default';
@import '../../theme/components/selection.less';

@selectionprefixCls: im-selection;
@selectionprefixClsdesc: im-selectiondesc;

.@{selectionprefixCls} {
  // min-height: @selection-min-height;
  background-color: @fill-base;
  padding: 12* @hd @selection-padding-horizontal-left 12* @hd ;
  position: relative;

  &-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    // line-height: 20px;
    // max-height: 40* @hd;

    &-left {
      // width: 105* @hd;
      width: 35%;
      // margin-right: 5*@hd;
      display: flex;
      align-items: flex-start;


      &-title {
        // max-width: 90px;
        // font-family: PingFangSC-Regular;
        font-size: @selection-lable-font-size;
        color: @selection-lable-color;
        // line-height: 21* @hd;
        // padding-right: 5* @hd;
        font-weight: 400;
        overflow: hidden;
        text-overflow: ellipsis;
        // white-space: nowrap;
        // max-height: 44* @hd;
        word-break: break-word;
        text-align: left;
        // display: flex;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        // margin-top: 1px;
        // padding-right: 5px;
        align-items: center;

      }

      img {
        margin-top: 4px;
        //width: 15px;
        //height: 15px;
        width: @selection-title-icon-size;
        height: @selection-title-icon-size;
      }

      &-isTitleUp {
        width: 100%;
        min-height: 35px;
        margin: 0;
        padding: 10px 0;
        box-sizing: border-box;
      }
    }

    &-warp {

      display: flex;
      align-items: center;
      flex: 1;

      &-isTitleUp {
        width: 100%;
        padding-bottom: 10px;
      }


    }

    &-input {
      flex: 1;
      pointer-events: none;
      padding-right: 5px;

      input {
        width: 100%;
        // height: 23*@hd;
        border: none;
        // font-family: PingFangSC-Regular;
        font-size: @selection-select-font-size;
        font-weight: 400;
        color: @selection-select-font-color;
        pointer-events: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0;
        box-sizing: content-box;
        vertical-align: baseline;
        margin-top: 0.5px;
      }

      input::-webkit-input-placeholder {
        color: @selection-placeholder-font-color;
        font-size: @selection-placeholder-font-size;
      }

      input:disabled {
        color: @selection-select-color-disable;
        background-color: @fill-base ;
      }

    }

    &-arrow {
      text-align: right;
      // margin-top: 3*@hd;
      // height: 23* @hd;
      display: flex;
      align-items: center;

      &-icon {
        height: @selection-icon-size;
        width: @selection-icon-size;
      }

      &-iconUp {
        height: @selection-icon-size;
        width: @selection-icon-size;
        transform: rotate(-90deg);
      }

      &-iconDown {
        height: @selection-icon-size ;
        width: @selection-icon-size;
        transform: rotate(90deg);
      }

      &-none {
        display: none;
      }
    }


    &-isTitleUp {
      flex-direction: column;
    }
  }

  &-error {
    width: 100%;
    color: @selection-error-color;
    font-size: @selection-error-font-size;
    padding-top: 10px;
    border-top: 1px solid @selection-divider-color;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  &-desc {
    display: flex;
    justify-content: flex-start;
    width: 100%;

    &-title_desc {
      text-overflow: ellipsis;
      overflow: hidden;
      margin-top: 5* @hd;
      // font-family: PingFangSC-Regular;
      font-size: @selection-lable-tertiary-font-size;
      color: @selection-lable-tertiary-color;
      // line-height: 18* @hd;
      letter-spacing: 0;
      text-align: left;
      font-weight: 400;
      overflow: hidden;
      text-overflow: ellipsis;
      // white-space: nowrap;
      word-break: break-word;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      padding-right: 15* @hd;
    }

    &-title_input_desc {
      margin-top: 4* @hd;
      //width: 105* @hd;
      width: 35%;
      // margin-right: 5px;
      // padding-right: 5* @hd;
      // font-family: PingFangSC-Regular;
      font-size: @selection-tertiary-font-size;
      color: @selection-tertiary-color;
      // line-height: 18* @hd;
      letter-spacing: 0;
      text-align: left;
      font-weight: 400;
      overflow: hidden;
      text-overflow: ellipsis;
      // white-space: nowrap;
      word-break: break-word;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      box-sizing: border-box;
    }

    &-inputdesc {
      margin-top: 4* @hd;
      // font-family: PingFangSC-Regular;
      font-size: @font-size-caption-sm;
      color: @color-text-secondary;
      // line-height: 18* @hd;
      letter-spacing: 0;
      text-align: left;
      font-weight: 400;
      margin-left: 35%;
      overflow: hidden;
      text-overflow: ellipsis;
      // white-space: nowrap;
      word-break: break-word;
      padding-right: 36* @hd;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    &-input_title_desc {
      margin-top: 4* @hd;
      // font-family: PingFangSC-Regular;
      font-size: @selection-lable-tertiary-font-size;
      color: @selection-lable-tertiary-color;
      flex: 1;
      letter-spacing: 0;
      text-align: left;
      font-weight: 400;
      overflow: hidden;
      text-overflow: ellipsis;
      word-break: break-word;
      padding-right: 15* @hd;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    &-error {
      margin-left: 35%;
      padding-top: 5px;
      color: @selection-error-color;
      font-size: @selection-error-font-size;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }
  }

  &-bottomLine {
    height: 1*@hd;
    width: 100%;
    background-color: @selection-divider-color;
    position: relative;
    top: 12px;
  }
}
