.cognitive-config-pane {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0 0 76px;

  &.en-pane {
    .combo-row .addon-before {
      width: 120px;
    }
  }

  .pane-scroll-wrap {
    width: 100%;
    height: 100%;
    padding: 0 4px 0 0;

    .pane-scroll-inner {
      padding: 0 16px 0 20px;
    }
  }

  .h-title {
    margin: 24px 0 12px;
    line-height: 20px;
    color: var(--kw-heading-color);
    font-weight: 600;
  }

  .config-row {
    .row-title {
      height: 20px;
      margin: 0 0 8px 0;
      font-size: 14px;
      color: var(--kw-heading-color);
      line-height: 20px;

      &.required::before {
        content: '*';
        display: inline-block;
        margin-right: 4px;
        color: var(--kw-error-color);
        font-size: 14px;
        font-family: SimSun, sans-serif;
        line-height: 1;
      }
    }

    .graph-select {
      width: 100%;

      &.border-error .ant-select-selector {
        border-color: var(--kw-error-color);
      }
    }

    input.border-error {
      border-color: var(--kw-error-color);
    }

    .err-msg {
      min-height: 20px;
      font-size: 12px;
      color: var(--kw-error-color);
      line-height: 20px;
    }

    .deep-select {
      display: flex;
      align-items: center;
      width: 100%;
      height: 34px;

      .change-btn {
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        line-height: 34px;
        border: 1px solid #d9d9d9;
        text-align: center;
        cursor: pointer;
        user-select: none;

        &.disabled {
          background: #f5f5f5;
          cursor: not-allowed;
        }
      }

      .add-btn {
        position: relative;
        border-radius: 0 3px 3px 0;

        &::before {
          content: '';
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          width: 10px;
          height: 1px;
          background: var(--kw-text-color);
        }

        &::after {
          content: '';
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          width: 1px;
          height: 10px;
          background: var(--kw-text-color);
        }
      }

      .reduce-btn {
        position: relative;
        border-radius: 3px 0 0 3px;

        &::before {
          content: '';
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          width: 10px;
          height: 1px;
          background: var(--kw-text-color);
        }
      }

      .deep-text {
        flex: 1;
        height: 34px;
        line-height: 34px;
        border-top: 1px solid #d9d9d9;
        border-bottom: 1px solid #d9d9d9;
        text-align: center;
        cursor: default;
      }
    }

    .ant-slider {
      flex: 1;
      min-width: 0;

      .ant-slider-track {
        background-color: var(--kw-primary-color);
      }

      .ant-slider-handle {
        border-color: var(--kw-primary-color);
      }
    }

    .ant-input-number-handler-wrap {
      opacity: 1;
    }
  }

  .combo-row {
    display: flex;
    align-items: center;
    height: 34px;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    cursor: default;

    .addon-before {
      width: 70px;
      height: 32px;
      line-height: 32px;
      border-right: 1px solid #d9d9d9;
      background: #f5f5f5;
      text-align: center;
    }

    .rule-num {
      flex: 1;
      min-width: 0;
      padding: 0 12px;

      .num-span {
        margin: 0 4px;
        color: var(--kw-primary-color);
      }
    }

    .edit-btn {
      position: relative;
      width: 56px;
      height: 32px;
      line-height: 32px;
      text-align: center;
      cursor: pointer;
      user-select: none;

      &::before {
        content: '';
        display: inline-block;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 20px;
        background: #d9d9d9;
      }

      &.disabled {
        cursor: not-allowed;
        color: #b5b5b5;
      }
    }
  }

  .config-footer-btn {
    position: absolute;
    left: 0;
    bottom: 14px;
    width: 100%;
    padding: 0 20px;

    button {
      height: 40px;
    }

    .reset-btn {
      width: calc((100%) / 4); // 1/4
      margin-right: 12px;
    }

    .save-btn {
      width: calc((100% - 52px) / 2); // 1/2
    }
  }

  .pane-loading {
    display: none;
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    text-align: center;

    &.spanning {
      display: block;
    }

    .l-icon {
      position: absolute;
      top: 30%;
      font-size: 24px;
      color: var(--kw-primary-color);
    }
  }
}
