/**
 * @file
 * AI Lead Chatbot Widget styles.
 */

.chatbot-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0078ff;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

.chatbot-button:hover {
  background: #0056b3;
  transform: scale(1.05);
  transition: all 0.2s ease;
}

.chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  height: 420px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
}

.chatbot-header {
  background: #0078ff;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header span {
  font-weight: bold;
  font-size: 16px;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
}

.chatbot-close:hover {
  opacity: 0.8;
}

.chatbot-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.chatbot-message {
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  max-width: 80%;
  word-wrap: break-word;
}

.chatbot-message.user {
  background: #0078ff;
  color: white;
  align-self: flex-end;
}

.chatbot-message.bot {
  background: #e0e0e0;
  color: black;
  align-self: flex-start;
}

.chatbot-input-wrapper {
  display: flex;
  border-top: 1px solid #ddd;
}

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

.chatbot-input:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.chatbot-send {
  background: #0078ff;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.chatbot-send:hover:not(:disabled) {
  background: #0056b3;
}

.chatbot-send:disabled {
  background: #ccc;
  cursor: not-allowed;
}
