/* Föndurlist Chatbot Widget Custom Styles */

/* Make the chat bubble button use brand color */
#abacus-chat-bubble-button {
  width: 70px !important;
  height: 70px !important;
  background-color: #2a8a6e !important;
  box-shadow: 0 4px 12px rgba(42, 138, 110, 0.4) !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
  /* Force to left side */
  right: auto !important;
  left: 24px !important;
  animation: none !important;
}

#abacus-chat-bubble-button:hover {
  background-color: #236f59 !important;
  box-shadow: 0 6px 16px rgba(42, 138, 110, 0.6) !important;
}

/* Style the chat bubble icon */
#abacus-chat-bubble-button svg {
  width: 36px !important;
  height: 36px !important;
}

/* Style the chat window header with brand color */
.abacus-chat-header,
[class*="chat-header"],
[class*="ChatHeader"] {
  background-color: #2a8a6e !important;
}

/* Welcome message bubble styling - left side */
.abacus-welcome-message,
[class*="welcome-message"],
[class*="WelcomeMessage"] {
  background-color: #2a8a6e !important;
  color: white !important;
  padding: 12px 16px !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  font-size: 20px !important;
  max-width: 340px !important;
  margin-bottom: 12px !important;
  position: fixed !important;
  bottom: 90px !important;
  right: auto !important;
  left: 24px !important;
  z-index: 999999 !important;
  animation: slideInUp 0.4s ease-out !important;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Close button for welcome message */
.abacus-welcome-message-close {
  position: absolute !important;
  top: 4px !important;
  right: 8px !important;
  background: transparent !important;
  border: none !important;
  color: white !important;
  cursor: pointer !important;
  font-size: 18px !important;
  line-height: 1 !important;
  padding: 4px !important;
}



/* Ensure widget is visible on mobile */
@media (max-width: 768px) {
  #abacus-chat-bubble-button {
    width: 60px !important;
    height: 60px !important;
    bottom: 20px !important;
    right: auto !important;
    left: 16px !important;
  }
  
  .abacus-welcome-message {
    bottom: 85px !important;
    right: auto !important;
    left: 16px !important;
    max-width: calc(100vw - 100px) !important;
  }
}
