
.chatbox-holder {
  position: fixed;
  right: 60px;
  bottom: 0;
  display: flex !important;
  align-items: flex-end;
  height: 0;
}

.chatbox {
  width: 350px;
  height: 500px;
  margin: 0 20px 0 0;
  position: relative;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, .2);
  display: flex;
  flex-flow: column;
  border-radius: 10px 10px 0 0;
  background: white;
  bottom: 0;
  transition: .1s ease-out;
}

.chatbox-top {
  position: relative;
  display: flex;
  padding: 10px 0;
  border-radius: 10px 10px 0 0;
}

.status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 3px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #cacaca;
  margin: 0 3px 0 0;
}

.online {
  background: #b7fb00;
}

.away {
  background: #ffae00;
}

.donot-disturb {
  background: #ff4343;
}

.chatbox-avatar {
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 50%;
  background: #aff0ff;
  padding: 0px;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, .2);
  position: absolute;
  transition: .1s ease-out;
  bottom: 0;
  left: 6px;
  visibility: hidden;
}
.chat-partner-name, .chat-group-name {
    flex: 1;
    padding: 0 0 0 75px;
    font-size: 16px;
    font-weight: bold;
    color: #30649c;
    text-shadow: 1px 1px 0 #30649c;
    transition: .1s ease-out;
  }

.chatbox-icons {
    padding: 0 10px 0 0;
    display: flex;
    position: relative;
  }
  
  .chatbox-icons .glyphicon {
    padding: 3px 5px 7px 5px;
    margin: 0 0 0 3px;
    color: white;
    border-radius: 0 5px 0 5px;
    transition: 0.3s;
  }
  
  .chatbox-icons .glyphicon:hover {
    border-radius: 5px 0 5px 0;
  }
  
  .chatbox-icons a, .chatbox-icons a:link, .chatbox-icons a:visited {
    color: white;
  }

.chatbox-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.chat-messages {
  border-top: 1px solid rgba(0, 0, 0, .05);
  background-color: #fafafa;
  padding: 10px;
  overflow: auto;
  display: flex;
  flex-flow: row wrap;
  align-content: flex-start;
  flex: 1;
}

.message-box-holder {
  width: 100%;
  margin: 0 0 15px;
  display: flex;
  flex-flow: column;
  align-items: flex-end;
}

.message-sender {
  font-size: 12px;
  margin: 0 0 15px;
  color: #30649c;
  align-self: flex-start;
}

.message-sender a, .message-sender a:link, .message-sender a:visited, .chat-partner-name a, .chat-partner-name a:link, .chat-partner-name a:visited {
  color: white;
  text-decoration: none;
}

.message-box {
  padding: 6px 10px;
  border-radius: 6px 0 6px 0;
  position: relative;
  background: rgba(100, 170, 0, .1);
  border: 2px solid rgba(100, 170, 0, .1);
  color: #6c6c6c;
  font-size: 12px;
  overflow-wrap: break-word;
  max-width: 300px;
}

.message-partner {
  background: rgba(0, 114, 135, .1);
  border: 2px solid rgba(0, 114, 135, .1);
  align-self: flex-start;
}

.chat-input-holder {
  display: flex;
  border-top: 1px solid rgba(0, 0, 0, .1);
}

.chat-input {
  resize: none;
  padding: 5px 10px;
  height: 40px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #575757;
  flex: 1;
  border: none;
}

.chat-input::placeholder
{
    color: #9d9d9d;
}

.chat-input:focus, .message-send:focus {
  outline: none;
}

.message-send::-moz-focus-inner {
	border:0;
	padding:0;
}

.message-send {
  -webkit-appearance: none;
  background: #9cc900;
  background: -moz-linear-gradient(180deg, #fdc933, #f3b709);
  background: -webkit-linear-gradient(180deg, #fdc933, #f3b709);
  background: -o-linear-gradient(180deg, #fdc933, #f3b709);
  background: -ms-linear-gradient(180deg, #fdc933, #f3b709);
  background: linear-gradient(180deg, #fdc933, #f3b709);
  font-size: 12px;
  padding: 0 15px;
  border: none;
}

.attachment-panel {
  padding: 3px 10px;
  text-align: right;
}

.attachment-panel a, .attachment-panel a:link, .attachment-panel a:visited {
  margin: 0 0 0 7px;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.5);
}

.chatbox-min {
  margin-bottom: -362px;
/*   height: 46px; */
}

.chatbox-min .chatbox-avatar {
  width: 60px;
  height: 60px;
}

.chatbox-min .chat-partner-name, .chatbox-min .chat-group-name {
  padding: 0 0 0 75px;
}

.msg-timestamp {
    font-size: .9rem;
    vertical-align: top;
    display: inline-block;
    color: gray;
    margin: 3px 5px 3px 0px;
}

.msg-timestamp-partner {
    font-size: .9rem;
    vertical-align: top;
    color: gray;
    margin: 3px 5px 3px 0px;
    align-self: flex-start;
}

.chat-sort-name
{
    padding: 14px 0px;
    background-color: #aff0ff;
    border-radius: 60%;
    width: 100%;
    height: 100%;
    text-align: center;
    display: inline-block;
    box-shadow: 0px 0px 1px 0px #878787;
    transition: transform 0.5s;
}