.ai-chat-drawer {
  .kcmp-ant-drawer-content-wrapper {
    top: 48px;
    // min-height: 1280px;
    height: calc(100vh - 48px);
    background: rgba(240, 246, 252, 0.98);
    box-shadow: -8px 0px 16px 0px rgba(64, 85, 128, 0.2);
    border: 1px solid #ffffff;
    .kcmp-ant-drawer-content {
      background: transparent;
    }
    .kcmp-ant-drawer-body {
      height: 100%;
      .chat-header {
        display: flex;
        flex: 1;
        padding: 0 8px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 9px;

        .chat-header-title {
          display: flex;
          flex: 1;
          flex-direction: row;
          justify-content: flex-start;
          align-items: center;
          & > img {
            width: 40px;
            height: 30px;
          }
          & > span {
            font-weight: 500;
            font-size: 16px;
            color: #17181a;
            padding-left: 8px;
          }
        }
        .closeBtn {
          cursor: pointer;
          display: flex;
          justify-content: center;
          align-items: center;
          width: 24px;
          height: 24px;
          border-radius: 4px;
          &:hover {
            background: #e6eaf2;
          }
        }
      }
      .chat-content-wrap {
        display: flex;
        height: calc(100% - 40px);
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
        .chat-content {
          display: flex;
          width: 544px;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          height: 100%;
          background: #ffffff;
          border-radius: 8px;
          & > img {
            width: 480px;
            height: 200px;
          }

          .startInput {
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: flex-end;
            width: 480px;
            min-height: 56px;
            padding: 12px;
            margin-top: 16px;
            margin-bottom: 16px;
            background: #fcfeff;
            border-radius: 16px;
            border: 1px solid #dae6f2;

            .chat-sendBtn {
              display: flex;
              cursor: pointer;
              justify-content: center;
              align-items: center;
              width: 32px;
              height: 32px;
              margin-left: 22px;
              background: #cfd6e6;
              border-radius: 8px;
              // transition: all 0.5s ease;
              img {
                width: 24px;
                height: 24px;
              }

              &.hasText {
                background: #3377ff;
                &:hover {
                  background: #2e6be6;
                }
              }

              &.isProcessing {
                background: #3377ff;
                border-radius: 8px;
                & > img {
                  display: none;
                }
                &::after {
                  display: block;
                  content: '';
                  width: 12px;
                  height: 12px;
                  background: #ffffff;
                  border-radius: 3px;
                }

                &:hover {
                  background: #2e6be6;
                }
              }
            }

            &.large {
              width: 512px;
            }
          }
        }
        .chat-detail {
          
          width:calc(100% - 552px);
          height: 100%;
          background: #ffffff;
          border-radius: 8px;
          margin-left: 8px;
          padding: 16px;
          .detail-view {
            width: 100%;
            height: 100%;
            .detail-header {
              display: flex;
              width: 100%;
              height: 32px;
              flex-direction: row;
              justify-content: space-between;
              align-items: center;
              margin-bottom: 16px;
              .goback,
              .favorite {
                cursor: pointer;
                text-align: center;
                width: 64px;
                height: 32px;
                line-height: 32px;
                background: #ffffff;
                border-radius: 4px;
                font-weight: 400;
                font-size: 14px;
                color: #17181a;

                &:hover {
                  background: #e6eaf2;
                }
              }
            }
            .detail-body {
              // display: flex;
              // flex: 1;
              // flex-direction: column;
              width: 100%;
              height: calc(100% - 32px);
              padding: 8px;
              padding-left: 18px;
              overflow-y: scroll;
              overflow-x: scroll;
              .charts {
                width: 100%;
                // min-width: 640px;
              }
            }
          }
        }
      }
    }
  }

  &.hasDetail {
    min-width: 1280px;
  }
}

.ai-chat-drawer-button {
  position: fixed;
  bottom: 20px;
  cursor: pointer;
  right: 20px;
  width: 50px;
  height: 50px;
  z-index: 1000;
  box-shadow: 0px 10px 20px 0px rgba(77, 102, 153, 0.3);
  border-radius: 12px;
  transition: all 0.5s ease;
  & > img {
    width: 100%;
    height: 100%;
  }

  &:hover {
    box-shadow: 0px 10px 20px 0px rgba(107, 122, 153, 0.6);
  }
}
