/*--------------------
Mixins
--------------------*/

@mixin center {
    position: relative;
  /*  top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);*/
  }
  
  @mixin ball {
    @include center;
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
  /*  background: rgba(255, 255, 255, .5);*/
    background:#888;
    z-index: 2;
    margin-top: 4px;
    animation: ball .45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
  }
  
  
  /*--------------------
  Body
  --------------------*/
  
  .bg {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    /* background: url('https://images.unsplash.com/photo-1451186859696-371d9477be93?crop=entropy&fit=crop&fm=jpg&h=975&ixjsv=2.1.0&ixlib=rb-0.3.5&q=80&w=1925') no-repeat 0 0;*/
    filter: blur(80px);
    transform: scale(1.2);
   background: #fff;
  }
  
  
  /*--------------------
  Chat
  --------------------*/
  
  .chat {
    @include center;
    width: 100%;
    height: calc(100% - 15px);
    max-height: 500px;
    z-index: 10;
    overflow: hidden;
    /*box-shadow: 0 5px 30px rgba(0, 0, 0, .2);*/
    /* background: rgba(0, 0, 0, .5);*/
    background: transparent;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
  }
  
  
  /*--------------------
  Chat Title
  --------------------*/
  
  .chat-title {
    flex: 0 1 45px;
    position: relative;
    z-index: 2;
    width:100%;
    border-bottom:1px solid #ccc;
    color: #777;
    padding-top:50px;
    padding-bottom:5px;
    background-color:#fff;
    text-align: center;
  
    h1,
    h2 {
      font-weight: normal;
      font-size: 14px;
      margin: 0;
      padding: 8px;
   
    }
    h2 {
      /* color: rgba(255, 255, 255, .8);*/
      font-size: 11px;
      letter-spacing: 1px;
    }
    .avatar {
      position: absolute;
      z-index: 1;
      top: 8px;
      left: 9px;
      -webkit-border-radius: 30px;
      -moz-border-radius: 30px;
      border-radius: 30px;
      width: 60px;
      height: 60px;
      overflow: hidden;
      margin: 0;
      padding: 0;
      border: 1px solid #fff;
      img {
        width: 100%;
        height: auto;
      }
    }
  }
  
  /*--------------------
  Custom Srollbar
  --------------------*/
  
  #chat-container{
    height:800px;
    background:#eff3f7;
    margin:0 auto;
    font-size:0;
    border-radius:5px;
    overflow:hidden;
  }
  #chat-container .aside{
    height:800px;
    background-color:#3b3e49;
    display:inline-block;
    font-size:15px;
    vertical-align:top;
  }
  #chat-container .main{
    height:800px;
    display:inline-block;
    font-size:15px;
    vertical-align:top;
  }
  #chat-container .aside img {
    width: 50px;
    height: 50px;
  }
  #chat-container .aside header{
    padding:30px 20px;
  }
  #chat-container .aside input{
    width:100%;
    height:50px;
    line-height:50px;
    padding:0 50px 0 20px;
    background-color:#5e616a;
    border:none;
    border-radius:3px;
    color:#fff;
    background-image:url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/1940306/ico_search.png);
    background-repeat:no-repeat;
    background-position:170px;
    background-size:40px;
  }
  #chat-container .aside input::placeholder{
    color:#fff;
  }
  #chat-container .aside .date{
    font-size: 12px;
    color: #b2b3b8;
    font-weight: normal;
  }

  #chat-container .aside ul{
    padding-left:0;
    margin:0;
    list-style-type:none;
    overflow-y:scroll;
    height:690px;
  }
  #chat-container .aside li{
    padding: 5px;
    cursor: pointer;
  }
  #chat-container .aside li:hover{
    background-color:#5e616a;
    border-radius: 10px;
  }
  #chat-container .aside li img{
    border-radius:50%;
    margin-right:8px;
  }
  #chat-container .aside li div{
    display:inline-block;
    vertical-align:top;
    margin-top:12px;
  }
  #chat-container .aside li h2{
    font-size:14px;
    color:#fff;
    font-weight:normal;
    margin-bottom:5px;
  }
  #chat-container .aside li span{
    font-size:12px;
    color:#b2b3b8;
    font-weight:normal;
  }
  #chat-container .aside li .position{
    font-size:12px;
    color: #b2b3b8;
  }
  #chat-container .status{
    width:8px;
    height:8px;
    border-radius:50%;
    display:inline-block;
    margin-right:7px;
  }
  #chat-container .green{
    background-color:#58b666;
  }
  #chat-container .orange{
    background-color:#ff725d;
  }
  #chat-container .blue{
    background-color:#6fbced;
    margin-right:0;
    margin-left:7px;
  }
  
  #chat-container .main header{
    height:110px;
    padding:30px 20px 30px 40px;
  }
  #chat-container .main header > *{
    display:inline-block;
    vertical-align:top;
  }
  #chat-container .main header img:first-child{
    border-radius:50%;
  }
  #chat-container .main header h2 img {
    width:50px;
    height:50px;
    margin-top:8px;
  }
  #chat-container .main header img {
    width: 60px;
    height: 60px;
  }
  #chat-container .main header div{
    margin-left:10px;
  }
  #chat-container .main header h2{
    font-size:16px;
    margin-bottom:5px;
  }
  #chat-container .main header h2 .position{
    font-size:14px;
    color: #777;
  }
  #chat-container .main header span{
    font-size:12px;
    font-weight:normal;
    color:#7e818a;
  }
  
  #chat-container .main .footer{
    height:155px;
    padding:20px 30px 10px 20px;
  }
  #chat-container .main .footer textarea{
    resize:none;
    border:none;
    display:block;
    width:100%;
    height:80px;
    border-radius:3px;
    padding:20px;
    font-size:18px;
    margin-bottom:13px;
  }
  #chat-container .main .footer textarea::placeholder{
    color:#ddd;
  }
  #chat-container .main .footer img{
    height:30px;
    cursor:pointer;
  }
  #chat-container .main .footer a{
    text-decoration:none;
    text-transform:uppercase;
    font-weight:bold;
    color:#6fbced;
    vertical-align:top;
    margin-left: 92%;
    margin-top:5px;
    display:inline-block;
  }

  .chats, .chats-box {
    padding-left:0;
    margin:0;
    list-style-type:none;
    overflow-y:scroll;
    min-height:222px;
    border-top:2px solid #fff;
    border-bottom:2px solid #fff;
  }
  .chats li, .chats-box li {
    position: relative;
    padding:10px 30px;
  }
  .chats h2, .chats-box h2 {
    display:inline-block;
    font-size:16px;
    font-weight:normal;
  }
  .chats span, .chats-box span {
    display:inline-block;
    font-size:12px;
    font-weight:normal;
  }
  .chats span, .chats-box span {
    color:#bbb;
  }
  .chats .entete, .chats-box .entete {
    margin-bottom:5px;
  }

  .chats .entete .date{
    display: inline-block;
    font-size: 12px;
    color: #b2b3b8;
    font-weight: normal;
  }

  .chats .message, .chats-box .message {
    padding:10px;
    color:#fff;
    line-height:25px;
    display:inline-block;
    text-align:left;
    border-radius:20px;
  }
  .chats .me, .chats-box .me{
    text-align:right;
  }
  .chats .you .message, .chats-box .you .message {
    background-color:#58b666;
  }
  .chats .me .message, .chats-box .me .message {
    background-color:#6fbced;
  }
  .messenger .message-box {
    width: 300px;
  }

  .messenger {  
      /* opacity: 1; */
      -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
      height: calc(100% - 60px)!important;
    max-height:460px!important;
    min-height:220px!important;
      width: 320px;
    /*  transform: translateY(0);
      -webkit-transform: translateY(0);
      -moz-transform: translateY(0);
    */
      background: rgba(255, 255, 255, 0.9);
        position: fixed;
    right: 20px;
      bottom: 20px;
      margin: auto;
      z-index: 10;
      box-shadow: 2px 10px 40px rgba(22,20,19,0.4);
    /*  transform: translateX(300px);*/
      -webkit-transition: 0.3s all ease-out 0.1s, transform 0.2s ease-in;
      -moz-transition: 0.3s all ease-out 0.1s, transform 0.2s ease-in;
    
  }
  
  .messenger div.agent-face {
    position: absolute;
    left: 0;
    top: -50px;
    right: 0;
    margin: auto;
    width: 101px;
    height: 50px;
    background: transparent;
    z-index:12;
  }
  
  .messenger div {
      font-size: 14px;
      color:#232323;
  }
  
  
  .close {
    display: block;
    width: 100px;
    height: 100px;
    margin: 1em auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-border-radius: 99em;
    -moz-border-radius: 99em;
    border-radius: 99em; opacity: 0.5;
    /*border: 1px solid #ccc;
    color:#ccc;*/
  /* -webkit-box-shadow: 0px -1px 2px 0px rgba(0, 0, 0, 0.5);
  -moz-box-shadow:    0px -1px 2px 0px rgba(0, 0, 0, 0.5);
  box-shadow:         0px -1px 2px 0px rgba(0, 0, 0, 0.5);*/
  }
  .close:hover {/*
  -webkit-box-shadow:  0 1px 1px rgba(0,0,0,0.3);
  -moz-box-shadow:  0 1px 1px rgba(0,0,0,0.3);
  box-shadow: 0 1px 1px rgba(0,0,0,0.3);*/
    opacity:0.9;
  }
  
  .circle {
    display: block;
    width: 80px;
    height: 80px;
    margin: 1em auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-border-radius: 99em;
    -moz-border-radius: 99em;
    border-radius: 99em;
    border: 2px solid #fff; /*#4A90E2;*/
   /* -webkit-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
    -moz-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
  box-shadow: 0px 0px 10px rgba(0,0,0,.8);*/
  
  }
  
  .contact-icon .circle:hover{
   box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    transition:0.2s all ease-out 0.2s;
    -webkit-transition:0.2s all ease-out 0.2s;
    -moz-transition:0.2s all ease-out 0.2s;
  }
  
  
  .arrow_box:after {
      border-color: rgba(255, 255, 255, 0);
      border-left-color: #fff;
      border-width: 5px;
      margin-top: -5px;
  }
  .arrow_box {
      position: relative;
      background: #fff;
      border: 1px solid #4A90E2;
  }
  .arrow_box:after, .arrow_box:before {
      left: 100%;
      top: 50%;
      border: solid transparent;
      content: " ";
      height: 0;
      width: 0;
      position: absolute;
      pointer-events: none;
  }
  
  .messenger .menu .items span {
      color: #111;
    z-index:12;
      font-size: 14px;
      text-align: center;
      position: absolute;
      right: 0;
    top:40px;
      height: 80px;
      line-height: 40px;
      background: #fff;
      border-left:1px solid #ccc; 
    border-bottom:1px solid #ccc;
    border-right:1px solid #ccc;
      width: 48px;
      opacity: 0;
     border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
      transition: .3s all ease-in-out;
      -webkit-transition: .3s all ease-in-out;
      -moz-transition: .3s all ease-in-out;
  }
  
  .messenger .menu .button {
      font-size: 30px;
      
      z-index:12;
      text-align: right;
      color: #333;
      content: "...";
      display: block;
      width: 48px;
      line-height: 25px;
      height: 40px;
      border-top-right-radius: 20px;
  /*  border-top-left-radius:20px;*/
      position: absolute;
      right: 0;
    padding-right:10px;
    cursor: pointer;
    transition: .3s all ease-in-out;
    -webkit-transition: .3s all ease-in-out;
    -moz-transition: .3s all ease-in-out;
  }
  .messenger .menu .button.active {background: #ccc;}
  /*
  .menu .button:hover .menu .items span {
    display: block;
    left: -2px;
    opacity: 1;
  }*/
  
  .messenger .menu .items span.active {
    opacity:1;
    /*border-radius:10px;
    height: 180px;
    width: 400px;
    transform:translateY(0);
    -webkit-transform:translateY(0);
    -moz-transform:translateY(0);*/
  }
  
  .messenger .menu .items a {color:#111; text-decoration:none;}
  .messenger .menu .items a:hover{color:#777}
  
  emoji-picker {
    width: 100%;
    height: 300px;
  }

  .chats .message {
    position: relative;
  }

  .chats li .trash {
    position: absolute;
    right: 16px;
    bottom: 40px;
    cursor: pointer;
  }

  .chats .likebar {
    display: none;
    position: absolute;
    margin-top: -12px; 
    float: left;
    margin-left: 30px;
  }

  .chats .likebar i {
    display: inline-block;
    width: fit-content;
    block-size: fit-content;
    background: #FFF;
    border-radius: 15px;
  }

  li h2 .trash {
    float: right;
    cursor: pointer;
  }

  .chats .reactions {
    width: fit-content;
    block-size: fit-content;
    padding: 8px;
    background: #FFF;
    border-radius: 15px;
    margin-top: 8px;
  }