/* AI Virtual Assistant Styles */
.ai-chatbot-container {
  position: fixed;
  bottom: 100px; /* Above WhatsApp button */
  right: 30px;
  width: 350px;
  max-height: 500px;
  background-color: var(--clr-white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ai-chatbot-container.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.ai-chat-header {
  background-color: var(--clr-primary);
  color: var(--clr-white);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ai-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.ai-close-btn {
  background: none;
  border: none;
  color: var(--clr-white);
  cursor: pointer;
  font-size: 1.2rem;
}

.ai-chat-body {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #f4f6f8;
  height: 300px;
}

.ai-message {
  max-width: 80%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.ai-message.bot {
  background-color: var(--clr-white);
  color: var(--clr-text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.ai-message.user {
  background-color: var(--clr-accent);
  color: var(--clr-white);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.ai-chat-input {
  display: flex;
  padding: 1rem;
  background-color: var(--clr-white);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.ai-chat-input input {
  flex-grow: 1;
  border: none;
  padding: 0.8rem;
  border-radius: 20px;
  background-color: #f4f6f8;
  margin-right: 0.5rem;
  font-family: var(--ff-body);
}

.ai-chat-input input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.3);
}

.ai-chat-submit {
  background-color: var(--clr-primary);
  color: var(--clr-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.ai-chat-submit:hover {
  background-color: var(--clr-accent);
}

/* Chatbot Toggle Button */
.ai-chatbot-toggle {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary));
  color: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast);
}

.ai-chatbot-toggle:hover {
  transform: scale(1.1);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.5rem 1rem;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--clr-text-light);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Weglot Custom Styles overrides */
.weglot-container {
  margin-left: 1rem;
}
