@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: 90px;
    right: 26px;
    outline: none;
    border: none;
    height: 50px;
    width: 50px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #004ba8;
    transition: all 0.2s ease;
    z-index: 9999;
  }
  
  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;
  }
  
  .chatbot {
    position: fixed;
    right: 100px;
    bottom: 9px;
    width: 420px;
    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;
    z-index: 9999;
  }
  
  body.show-chatbot .chatbot {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }
  
  .chatbot header {
    padding: 10px 0;
    position: relative;
    text-align: center;
    color: #fff;
    background: #004ba8;
    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: 2rem;
  }
  
  .chatbot .chatbox {
    overflow-y: auto;
    height: 510px;
    padding: 30px 20px 100px;
  }
  
  .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: #004ba8;
    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: 1.5rem;
    background: #004ba8;
    text-align: left !important;
  }
  
  .chatbox .incoming p {
    border-radius: 10px 10px 10px 0;
    color: #000;
    background: #f2f2f2;
  }
  
  .chatbox .chat p.error {
    color: #721c24;
    background: #f8d7da;
  }
  
  .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: 1.5rem;
  }
  
  .chat-input span {
    align-self: flex-end;
    color: #004ba8;
    cursor: pointer;
    height: 55px;
    display: flex;
    align-items: center;
    font-size: 2.35rem;
  }
  
  .chat-input textarea:valid ~ span {
    visibility: visible;
  }
  
  @media (max-width: 490px) {
    .chatbot-toggler {
      right: 20px;
      bottom: 60px;
    }
  
    .chatbot {
      right: 0;
      bottom: 0;
      height: 100%;
      border-radius: 0;
      width: 100%;
    }
  
    .chatbot .chatbox {
      height: 90%;
      padding: 25px 15px 100px;
    }
  
    .chatbot .chat-input {
      padding: 5px 15px;
    }
  
    .chatbot header span {
      display: block;
    }
  }
  
  /* Typing loader styles */
  .typing-loader {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }
  
  .typing-loader span {
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    animation: pulse 1.2s infinite ease-in-out !important;
  }
  
  .typing-loader span:nth-child(1) {
    background-color: #3786FA !important;
  }
  .typing-loader span:nth-child(2) {
    background-color: #F83B3C !important;
  }
  .typing-loader span:nth-child(3) {
    background-color: #FFA918 !important;
  }
  .typing-loader span:nth-child(4) {
    background-color: #85B70F !important;
  }
  
  /* Override styling for the loader chat item */
  .chatbox .chat.incoming.loader-chat {
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  
  .chatbox .chat.incoming.loader-chat::before,
  .chatbox .chat.incoming.loader-chat::after {
    content: none !important;
  }
  .img-cls{
      max-width: min-content;
      min-width: 2px;
      height: 25px;
      margin-right: 10px;
  }
  .typing-loader span {
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    animation: pulse 1.2s infinite ease-in-out !important;
  }
  

  @keyframes pulse {
    0%, 80%, 100% {
      transform: scale(1);
      opacity: 0.5;
    }
    40% {
      transform: scale(1.4);
      opacity: 1;
    }
  }
  

  .typing-loader span:nth-child(1) {
    animation-delay: 0s !important;
  }
  .typing-loader span:nth-child(2) {
    animation-delay: 0.2s !important;
  }
  .typing-loader span:nth-child(3) {
    animation-delay: 0.4s !important;
  }
  .typing-loader span:nth-child(4) {
    animation-delay: 0.6s !important;
  }
  .chat.incoming {
  position: relative;
}
.chat.incoming .read-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.chat.incoming .read-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}


.chat.incoming .read-btn .material-symbols-rounded{
  font-size: 20px;
}

.chat.incoming .read-btn.speaking .material-symbols-rounded{
  animation:pulseSpeak 1s infinite;
}
@keyframes pulseSpeak{
  0%,100%{transform:scale(1)}
  50%    {transform:scale(1.4)}
}

.chat.incoming .read-btn:active .material-symbols-rounded{
  transform:scale(1.3);
}

