/* Chatbot Styles - extracted from styles.min.css and improved */
#chatbot-launcher {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.2s ease-in-out;
  overflow: hidden;
}
#chatbot-launcher:hover {
  transform: scale(1.05);
}
.chatbot-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: none;
}
#chatbot-window {
  position: fixed;
  bottom: 90px;
  left: 20px;
  width: 350px;
  max-width: calc(100vw - 40px);
  height: 400px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 99999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.1);
}
#chatbot-window.show {
  display: flex;
  animation: chatbotSlideIn 0.3s ease-out forwards;
}
#chatbot-window.hide {
  animation: chatbotSlideOut 0.3s ease-in forwards;
}
@keyframes chatbotSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes chatbotSlideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}
#chatbot-header {
  background: #bfa66b;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  flex-shrink: 0;
  min-height: 48px;
}
#chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}
#chatbot-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
#chat-log {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f5f2ed;
  font-size: 14px;
  line-height: 1.4;
  min-height: 200px;
  max-height: calc(100% - 120px);
  scrollbar-width: thin;
  scrollbar-color: #bfa66b #f5f2ed;
}
#chatbot-input {
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 8px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  flex-shrink: 0;
  min-height: 60px;
  align-items: center;
}
#user-message {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
#user-message:focus {
  border-color: #bfa66b;
  box-shadow: 0 0 0 2px rgba(191, 166, 107, 0.2);
}
#chatbot-input button {
  padding: 8px 16px;
  background: #bfa66b;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
#chatbot-input button:hover {
  background: #a08c4a;
}
@media (max-width: 768px) {
  #chatbot-window {
    bottom: 80px;
    left: 10px;
    right: 10px;
    width: auto;
    height: 350px;
  }

  #chatbot-input {
    padding: 8px 12px;
    min-height: 52px;
  }
  #chatbot-header {
    padding: 10px 12px;
    min-height: 40px;
  }
}
