@import "../../../style/CommonStyle.module.less";
@import "../../../style/utils.module.less";

.chatContainer {
  .size(@w: 406px , @h: 490px);
  .position(@position: absolute, @top: 198px, @left: 78px);
  padding: 25px 20px 20px;
  background-color: #1e1e1e;
  border-radius: 10px;
  box-shadow: 5px 8.7px 15px 0 rgba(6, 0, 1, 0.5);
  border: solid 2px rgba(255, 255, 255, 0.7);
  z-index: 999;
  .flex(@display: flex, @justifyCenter: space-between, @alignCenter: "", @direction: column);

  &.verticalChat {
    .size(@w: 406px , @h: 640px);
  }
  .chatHeader {
    height: 54px;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.35;
    color: @COLOR_WHITE;
    position: relative;
    z-index: 2;
    &::after {
      .size(@w:100%, @h:135px);
      .position(@position: absolute, @top: 54px, @left: 0);
      background-image: linear-gradient(
        to bottom,
        #1e1e1e,
        rgba(30, 30, 30, 0.15)
      );
      content: "";
      z-index: 1;
    }
  }
  .contents {
    height: 326px;
    color: #fff;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    overflow: hidden;

    &.verticalContent {
      height: 527px;
    }

    .username {
      font-size: 24px;
      color: #fff;
      margin-bottom: 19px;
    }
    .content {
      .size(@w: auto ,@h: auto);
      border-radius: 10px;
      background-color: rgba(255, 255, 255, 0.1);
      font-size: 18px;
      line-height: 1.35;
      margin-bottom: 27px;
      padding: 12px;
    }
  }

  .messageBtn {
    .size(@w: 366px , @h: 60px);
    border-radius: 6px;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.35;
    text-align: center;
    padding: 14px 0;

    &:focus {
      background-color: #c70850;
    }
  }
  .chatclose {
    .position(@position: absolute, @top: 20px, @right: 20px);
  }
}
.popupContainer {
  .header {
    .size(@w: 780px , @h: 102px);
    .flex(@display: flex, @justifyCenter: "", @alignCenter: center, @direction: row);
    padding-left: 61px;
    background-color: #e7ebef;
    > h3 {
      font-size: 36px;
      color: #222222;
      font-weight: bold;
    }
  }

  .qrcodeContainer {
    padding: 30px 210px 30px 210px;

    .qrcode {
      .size(@w: 360px , @h: 360px);
      background-color: #ffffff;
      border-radius: 12px;
      box-shadow: 0 0 0 1px #dadada inset;
      margin-bottom: 41px;

      > img {
        .size(@w: 360px , @h: 360px);
      }
    }

    > h3 {
      .size(@w: 319px , @h: 67px);
      display: flex;
      text-align: center;
      word-break: break-word;
      line-height: 1.27;
    }

    .popupBtn {
      .size(@w: 300px , @h: 78px);
      margin-top: 38px;
    }
  }
}
