.chat-user{
  width:300px;
  background: white;
  display: inline-block;
  margin: 15px;
  text-align: center;
  height: 180px;
  float: left;
  padding: 20px;
  box-shadow: 0px 2px 5px 1px rgba(69, 65, 78, 0.1);
  img{
    width:100px;
    height:100px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 20px;
    object-fit:cover;
  }
}

.chat-boxes{
  position: fixed;
  bottom: 50px;
  right: 20px;
  .chat-box{
    background: white;
    width: 300px;
    min-height: 400px;
    box-shadow: 0px 2px 5px 1px rgba(69, 65, 78, 0.1);
    float: right;
    position: relative;
    margin-right: 15px;

    .header{
      height: 30px;
      background: rgba(0,0,0,0.05);
      position: relative;
      padding: 4px 10px;
      i{
        position: absolute;
        right: 10px;
        top: 5px;
      }
    }
    .content{
      padding-top: 5px;
      overflow: scroll;
      height: 320px;

      .message{
        &>div{
          margin: 5px 10px ;
          width:85%;
          border-radius: 8px;
          border: 1px solid #f3f3f3;
          padding: 5px;
          float: right;
          img{
            border-radius: 50%;
            width: 36px;
            height: 36px;
            object-fit:cover;
          }
          .time{
            float: right;
          }
          .body{
            padding: 10px 5px;
          }
          &.mine{
            background: #f3f3f3;
            float: left;
          }
        }
      }
    }
    .footer{

      

      height: 30px;
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      textarea{
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 50px;
        border: 1px solid #e6e6e6;
        padding: 0 5px;
      }

    }
  }
}




.chat-body{
  
  ::-webkit-scrollbar {
      width: 4px;
      height: 0;
    }

    ::-webkit-scrollbar-track {
      // -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    }

    ::-webkit-scrollbar-thumb {
      background-color: darkgrey;
      outline: 1px solid slategrey;
      border-radius: 10px;
    }


  .note-editor.note-frame{
    border: none;
  }
  .note-editor.note-frame .note-editing-area .note-editable{
    border-radius: 8px;
    font-size: 13px;
    line-height: 15px;
    max-height: 480px;
  }
  .note-statusbar{
    display: none;
  }
  


  .chat{
    position: relative;
    overflow: hidden;
    min-height: 500px;
    height: 100vh;


    flex-direction: column;
    display: flex;
    flex: 1  auto;

    .content{
      padding: 10px;
      flex: 1  auto;
      overflow: scroll;
    }
    .footer{
      background: #f3f3f3;
      padding: 10px 10px 2px 10px;
      .box-text{
        position: relative;
        bottom: 1px solid red;
      }
      textarea{
        // width: 100%;
        // min-height: 32px;
        // max-height: 300px;
        // height: 30px;
        // border: 1px solid #e8e8e8;
        // padding: 5px 40px 5px 10px;
        // border-radius: 5px;
        // resize:none;
        // font-size: 13px;
        // overflow: auto;
        // box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);

        border-radius: 8px;
        font-size: 13px;
        line-height: 15px;
        max-height: 480px;

      }
      button{
        position: absolute;
        right: 5px;
        bottom: 12px;
        border: none;
        line-height: 25px;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        text-align: center;
        background: white;
        font-size: 13px;
        padding: 0;
      }

      .join-file{
        cursor: pointer;
        background: white;
        font-size: 10px;
        border-radius: 4px;
        padding: 0px 10px 0px 5px;
        line-height: 20px;
        border: 1px solid #f2f2f2;
        &:hover{
          color: black;
        }
        i{
          margin-right: 4px;
        }
        input{
          display: none;
        }
      }
      .files{
        display: block;
        .file{
          height: 46px;
          width: 46px;
          display: inline-block;
          border: 1px solid #ccc;
          border-radius: 5px;
          margin-right: 10px;
          background-size: cover;
          position: relative;
          
          // background: url('/images/pdf.png'); 

          &:hover{
            .send{
              background: black;
            }
          }
          .delete{
            position: absolute;
            top: -5px;
            right: -5px;
            font-size: 9px;
            background: rgba(0,0,0.2);
            color: white;
            text-align: center;
            border-radius: 50%;
            width: 12px;
            height: 12px;
            line-height: 12px;
            cursor: pointer;
          }
          .send{
            position: absolute;
            top: 50%;
            left: 50%;
            transform:translateX(-50%) translateY(-50%);
            background: rgba(0,0,0,0.2);
            color: white;
            text-align: center;
            border-radius: 50%;
            width: 25px;
            height: 25px;
            line-height: 25px;
            font-size: 13px;
            cursor: pointer;
          }
        }
      }
    }

    .message{
      position: relative;
      .time{
        font-size: 8px;

        display: block;
        float: right;
        clear: both;
        padding-right: 10px; 
        padding-top: 4px;
      }
      &>div{
          margin: 10px 15px 0px 0px ;
          border-radius: 8px;
          background: rgb(61, 66, 82);
          color: white;
          position: relative;
          left: 10px;
          right: 2px;
          display: inline-block;
  
          float: right;
          clear: both;
          word-break: break-word;

          img{
            border-radius: 50%;
            width: 36px;
            height: 36px;
            position: absolute;
            left: -10px;
            top: -10px;
            object-fit:cover;
            border:1px solid rgb(61, 66, 82);
            background: white;
            display: none;
          }
          .body{
            padding: 10px ;
            font-size: 12px;

            .delete{
              position: absolute;
              right: -5px;
              top: -7px;
              width: 15px;
              height: 15px;
              background: red;
              color: white;
              border-radius: 50%;
              text-align: center;
              line-height: 15px;
              font-size: 10px;
              cursor: pointer;
              // display: none;
            }
          }

          
          &.mine{
              background: #efefef;
              color: rgb(61, 66, 82);
              right: 40px;
              left: 0px;

              float: left;

              img{
                display: none;
              }
              &+.time{
                float: left;
                padding-right: 0px;
              }
          }

      }
      // &:last-child{
      //   .body{
      //     .delete{
      //       display: block;
      //     }
      //   }
      // }
      .bot{
        background: #0e6b8a !important;
        margin-left: 0;
        .user{
          left: 5px;
          right: auto;
        }
        .date{
          right: 10px;
          left: auto;
        }
      }
    }
     
  }
}


.col-chat{
  iframe{
    margin-bottom: -10px;
  }
}







#chat{
    width: 400px;
    iframe{
      min-height: 500px;
    }
    .commentaires{
      width:100% ;
    }
  }



[name=form-chat]{
  padding: 0;
  textarea{
    margin: 0 !important;

  }
}