/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  background: #E3F2FD;
}
.chatbot-toggler {
    position: fixed;
    bottom: 20px;
    right: 20px;
    outline: none;
    border: none;
    height: 50px;
    width: 50px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25D366;
    transition: all 0.2s ease;
}
body.show-chatbot .chatbot-toggler {
  transform: rotate(90deg);
}
.chatbot-toggler span {
  color: #fff;
  position: absolute;
}
.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child  {
  opacity: 0;
}
body.show-chatbot .chatbot-toggler span:last-child {
  opacity: 1;
}
.gif-img {
    width: 100px; /* Set your desired width */
    height: auto; /* Maintain aspect ratio */
}
.chatbot {
    z-index: 999;
    position: fixed;
    right: 20px;
    bottom: 85px;
    width: 380px;
    height: auto;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: bottom right;
    box-shadow: 0 0 128px 0 rgba(0,0,0,0.1),
                0 32px 64px -48px rgba(0,0,0,0.5);
    transition: all 0.1s ease;
}
body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.chatbot header {
  padding: 16px 0;
  position: relative;
  text-align: center;
  color: #fff;
  background: #25D366;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.chatbot header span {
  position: absolute;
  right: 15px;
  top: 50%;
  display: none;
  cursor: pointer;
  transform: translateY(-50%);
}
header h2 {
  font-size: 1.4rem;
}
.chatbot .chatbox {
  overflow-y: auto;
  height: 100%;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
  width: 6px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 25px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 25px;
}
.chatbox .chat {
  display: flex;
  list-style: none;
}
.chatbox .outgoing {
  margin: 20px 0;
  justify-content: flex-end;
}
.chatbox .incoming span {
  width: 32px;
  height: 32px;
  color: #fff;
  cursor: default;
  text-align: center;
  line-height: 32px;
  align-self: flex-end;
  background: #724ae8;
  border-radius: 4px;
  margin: 0 10px 7px 0;
}
.chatbox .chat p {
  white-space: pre-wrap;
  padding: 12px 16px;
  border-radius: 10px 10px 0 10px;
  max-width: 75%;
  color: #fff;
  font-size: 0.95rem;
  background: #724ae8;
}
.chatbox .incoming p {
  border-radius: 10px 10px 10px 0;
}
.chatbox .chat p.error {
  color: #721c24;
  background: #f8d7da;
}
.chatbox .incoming p {
  color: #000;
  background: #f2f2f2;
}
.chatbot .chat-input {
  display: flex;
  gap: 5px;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 3px 20px;
  border-top: 1px solid #ddd;
}
.chat-input textarea {
  height: 55px;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  max-height: 180px;
  padding: 15px 15px 15px 0;
  font-size: 0.95rem;
}
.chat-input span {
  align-self: flex-end;
  color: #724ae8;
  cursor: pointer;
  height: 55px;
  display: flex;
  align-items: center;
  visibility: hidden;
  font-size: 1.35rem;
}
.chat-input textarea:valid ~ span {
  visibility: visible;
}

@media (max-width: 490px) {
  .chatbot-toggler {
    right: 15px;
    bottom: 15px;
  }
  .chatbot {
    right: 16px;
    /* bottom: 0; */
    width: 90%;
    border-radius: 15px;
    z-index: 999;
  }
  .chatbot .chat-input {
    padding: 5px 15px;
  }
}

.chatbot header span {
  display: block;
}

.fixed {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 9997;
}

.discussions {
  width: 100%;
  height: auto;
  overflow: hidden;
  display: inline-block;
  background-color: #FFF;
}

.discussions .discussion {
  width: 100%;
  height: 70px;
  background-color: #FAFAFA;
  border-bottom: solid 1px #E0E0E0;
  display:flex;
  align-items: center;
  cursor: pointer;
}

.discussions .discussion .photo {
  margin-left: 14px;
  display: block;
  width: 45px;
  height: 45px;
  background: #E6E7ED;
  background-position: center;
  border-radius: 100%;
  background-size: cover;
  background-repeat: no-repeat;
}

.discussion:hover {
background-color: #edffd8;
}

.online {
position: relative;
top: 30px;
left: 35px;
width: 13px;
height: 13px;
background-color: #8BC34A;
border-radius: 13px;
border: 3px solid #FAFAFA;
}

.desc-contact {
height: 43px;
width:50%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.discussions .discussion .name {
margin: 0 0 0 14px;
font-size: 12pt;
font-weight: 500;
color:#515151;
}

.discussions .discussion .message {
margin: 0 0 0 14px;
font-family:'Montserrat', sans-serif;
font-size: 9pt;
color:#515151;
}

.btn-whatsapp {
margin-left: 15%;
font-size: 24px;
display: block;
height: 46px;
width: 46px;
text-align: center;
padding-top: 5px;
color: #25D366;
background-color: #FFF;
border: 1px solid #E5E5E5;
border-radius: 100%;
}