.chat-float-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 15px;
    border-radius: 30%;
    cursor: pointer;
    z-index: 1000;
  }
  
  
  .close-chat {
    cursor: pointer;
    font-size: 18px;
    color: #777;
    transition: color 0.3s ease-in-out;
  }
  
  .close-chat:hover {
    color: #333;
  }

  
/* Basic reset and mobile viewport settings  V2 */
  
  /* Container styles */
  .chat-container {
    position: fixed;
    bottom: 40px;
    right: 20px;
    height: 65%;
    display: none;
    background-color: #fff;
    width: 320px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  /* Header styles */
  .chat-header {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f2f2f2;
  }
  
  .agent-avatar {
    width: 40px;
    height: 40px;
    background-color: #a14dd2;
    border-radius: 50%;
    margin-right: 10px;
  }
  
  .agent-info {
    flex-grow: 1;
  }
  
  .agent-name {
    font-weight: bold;
  }
  
  /* ... More styling ... V3 */

  .chat-messages {
    height: 70%;
    overflow: auto;
    border-bottom: 1px solid #ccc;
    padding: 10px;
  }
  
  .user-message {
    display: flex;
    align-items: flex-end;
    display: inline-block;
    margin-bottom: 10px;
    background-color: #007bff;
    border-radius: 20px;
    font-weight: 500;
    color: white;
    padding: 5px 10px 5px 10px;
  }
  
  .bot-message {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin-bottom: 10px;
    display: inline-block;
    background-color: #a14dd2;
    border-radius: 20px;
    color: white;
    font-weight: 500;
    padding: 5px 10px 5px 10px;
  }
  
  .message-box {
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
    max-width: 70%; /* Limit message width for responsiveness */
  }
  
  .user-input-container {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f5f5f5;
  }
  
  #user-input {
    flex-grow: 1;
    border: none;
    padding: 8px;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
  }
  
  #send-button {
    border: none;
    background-color: #007bff;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
  }

/* V4 */
  .typing-indicator {
    text-align: right;
  }
  
  .typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #777;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1s infinite;
  }
  
  @keyframes typing {
    0%, 50%, 100% {
      opacity: 1;
      transform: translateY(0);
    }
    25% {
      opacity: 0.5;
      transform: translateY(-5px);
    }
    75% {
      opacity: 0.5;
      transform: translateY(5px);
    }
  }


.bot-message a {
  text-decoration: underline;
}

.bot-message a:hover {
  font-weight: bold;
}