/*================================================================================
ERWAN & TRISTAN
================================================================================

NOTE:
------
DEV BY ERWAN ET TRISTAN  */


.live_chat_wrapper {
  position: fixed;
  bottom: 10px;
  left: 0;
  align-items: flex-end;
  font-family: "Roboto", sans-serif;
  z-index: 99999;
}

.live_message {
  color: #353d42;
  background: #fff;
  box-shadow: 1px 2px 8px rgba(105, 90, 205, 0.664);
  border-radius: 10px;
  width: 257px;
  margin-bottom: 20px;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.5);
  opacity: 0;
  transition: 0.3s ease-in-out;
  -webkit-transition: 0.3s ease-in-out;
  -moz-transition: 0.3s ease-in-out;
  -ms-transition: 0.3s ease-in-out;
  -o-transition: 0.3s ease-in-out;
  -webkit-transform: scale(0.5);
  -moz-transform: scale(0.5);
  -ms-transform: scale(0.5);
  -o-transform: scale(0.5);
}

.bot_profile {
  cursor: pointer;
  z-index: 3;
}

.bot_profile_active {
  z-index: 0 !important;
}

.bot_profile img {
  width: 193px;
  margin-right: 10px;
}

.live_chat_top {
  padding: 20px 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
}

.live_chat_bottom{
    padding: 20px 25px;
    padding-top: 0;
    margin-top: 15px;
    margin-bottom: 20px;
    max-height: 150px;
    overflow: auto;
}

.live_chat_bottom::-webkit-scrollbar {
  width: 3px;
}

.live_chat_bottom::-webkit-scrollbar-track {
    border-radius: 10px;
}

.live_chat_bottom::-webkit-scrollbar-thumb {
    background: slateblue;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.live_chat_top .live_chat_top h4 {
  font-size: 17px;
  margin-bottom: 10px;
}
.live_chat_bottom p {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 5px;
  line-height: 1.5;
}

.live_message_active {
  visibility: visible !important;
  opacity: 1 !important;
  transform: scale(1) !important;
  -webkit-transform: scale(1) !important;
  -moz-transform: scale(1) !important;
  -ms-transform: scale(1) !important;
  -o-transform: scale(1) !important;
}

.live_chat_close {
  position: absolute;
  top: 20px;
  right: 8px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
}

.live_chat_close img {
  width: 60%;
}

/* responsive code */
@media (max-width: 768px) {
  .live_chat_wrapper {
    bottom: 0;
  }
  .live_message {
    width: auto;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
  }
  .live_chat_top {
    padding: 20px;
  }
  .message_input {
    padding: 12px 20px;
    height: 48px;
  }
  .bot_profile {
    position: absolute;
    bottom: 5px;
    right: 0;
  }
  .bot_profile img {
  width: 93px;
  margin-right: 10px;
}
  .live_chat_bottom{
    max-height: 150px;
}
}