

@import "../../scss/theme/config";

.cd-acd-list{
  font-family: MicrosoftYaHei;
  font-size: 12px;
  color: #666666;

  dl{
    line-height: 16px;
    // border-bottom: 1px solid #f1f1f1;
  }

  dt{
    position: relative;
    padding: 10px 0 9px;
    padding-left: 18px;
    cursor: pointer;
  }
  dt:before{
    content: "+";
    position: absolute;
    top: 11px;
    left: 0;
    width: 11px;
    height: 11px;
    text-align: center;
    vertical-align: middle;
    margin-right: 5px;
    color: #a3a3a3;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    line-height: 10px;
    box-sizing: content-box;
    font-size: 12px;
    background: white;
    z-index: 1;
  }

  .acd-open dt:before{
    content: '-';
  }

  .acd-open dt:after{
    content: '';
    position: absolute;
    left: 6px;
    top: 14px;
    height: 7px;
    border-left: 1px solid #d9d9d9;
  }

  dd{
    display: none;
    position: relative;
    margin: 0 0;
    padding: 0 20px 8px 25px;
    a{
      vertical-align: top;
    }
  }

  .acd-open dd{
    display: block;
  }

  dd:nth-last-child(1){
    margin-bottom: -5px;
  }

  dd:before{
    content: '';
    position: absolute;
    left: 0;
    top: -11px;
    width: 6px;
    height: 32px;
    border-right: 1px solid #d9d9d9;
  }

  dd:after{
    content: '';
    position: absolute;
    left: 6px;
    top: 7px;
    width: 15px;
    border-top: 1px solid #d9d9d9;
  }

  .acd-checked, .acd-checked a, dd:hover, dd a:hover{
    color: #E2231A;
  }

  dd:hover{
    cursor: pointer;
  }

  .acd-checked:hover, .acd-checked a:hover{
    cursor: default;
  }

  .red-hook{
    display: none;
    position: absolute;
    top: 50%;
    right: 10px;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 50%;
    background-color: #E2231A;
  }

  .acd-checked .red-hook{
    display: block;
  }

  .red-hook::before{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 3px;
    margin-left: -4px;
    margin-top: -3px;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: rotate(-40deg);
    -webkit-transform: rotate(-40deg);
  }

  .acd-ellipsis{
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
}

