/*  CSS CHAT */
.chat {
  display: none;
  position: fixed;
  top: 60px;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100%;
  z-index: 9;
  transition: all 0.3s;
  padding: 0;
  box-shadow: -10px 0px 20px rgba(1, 41, 112, 0.1);
  background-color:#f1f1f1;
  font-size: 0.9rem;
}
@media (min-width: 1299px) {
  .chat {
    width: 32%;
  }
}

.chat .title-chat { 
  background-color: var(--primary-color);
  text-align: center; color: white;
  height: 50px; line-height: 50px;
  box-shadow: 10px 10px 20px rgba(255, 255, 255, 1);
}
.open-chat { cursor: pointer;}
.chat button.open-chat { 
  position: absolute; left: 6px; top:0;
  background:transparent; color:white;
}

.chat .filter { 
  position: absolute; right: 8px; top: 0;;
  color: white; font-size: 1.2em;
  cursor: pointer;
}
.chat .filter .dropdown-item{
  padding:12px 8px; line-height: 1rem;
}
.chat .box {   
  height: calc(100% - 150px);
}
.chat .messages {
  width: 100%; 
  padding:0 15px;
  max-height: 100%;
  overflow-y:scroll;
}
.chat .messages .message-item { 
  position: relative; width:100%;
  margin-bottom:15px;}

.chat .messages .message-item .message-content{
  display: flex;
  max-width: 91%;
}
.chat .img-chat img{
  margin-top: 3px; 
  width: 30px; margin-right: 18px; border-radius:50%;
}
.chat .messages .message-item .message-content .text-chat{
  background:white;
  padding:8px;
  border-radius: 4px;
  position: relative;
}
.chat .messages .message-item .message-content .text-chat a {
  word-break: break-all;
}
.chat .messages .message-item .message-content .text-chat::after {
  content: "";
  position: absolute;
  top: 9px;
  left: -16px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent white transparent transparent;
}
.chat .messages .message-item .time { 
  opacity: 1; height:18px; font-size: 11px;
  transition: 0.2s; font-style: italic; 
  text-align:right;
  width: 100%;
  opacity: 0.6;
}
.chat .messages .message-item .time.view { 
  opacity: 1; height:18px;
}

/* mensagens do proprio usuario */
.chat .messages .message-item.right .message-content{ 
  margin-left: auto;
  max-width: 80%;
  justify-content: right;
}
.chat .messages .message-item.right .message-content .text-chat {
  background-color: var(--light-color);
}
.chat .messages .message-item.right .message-content .text-chat::after {
  border-width: 0;
}
.chat .messages .message-item.right .img-chat { display: none;}
.chat .messages .message-item.right strong{ display: none;}

.chat .form-group { position:relative; padding:15px;}
.chat .form-control { 
  
  padding-right: 40px; resize: none; height: 70px;
}
.chat #chatSender {
  font-size:2.2em;
  position: absolute; right:20px; top:20px; cursor: pointer;
}

#push { font-size:0.9rem; display: none; }
#push .conteudo-push img { width: 50px; height: 50px; margin-right: 12px;}

@media (min-width: 992px) {
    #push {max-width:400px;}
  }