@import '../menuTheme/menuColor.scss';

.setting {
  display: flex;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 1;
  overflow: hidden;
  font-family: "-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif";
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;

  .left {
    width: 200px;
    max-width: 200px;
    background: $customLeftBgColor;
    position: relative;

    .title-ctn {
      padding-top: 30px;
      padding-bottom: 33px;
      padding-left: 24px;
      
      .title {
        font-size: 16px;
        color: $primaryColor;
        letter-spacing: 0;
        line-height: 16px;
        border-left: 7px solid $primaryColor;
        padding: 1px 0px 1px 12px;
      }
      .info {
        line-height: 1.8;
        font-size: 12px;
        color: $customTipColor;
        opacity: 0.8;
        padding-top: 17px;
      }
    }

    .left-list {
      height: calc(100vh - 200px);
      overflow: hidden;
      overflow-y: auto;
    }

    .product-ctn {
      cursor: move;
      background: $menuItemBgColor;
      font-size: 13px;
      line-height: 46px;
      padding-left: 24px;
      border-bottom: 2px solid $customLeftBgColor;

      .product {
        padding-left: 16px;
        color: $menuTextColor;
      }
    }

    .left-footer {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
    }

    .selected-info {
      opacity: 0.8;
      font-size: 12px;
      color: $menuTextColor;
      padding-left: 16px;
      padding-bottom: 16px;

      span {
        color: $primaryColor;
      }
    }

    .btn-ctn {
      padding: 12px;
      background: $customLeftBgColor;
      text-align: center;

      a {
        display: inline-block;
        line-height: 36px;
        padding: 0 27px;
        border-radius: 2px;
        font-size: 12px;
        text-align: center;
        letter-spacing: 0;
        cursor: pointer;
        &:link, &:visited, &:active, &:hover {
          text-decoration: none;
        }
        &:first-child {
          color: #FFFFFF;
          background: $primaryColor;
          margin-right: 12px;
        }

        &:last-child {
          color: $customCancelColor;
          background: $customCancelBgColor;
        }
      }
    }

    // 从右拖到左的样式
    .category-ctn {
      display: inline-block;
      width: 100%;
      width: 200px;
      border-bottom: 2px solid $customLeftBgColor;
      line-height: 46px;
      color: $menuTextColor;;
      padding-left: 24px;
      font-size: 0px;
      background: $menuItemBgColor;
      cursor: move;
      .name {
        padding-left: 16px;
        font-size: 13px;
      }
    } 
  }

  .right {
    padding: 20px 0 0 24px;
    background: $customRightBgColor;
    flex: 1;
    overflow-y: auto;

    .category-item {
      border-bottom: 2px solid rgba(130, 125, 124, .1);
      line-height: 46px;
      font-size: 13px;
      letter-spacing: 0;
      display: flex;
      padding-top: 12px;

      .category-name {
        display: inline-block;
        vertical-align: middle;
        width: 120px;
        min-width: 120px;
        height: 59px;
        padding-right: 12px;
        min-height: 59px;
        color: $menuSettingColor;
        padding-left: 12px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
      }

      .en-category-name {
        width: 160px;
        min-width: 160px;
      }

      .category-ctn {
        display: inline-block;
        width: 200px;
        color: $menuTextColor;
        padding-left: 24px;
        font-size: 13px;
        background: $menuItemBgColor;
        margin: 0px 12px 12px 0px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        cursor: move;
        line-height: 44px;
        height: 44px;
        .name {
          padding-left: 16px;
        }
      }

      .eixsted-item {
        background: $customRightBgColor;
        color: rgba(201, 201, 201, .4); //#c9c9c9
        cursor: auto;
        .icon {
          color: rgba(201, 201, 201, .4); //#c9c9c9
        }
      }
    }

    .ctn-item {
      display: flex;
      flex-wrap: wrap;
    }
  }
}


.moving {
  border: 2px dashed #108CEE;
}

.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  color: $menuTextColor;
}

.existed-icon {
  color: rgba(204, 209, 216, .4);
}
