/* Chatbot toggle button */
.chatbot-toggler {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #287781;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 20px;
  cursor: pointer;
  font-size: 34px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  width: 60px;
}

.chatbot-toggler .material-symbols-outlined {
  font-size: 30px;   
}

.chatbot-toggler span:last-child {
  display: none;
}

/* Chatbot container */
.chatbot {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 450px;
  max-height: 80vh;
  height: 500px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-in-out;
  z-index: 9998;
}


.show-chatbot .chatbot {
  transform: scale(1);
}

header {
  background: #092A2E;
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  height: fit-content;
}

.farLeftChatbotHeader {
  display: flex;
  align-items: center;   
  gap: 10px;  
  vertical-align: center;          
}

.chatbotHeaderImg {
  width: 46px;               
  height: 46px;
  border-radius: 50%;         
  background-color: #fff;    
  padding: 12px 15px;               
  display: flex;              
  justify-content: center;
  align-items: center;
  box-sizing: border-box;    
  vertical-align: center; 
}

.chatbot-logo{
  justify-content: center;
  width: 27px;               
  height: 30px;
}


header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

header .close-btn {
  cursor: pointer;
  font-size: 24px;       
}


/* chatbox messages */
.chatbox {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  list-style: none;
  margin: 0;
}

.chat {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.chat.incoming p{
  color: #287781;
  background-color: #59898E33;
}

.chat.incoming span {
  margin-right: 8px;
}

.chat.outgoing {
  justify-content: flex-end;
}

.chat.outgoing p{
  color: #287781;
  background-color: #59898E33;
}

.chat p {
  background: #f1f1f1;
  padding: 10px 14px;
  border-radius: 8px;
  max-width: 75%;
}

.chat.outgoing p {
  color: #424242;
  background-color: #FFFDED;
  border: 0.1px solid var(--Yellow-06, #C7A926);
}

/* Input area */
.chat-input {
  display: flex;
  align-items: center;
  border-top: 1px solid #ddd;
  padding: 8px;
  background: #fff;
}

.chat-input textarea {
  flex: 1;
  resize: none;
  padding: 10px;
  border: none;
  outline: none;
  font-size: 14px;
}

.chat-input span {
  color: #195057;
  font-size: 24px;
  margin-left: 10px;
  cursor: pointer;
}

/* Scrollbar style */
.chatbox::-webkit-scrollbar {
  width: 6px;
}

.chatbox::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* Responsive styling */
@media (max-width: 768px) {
  .chatbot {
    right: 10px;
    bottom: 70px;
    width: 300px;
    max-height: 75vh;
  }
}

@media (max-width: 480px) {
  .chatbot-toggler {
    right: 15px;
    bottom: 15px;
    padding: 10px;
  }

  .chatbot {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  header {
    font-size: 16px;
  }

  .chatbox {
    padding: 10px;
  }

  .chat p {
    font-size: 14px;
  }
}
