/* Hide old Work With Us button */
#sticky-footer-button, .flyout-contact.pum-trigger { display: none !important; }

/* Brandastic Chatbot Styles */
#brandastic-chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.brandastic-chat-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: white;
  position: relative;
}

.brandastic-chat-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.brandastic-chat-button.open {
  background: #ef4444;
}

.brandastic-notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  animation: brandastic-pulse 2s infinite;
}

@keyframes brandastic-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.brandastic-chat-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: brandastic-slide-up 0.3s ease-out;
}

.brandastic-chat-window.open {
  display: flex;
}

@keyframes brandastic-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brandastic-chat-header {
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brandastic-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brandastic-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brandastic-chat-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.brandastic-chat-info p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

.brandastic-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f8fafc;
}

.brandastic-message {
  margin-bottom: 16px;
  display: flex;
}

.brandastic-message.user {
  justify-content: flex-end;
}

.brandastic-message-content {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
}

.brandastic-message.bot .brandastic-message-content {
  background: white;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.brandastic-message.user .brandastic-message-content {
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  color: white;
}

.brandastic-chat-input {
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  background: white;
}

.brandastic-input-container {
  display: flex;
  gap: 8px;
}

.brandastic-input-container input {
  flex: 1;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 24px;
  outline: none;
  font-size: 14px;
}

.brandastic-input-container input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.brandastic-send-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.brandastic-send-button:hover {
  transform: scale(1.05);
}

.brandastic-send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.brandastic-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.brandastic-typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
  animation: brandastic-typing 1.4s infinite ease-in-out;
}

.brandastic-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.brandastic-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes brandastic-typing {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

.brandastic-book-button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s ease;
}

.brandastic-book-button:hover {
  background: #1d4ed8;
}

.brandastic-quick-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.brandastic-quick-action {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.brandastic-quick-action:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .brandastic-chat-window {
    position: fixed;
    width: calc(100vw - 20px);
    height: calc(100vh - 140px);
    bottom: 75px;
    right: 10px;
    left: 10px;
    max-height: 70vh;
  }
  
  #brandastic-chatbot-container {
    bottom: 10px;
    right: 10px;
  }
  
  .brandastic-chat-button {
    width: 50px;
    height: 50px;
  }
}

/* Accessibility */
.brandastic-chat-button:focus,
.brandastic-send-button:focus,
.brandastic-book-button:focus,
.brandastic-quick-action:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}