@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap);
/**
 * Revenue Expert Chatbot - Maximum CSS Isolation
 * Ultra-defensive styling to prevent host site CSS conflicts
 * Version: 3.1.0 - Enhanced Isolation
 */

/* ==========================================================================
   PROPER CHATBOT SIZING - PREVENT COLLAPSE
   ========================================================================== */

/* ==========================================================================
   CSS FIREWALL - Maximum Isolation & Protection
   ========================================================================== */

/* Root container with maximum containment and isolation */
.reveg-chatbot-root {
  /* Ultimate isolation from host environment */
  isolation: isolate !important;
  position: relative !important;
  z-index: 999999 !important;
  
  /* Font and basic styling reset */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: #333 !important;
  direction: ltr !important;
  text-align: left !important;
  
  /* Box model protection */
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  
  /* Text and display protection */
  font-weight: normal !important;
  font-style: normal !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  white-space: normal !important;
  vertical-align: baseline !important;
  
  /* Disable host animations and transforms that might interfere - but preserve chatbot animations */
  
  /* Content protection */
  overflow: visible !important;
  display: block !important;
}

/* Gentle reset for non-chatbot elements only */
.reveg-chatbot-root *:not([class*="reveg-chatbot-"]) {
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  
  /* Typography reset */
  font-family: inherit !important;
  text-decoration: none !important;
  
  /* Layout reset - but preserve positioning and animations */
  float: none !important;
  clear: none !important;
  
  /* Disable animations only for non-chatbot elements */
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

/* Minimal protection for chatbot elements - preserve all animations */
.reveg-chatbot-root [class*="reveg-chatbot-"] {
  box-sizing: border-box !important;
  font-family: inherit !important;
  /* DO NOT reset transform, opacity, animation, transition - let Framer Motion control these */
}

/* Explicitly preserve typing dot animations with maximum specificity */
.reveg-chatbot-root .reveg-chatbot-typing-dot,
.reveg-chatbot-root .reveg-chatbot-typing .reveg-chatbot-typing-dot,
.reveg-chatbot-message .reveg-chatbot-typing-dot {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

/* Specific element type protection */
.reveg-chatbot-root button {
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

.reveg-chatbot-root input,
.reveg-chatbot-root textarea {
  user-select: text !important;
  -webkit-user-select: text !important;
  resize: none !important;
}

.reveg-chatbot-root img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  vertical-align: middle !important;
}

/* ==========================================================================
   Widget Structure - Floating Mode
   ========================================================================== */

/* Shortcode container - should be transparent */
[data-reveg-chatbot="true"] {
  position: relative !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  display: block !important;
}

/* React component widget - the actual floating widget */
.reveg-chatbot-root .reveg-chatbot-widget {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 999999 !important;
  pointer-events: auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
}

.reveg-chatbot-trigger {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  background: #007AFF !important;
  color: white !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3) !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  transform: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  z-index: 999999 !important;
  visibility: visible !important;
}

.reveg-chatbot-trigger:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 6px 25px rgba(0, 122, 255, 0.4) !important;
}

.reveg-chatbot-container {
  width: 400px !important;
  height: 700px !important;
  background: white !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  position: absolute !important;
  bottom: 80px !important;
  right: 0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(0.95) translateY(20px) !important;
  transition: all 0.15s ease !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-container.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  bottom: 6px !important;
  right: 16px !important;
  transform: scale(1) translateY(0) !important;
}

.reveg-chatbot-container.is-fullscreen {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  bottom: 20px !important;
  left: 20px !important;
  width: auto !important;
  height: auto !important;
}

/* ==========================================================================
   Widget Structure - Inline Mode
   ========================================================================== */

.reveg-chatbot-inline-container {
  width: 100% !important;
  height: 100% !important;
  background: white !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.reveg-chatbot-inline-header {
  padding: 20px !important;
  border-bottom: 1px solid #e5e5e5 !important;
  background: white !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.reveg-chatbot-inline-header-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-inline-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-inline-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #333 !important;
  line-height: 1.2 !important;
}

.reveg-chatbot-inline-status {
  font-size: 14px !important;
  color: #666 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

.reveg-chatbot-inline-main {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.reveg-chatbot-inline-messages {
  flex: 1 !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: white !important;
}

.reveg-chatbot-inline-messages-inner {
  padding: 20px !important;
  margin: 0 !important;
}

.reveg-chatbot-inline-welcome {
  padding: 20px !important;
  margin: 0 !important;
}

/* Welcome message styled like a bot message */
.reveg-chatbot-inline-welcome-message {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
  padding: 0 !important;
}

.reveg-chatbot-inline-welcome-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #007AFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-inline-welcome-content {
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-inline-welcome-bubble {
  background: white !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 18px !important;
  padding: 16px 20px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  margin: 0 !important;
  max-width: 100% !important;
  word-wrap: break-word !important;
}

.reveg-chatbot-inline-welcome-text {
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #333 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-inline-welcome-description {
  color: #666 !important;
  margin: 0 0 32px !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

.reveg-chatbot-inline-messages-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-inline-input-container {
  padding: 20px !important;
  margin: 0 !important;
  background: white !important;
  flex-shrink: 0 !important;
}

.reveg-chatbot-inline-disclaimer {
  font-size: 12px !important;
  color: #999 !important;
  text-align: center !important;
  margin-top: 8px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

/* ==========================================================================
   Header
   ========================================================================== */

.reveg-chatbot-header {
  background: linear-gradient(135deg, #0056CC 0%, #007AFF 100%) !important;
  color: white !important;
  padding: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.reveg-chatbot-header-content {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.reveg-chatbot-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.reveg-chatbot-header-text h3 {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: white !important;
  line-height: 1.2 !important;
}

.reveg-chatbot-status {
  font-size: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: 4px !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.2 !important;
}

.reveg-chatbot-status-dot {
  width: 8px !important;
  height: 8px !important;
  background: #10B981 !important;
  border-radius: 50% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1 !important;
  }
  50% {
    opacity: 0.5 !important;
  }
}

.reveg-chatbot-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-header-button {
  width: 32px !important;
  height: 32px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
}

.reveg-chatbot-header-button:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   Messages
   ========================================================================== */

.reveg-chatbot-messages {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 16px !important;
  background: white !important;
  margin: 0 !important;
  border: none !important;
}

/* OLD LEGACY CSS REMOVED - Using clean architecture only */

/* ==========================================================================
   Input Area
   ========================================================================== */

.reveg-chatbot-input-area {
  padding: 16px !important;
  border-top: 1px solid #e5e5e5 !important;
  background: #f1f3f4 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.reveg-chatbot-suggestions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
  padding: 0 !important;
}

.reveg-chatbot-suggestion {
  padding: 8px 12px !important;
  background: #f5f5f5 !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 16px !important;
  font-size: 14px !important;
  color: #333 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
  font-family: inherit !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  font-weight: normal !important;
  text-decoration: none !important;
  text-align: center !important;
}

.reveg-chatbot-suggestion:hover {
  background: #007AFF !important;
  color: white !important;
  border-color: #007AFF !important;
}

/* ==========================================================================
   Suggestion Cards (New Design)
   ========================================================================== */

.reveg-chatbot-suggestions-container {
  margin-bottom: 20px !important;
  padding: 0 !important;
}

.reveg-chatbot-suggestions-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
  padding: 0 4px !important;
}

.reveg-chatbot-suggestions-header-icon {
  width: 16px !important;
  height: 16px !important;
  color: #007AFF !important;
  flex-shrink: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-suggestions-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.reveg-chatbot-suggestions-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-suggestion-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  background: white !important;
  background-color: white !important;
  border: 1px solid #e5e7eb !important;
  border-color: #e5e7eb !important;
  border-style: solid !important;
  border-width: 1px !important;
  border-radius: 12px !important;
  color: #374151 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  font-family: inherit !important;
  margin: 0 !important;
  font-weight: normal !important;
  text-decoration: none !important;
  /* Extra protection against host site interference */
  position: relative !important;
  z-index: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  outline: none !important;
  min-height: 48px !important;
}

.reveg-chatbot-suggestion-card:hover {
    background: #ff0000 !important;
    background-color: #ff0000 !important;
    border-color: #007AFF !important;
    border: 1px solid #007AFF !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 122, 255, 0.1) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    /* TEST: If you see red background on hover, the CSS is loading correctly */
}

.reveg-chatbot-suggestion-icon-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-suggestion-icon {
  width: 18px !important;
  height: 18px !important;
  color: #007AFF !important;
  transition: color 0.2s ease !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-suggestion-card:hover .reveg-chatbot-suggestion-icon {
  color: #0056D6 !important;
}

.reveg-chatbot-suggestion-text {
  flex: 1 !important;
  font-weight: 500 !important;
  color: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
}

.reveg-chatbot-suggestion-arrow {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-suggestion-arrow-icon {
  width: 14px !important;
  height: 14px !important;
  color: #6b7280 !important;
  transition: all 0.2s ease !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-suggestion-card:hover .reveg-chatbot-suggestion-arrow-icon {
  color: #007AFF !important;
}



/* Modern suggestion styles for inline and floating modes */
.reveg-chatbot-suggestion-large {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  width: 100% !important;
  text-align: left !important;
  margin-bottom: 12px !important;
  display: block !important;
  color: #334155 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.reveg-chatbot-suggestion-large::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.15s ease !important;
  z-index: 0 !important;
}

.reveg-chatbot-suggestion-large::after {
  content: '→' !important;
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  transform: translateY(-50%) translateX(10px) !important;
  opacity: 0 !important;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-size: 16px !important;
  color: #3b82f6 !important;
  font-weight: 600 !important;
  z-index: 2 !important;
}

.reveg-chatbot-suggestion-large:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border-color: #3b82f6 !important;
  color: #1e293b !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15), 0 3px 10px rgba(0, 0, 0, 0.1) !important;
}

.reveg-chatbot-suggestion-large:hover::before {
  opacity: 1 !important;
}

.reveg-chatbot-suggestion-large:hover::after {
  opacity: 1 !important;
  transform: translateY(-50%) translateX(0) !important;
}

.reveg-chatbot-suggestion-large:active {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2), 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   Clarification Options Styles - Ultra-Defensive
   ========================================================================== */

/* Protection against host site framework conflicts - optimized */
.reveg-chatbot-root .clarification-options-wrapper,
.reveg-chatbot-root .clarification-options,
.reveg-chatbot-root .clarification-options-container,
.reveg-chatbot-root .clarification-option-button,
.reveg-chatbot-root .clarification-option-text {
  /* Essential resets only */
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-root .clarification-options-wrapper {
  margin: 8px 0 16px 44px !important; /* 44px to align with message content */
  padding: 0 !important;
  display: block !important;
}

.reveg-chatbot-root .clarification-options {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
}

.reveg-chatbot-root .clarification-options-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  list-style: none !important;
}

.reveg-chatbot-root .clarification-option-button {
  /* Ultra-defensive styling for maximum host site protection */
  background: #f8fafc !important;
  border: 1.5px solid #007AFF !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #1f2937 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  text-decoration: none !important;
  font-weight: 400 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  outline: none !important;
  position: relative !important;
  transform: translateY(-1px) !important;
  
  /* Essential protection only */
  height: auto !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow: visible !important;
  text-transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.reveg-chatbot-root .clarification-option-button:hover {
  background: #ffffff !important;
  border-color: #0056D6 !important;
  color: #111827 !important;
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px) !important;
}

.reveg-chatbot-root .clarification-option-button:active {
  transform: translateY(1px) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.reveg-chatbot-root .clarification-option-text {
  font-weight: 400 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #1f2937 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  text-decoration: none !important;
  text-align: left !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  width: 100% !important;
  height: auto !important;
  vertical-align: baseline !important;
}

.reveg-chatbot-input-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: white !important;
  border-radius: 12px !important;
  padding: 8px !important;
  margin: 0 !important;
  border: none !important;
}

.reveg-chatbot-input {
  flex: 1 !important;
  background: white !important;
  border: none !important;
  outline: none !important;
  resize: none !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  height: auto !important;
  min-height: 36px !important;
  max-height: 120px !important;
  padding: 8px !important;
  overflow: hidden !important;
  word-wrap: break-word !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  color: #333 !important;
  font-family: inherit !important;
  font-weight: normal !important;
  text-decoration: none !important;
}

.reveg-chatbot-input::placeholder {
  color: #999 !important;
  opacity: 1 !important;
}

.reveg-chatbot-send-button {
  width: 36px !important;
  height: 36px !important;
  background: #007AFF !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  flex-shrink: 0 !important;
}

.reveg-chatbot-send-button:hover {
  background: #0056D6 !important;
}

.reveg-chatbot-send-button:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
}

/* ==========================================================================
   Icon Utilities
   ========================================================================== */

.reveg-chatbot-trigger-icon {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: white !important;
}

.reveg-chatbot-avatar-icon {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: white !important;
}

.reveg-chatbot-avatar-image {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-header-button-icon {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: white !important;
}

.reveg-chatbot-send-button-icon {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: white !important;
}

.reveg-chatbot-inline-welcome-icon {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: white !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  /* Trigger button positioning on mobile */
  .reveg-chatbot-root .reveg-chatbot-widget {
    bottom: 20px !important;
    right: 20px !important;
  }
  
  /* Closed state container - still floating but larger */
  .reveg-chatbot-container {
    width: calc(100vw - 40px) !important;
    height: calc(100vh - 120px) !important;
    bottom: 90px !important;
    right: 20px !important;
    left: 20px !important;
  }
  
  /* Open state - full mobile experience */
  .reveg-chatbot-container.is-open {
    /* Take full width with small gap at top for better UX */
    width: 100vw !important;
    height: calc(100% - 1rem) !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    top: 1rem !important;
    
    /* Show top border radius for app-like feel */
    border-radius: 12px 12px 0 0 !important;
    
    /* Ensure proper positioning */
    position: fixed !important;
    z-index: 999999 !important;
    
    /* Remove any margins or transforms that might interfere */
    margin: 0 !important;
    transform: scale(1) translateY(0) !important;
  }
  
  /* Ensure input area is always visible on mobile */
  .reveg-chatbot-container.is-open .reveg-chatbot-input-area {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 10 !important;
    background: #f1f3f4 !important;
    border-top: 1px solid #e5e5e5 !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    min-height: auto !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Input wrapper mobile styles */
  .reveg-chatbot-container.is-open .reveg-chatbot-input-wrapper {
    background: white !important;
    border-radius: 8px !important;
    padding: 4px !important;
    margin: 0 !important;
    border: 1px solid #e5e5e5 !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }
  
  /* Input field mobile styles */
  .reveg-chatbot-container.is-open .reveg-chatbot-input {
    flex: 1 !important;
    background: white !important;
    border: none !important;
    outline: none !important;
    font-size: 16px !important; /* Prevent zoom on iOS */
    line-height: 1.5 !important;
    min-height: 36px !important;
    max-height: 100px !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    color: #333 !important;
    font-family: inherit !important;
    resize: none !important;
    overflow: hidden !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  
  /* Send button mobile styles */
  .reveg-chatbot-container.is-open .reveg-chatbot-send-button {
    width: 36px !important;
    height: 36px !important;
    background: #007AFF !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    margin: 0 0 0 8px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    min-width: 36px !important;
  }
  
  /* Ensure disabled state works on mobile too */
  .reveg-chatbot-container.is-open .reveg-chatbot-send-button:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
  }
  
  /* Adjust messages area to account for sticky input */
  .reveg-chatbot-container.is-open .reveg-chatbot-messages {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 16px !important;
    margin: 0 !important;
    max-height: calc(100% - 120px) !important; /* Account for header + input */
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* Mobile-specific bubble sizing */
  .reveg-chatbot-container.is-open .reveg-chatbot-message-text {
    max-width: 85% !important; /* Slightly wider on mobile for better readability */
  }
  
  /* Ensure message content is properly sized */
  .reveg-chatbot-container.is-open .reveg-chatbot-message-content {
    width: fit-content !important;
    max-width: 100% !important;
  }
  
  /* Adjust trigger when chat is open for better UX */
  .reveg-chatbot-container.is-open + .reveg-chatbot-trigger {
    display: none !important; /* Hide trigger when open on mobile */
  }

}

/* ==========================================================================
   Mobile Avatar Hiding
   ========================================================================== */
@media (max-width: 768px) {
  /* Hide all avatars on mobile for cleaner interface - ULTRA AGGRESSIVE */
  .reveg-chatbot-root .reveg-chatbot-avatar,
  .reveg-chatbot-root .reveg-chatbot-inline-header-left .reveg-chatbot-avatar,
  .reveg-chatbot-root .reveg-chatbot-inline-welcome-avatar,
  .reveg-chatbot-root .chat-avatar,
  .reveg-chatbot-root .reveg-chatbot-hero-float-avatar,
  .reveg-chatbot-avatar,
  .reveg-chatbot-inline-header-left .reveg-chatbot-avatar,
  .reveg-chatbot-inline-welcome-avatar,
  .reveg-chatbot-hero-float-avatar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    flex: 0 0 0 !important;
    flex-basis: 0 !important;
    flex-grow: 0 !important;
    flex-shrink: 1 !important;
  }
  
  /* Adjust spacing and layout when avatars are hidden */
  .reveg-chatbot-root .chat-message {
    gap: 0 !important;
  }
  
  .reveg-chatbot-inline-header-left {
    gap: 0 !important;
  }
  
  .reveg-chatbot-hero-float-header {
    gap: 0 !important;
    justify-content: flex-start !important;
  }
  
  /* FORCE containers to not reserve space for hidden avatars */
  .reveg-chatbot-header,
  .reveg-chatbot-inline-header,
  .reveg-chatbot-hero-float-header,
  .reveg-chatbot-root .chat-message {
    justify-content: flex-start !important;
  }
  
  /* Ensure content takes full width when avatars are hidden */
  .reveg-chatbot-root .chat-content {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Remove flex-shrink to prevent content compression */
  .reveg-chatbot-root .chat-message .chat-content {
    flex-shrink: 0 !important;
    flex-grow: 1 !important;
    flex-basis: auto !important;
  }
  
  /* Ensure header content expands to fill space */
  .reveg-chatbot-inline-header-content {
    width: 100% !important;
    flex-grow: 1 !important;
  }
  
  .reveg-chatbot-header-content {
    width: 100% !important;
    flex-grow: 1 !important;
  }
  
  /* Force inline welcome to not reserve avatar space */
  .reveg-chatbot-inline-welcome {
    justify-content: center !important;
  }
}

/* ==========================================================================
   Additional Protection Against Common CSS Frameworks
   ========================================================================== */

/* Bootstrap protection */
.reveg-chatbot-root .btn,
.reveg-chatbot-root .form-control,
.reveg-chatbot-root .input-group {
  all: unset !important;
}

/* Tailwind CSS protection */
.reveg-chatbot-root [class*="tw-"],
.reveg-chatbot-root [class*="text-"],
.reveg-chatbot-root [class*="bg-"],
.reveg-chatbot-root [class*="border-"],
.reveg-chatbot-root [class*="p-"],
.reveg-chatbot-root [class*="m-"],
.reveg-chatbot-root [class*="flex"] {
  all: unset !important;
}

/* Material-UI / MUI protection */
.reveg-chatbot-root .MuiButton-root,
.reveg-chatbot-root .MuiTextField-root,
.reveg-chatbot-root .MuiPaper-root {
  all: unset !important;
}

/* Foundation CSS protection */
.reveg-chatbot-root .button,
.reveg-chatbot-root .input {
  all: unset !important;
}

/* WordPress admin styles protection */
.reveg-chatbot-root .wp-core-ui,
.reveg-chatbot-root .button-primary,
.reveg-chatbot-root .button-secondary {
  all: unset !important;
}

/* Extra protection for suggestion cards against all possible interference */
.reveg-chatbot-suggestion-card {
  /* Force inheritance reset for button elements */
  all: unset !important;
  /* Then reapply our styles */
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  background: white !important;
  background-color: white !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  color: #374151 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  text-align: left !important;
  cursor: pointer !important;
  width: 100% !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  margin: 0 !important;
  font-weight: normal !important;
  text-decoration: none !important;
  position: relative !important;
  z-index: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
}

/* Force hover state even against aggressive resets */
.reveg-chatbot-suggestion-card:hover,
.reveg-chatbot-suggestion-card:focus {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  border: 1px solid #007AFF !important;
  border-color: #007AFF !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 122, 255, 0.1) !important;
  color: #374151 !important;
  opacity: 1 !important;
}

/* ==========================================================================
   CLEAN CHAT MESSAGE ARCHITECTURE
   ========================================================================== */

/* Chat Message Container: ONLY controls message flow and spacing */
.reveg-chatbot-root .chat-message {
  display: flex !important;
  align-items: flex-end !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  max-width: 100% !important;
}

/* User messages: Reverse the flow (avatar on right) */
.reveg-chatbot-root .chat-message.user {
  flex-direction: row-reverse !important;
}

/* Chat Avatar: Fixed size, no interference with content */
.reveg-chatbot-root .chat-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.reveg-chatbot-root .chat-avatar-icon {
  width: 20px !important;
  height: 20px !important;
  color: #007AFF !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reveg-chatbot-root .chat-avatar-icon.error {
  color: #FF3B30 !important;
}

/* Chat Content Column: Contains bubble, metadata, timestamp */
.reveg-chatbot-root .chat-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  
  /* ULTRA-AGGRESSIVE CONTENT ISOLATION */
  /* Prevent theme interference with content layout */
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  
  /* Box model protection */
  box-sizing: border-box !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  
  /* Typography reset */
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  text-align: inherit !important;
  
  /* Disable theme spacing interference */
  vertical-align: baseline !important;
  white-space: normal !important;
  
  /* Force proper flex behavior - NO THEME INTERFERENCE */
  flex-shrink: 1 !important;
  flex-grow: 0 !important;
  flex-basis: auto !important;
  align-content: flex-start !important;
  justify-content: flex-start !important;
  
  /* Disable any inherited animations/transforms */
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* User content: Right-align everything */
.reveg-chatbot-root .chat-message.user .chat-content {
  align-items: flex-end !important;
}

/* Bot content: Left-align everything */
.reveg-chatbot-root .chat-message.bot .chat-content {
  align-items: flex-start !important;
}

/* Add consistent spacing for bot messages without action buttons (like welcome messages and typing indicator) */
.reveg-chatbot-root .chat-content.no-actions,
.reveg-chatbot-root .chat-typing.no-actions {
  margin-bottom: 28px !important; /* Match the space that action buttons would take (4px margin + 24px height) */
}

/* CHAT BUBBLE: The main content bubble - PERFECT SIZING */
.reveg-chatbot-root .chat-bubble {
  /* AGGRESSIVE CONTENT-BASED SIZING: Force true content width */
  display: inline-block !important;
  width: auto !important;
  max-width: 500px !important;
  min-width: 0 !important;
  
  /* Visual styling */
  background: white !important;
  color: #333 !important;
  padding: 12px 16px !important;
  border-radius: 18px !important;
  border: 1px solid #e5e5e5 !important;
  border-bottom-left-radius: 6px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  margin: 0 !important;
  font-weight: normal !important;
  
  /* Text handling */
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  white-space: pre-wrap !important;
  hyphens: none !important;
}

/* User bubble styling */
.reveg-chatbot-root .chat-message.user .chat-bubble {
  background: #0a92df !important;
  color: white !important;
  border: 1px solid #0a92df !important;
  border-bottom-right-radius: 6px !important;
  border-bottom-left-radius: 18px !important;
  box-shadow: 0 2px 8px rgba(10, 146, 223, 0.3) !important;
}

/* Chat Actions */
.reveg-chatbot-root .chat-actions {
  /* ULTRA-AGGRESSIVE ACTIONS ISOLATION */
  margin: 4px 0 0 0 !important;
  padding: 0 4px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  
  /* Prevent theme interference */
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  vertical-align: baseline !important;
  
  /* Box model protection */
  box-sizing: border-box !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  
  /* Spacing control */
  white-space: nowrap !important;
  overflow: visible !important;
  
  /* Disable any inherited animations/transforms */
  transform: none !important;
  animation: none !important;
  transition: none !important;
  
  /* Force proper flex behavior */
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  flex-basis: auto !important;
  align-self: flex-start !important;
}

/* Feedback buttons */
.reveg-chatbot-root .chat-feedback-button {
  /* ULTRA-AGGRESSIVE BUTTON ISOLATION */
  background: none !important;
  border: none !important;
  padding: 2px !important;
  margin: 0 !important;
  cursor: pointer !important;
  opacity: 0.6 !important;
  transition: all 0.2s ease !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  
  /* Prevent theme button interference */
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  
  /* Typography reset */
  font-size: 0 !important;
  line-height: 1 !important;
  font-family: inherit !important;
  font-weight: normal !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  
  /* Box model protection */
  box-sizing: border-box !important;
  outline: none !important;
  vertical-align: baseline !important;
  
  /* Disable theme animations */
  transform: none !important;
  animation: none !important;
  
  /* Force proper positioning */
  position: relative !important;
  z-index: 1 !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

.reveg-chatbot-root .chat-feedback-button:hover {
  opacity: 1 !important;
  background: rgba(0, 0, 0, 0.05) !important;
  transform: scale(1.1) !important;
}

.reveg-chatbot-root .chat-feedback-button:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Active states */
.reveg-chatbot-root .chat-feedback-button.active {
  opacity: 1 !important;
  transform: scale(1.1) !important;
}

.reveg-chatbot-root .chat-feedback-button.active.thumbs-up {
  background: rgba(34, 197, 94, 0.1) !important;
}

.reveg-chatbot-root .chat-feedback-button.active.thumbs-up .chat-feedback-icon {
  color: #22c55e !important;
}

.reveg-chatbot-root .chat-feedback-button.active.thumbs-down {
  background: rgba(239, 68, 68, 0.1) !important;
}

.reveg-chatbot-root .chat-feedback-button.active.thumbs-down .chat-feedback-icon {
  color: #ef4444 !important;
}

.reveg-chatbot-root .chat-feedback-button.active.copy-success {
  background: rgba(34, 197, 94, 0.1) !important;
}

.reveg-chatbot-root .chat-feedback-button.active.copy-success .chat-feedback-icon {
  color: #22c55e !important;
}

.reveg-chatbot-root .chat-feedback-icon {
  width: 20px !important;
  height: 20px !important;
  color: #666 !important;
}

.reveg-chatbot-root .chat-feedback-button:hover .chat-feedback-icon {
  color: #007AFF !important;
}

.reveg-chatbot-root .chat-feedback-button:disabled .chat-feedback-icon {
  color: #ccc !important;
}

/* Chat Metadata */
.chat-metadata {
  background: #f8f9fa !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 12px !important;
  margin-top: 8px !important;
  max-width: 300px !important;
}

.chat-metadata-header {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #374151 !important;
}

.chat-metadata-icon {
  width: 14px !important;
  height: 14px !important;
  color: #10B981 !important;
}

.chat-metadata-row {
  display: flex !important;
  justify-content: space-between !important;
  margin-bottom: 4px !important;
  font-size: 12px !important;
}

/* Chat Entities */
.chat-entities {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

.chat-entity-tag {
  background: #f0f7ff !important;
  color: #007AFF !important;
  border: 1px solid #007AFF !important;
  border-radius: 12px !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

/* Chat Sources */
.chat-sources {
  margin-top: 8px !important;
  max-width: 300px !important;
}

.chat-sources-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 12px !important;
  background: #f8f9fa !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  color: #374151 !important;
  cursor: pointer !important;
  width: 100% !important;
  justify-content: space-between !important;
}

.chat-sources-icon,
.chat-sources-chevron {
  width: 12px !important;
  height: 12px !important;
  flex-shrink: 0 !important;
}

.chat-sources-list {
  margin-top: 4px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

.chat-source {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  background: white !important;
  border-bottom: 1px solid #f3f4f6 !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}

.chat-source:last-child {
  border-bottom: none !important;
}

.chat-source-icon {
  width: 12px !important;
  height: 12px !important;
  color: #6b7280 !important;
  flex-shrink: 0 !important;
  margin-top: 1px !important;
}

.chat-source-text {
  color: #374151 !important;
}

/* TYPING INDICATOR */
.reveg-chatbot-root .chat-message.typing .chat-typing {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 12px 16px !important;
  background: white !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 18px !important;
  border-bottom-left-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.reveg-chatbot-root .chat-typing-dot {
  width: 8px !important;
  height: 8px !important;
  background: #999 !important;
  border-radius: 50% !important;
  animation: chat-typing-pulse 1.5s ease-in-out infinite !important;
}

.reveg-chatbot-root .chat-typing-dot:nth-child(2) {
  animation-delay: 0.2s !important;
}

.reveg-chatbot-root .chat-typing-dot:nth-child(3) {
  animation-delay: 0.4s !important;
}

@keyframes chat-typing-pulse {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  30% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ==========================================================================
   LEGACY COMPATIBILITY: Keep old class names working temporarily
   ========================================================================== */

/* Map old message classes to new ones for backwards compatibility */
.reveg-chatbot-message {
  display: none !important; /* Hide old wrappers */
}

.reveg-chatbot-message-wrapper {
  display: none !important; /* Hide old wrappers */
}

.reveg-chatbot-message-content {
  display: none !important; /* Hide old wrappers */
}

.reveg-chatbot-message-text {
  display: none !important; /* Hide old bubbles */
}

/* Clean up old alignment classes */
.reveg-chatbot-content-align-left,
.reveg-chatbot-content-align-right {
  display: none !important;
}

/* ==========================================================================
   Hero Float Mode - Floating Card with Expansion
   ========================================================================== */

.reveg-chatbot-hero-float-container {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding: 20px !important;
  margin: 0 !important;
  background: transparent !important;
  z-index: 10 !important;
}

.reveg-chatbot-hero-float-card {
  background: white !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 800px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.reveg-chatbot-hero-float-card.compact {
  min-height: 280px !important;
}

.reveg-chatbot-hero-float-card.expanded {
  height: 500px !important;
  max-height: 500px !important;
}

/* Compact State Styles */
.reveg-chatbot-hero-float-compact {
  padding: 32px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  margin: 0 !important;
  background: #f8f3f8 !important;
}

.reveg-chatbot-hero-float-header {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.reveg-chatbot-hero-float-avatar {
  width: 48px !important;
  height: 48px !important;
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.reveg-chatbot-hero-float-avatar-icon {
  width: 24px !important;
  height: 24px !important;
  color: white !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.reveg-chatbot-hero-float-title {
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.reveg-chatbot-hero-float-title h3 {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  background: transparent !important;
  border: none !important;
}

.reveg-chatbot-hero-float-title p {
  font-size: 14px !important;
  color: #666 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  background: transparent !important;
  border: none !important;
}

.reveg-chatbot-hero-float-input-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.reveg-chatbot-hero-float-input-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: flex-end !important;
  background: white !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: border-color 0.2s ease !important;
}

.reveg-chatbot-hero-float-input-wrapper:focus-within {
  border-color: #007AFF !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1) !important;
}

.reveg-chatbot-hero-float-input {
  flex: 1 !important;
  border: none !important;
  background: transparent !important;
  padding: 20px 24px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: #1a1a1a !important;
  resize: none !important;
  outline: none !important;
  font-family: inherit !important;
  margin: 0 !important;
  min-height: 48px !important;
  max-height: 120px !important;
  overflow-y: auto !important;
}

.reveg-chatbot-hero-float-input::placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}

.reveg-chatbot-hero-float-send-button {
  background: #007AFF !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 14px !important;
  margin: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, transform 0.1s ease !important;
  min-width: 48px !important;
  height: 48px !important;
}

.reveg-chatbot-hero-float-send-button:hover:not(:disabled) {
  background: #0056b3 !important;
  transform: scale(1.05) !important;
}

.reveg-chatbot-hero-float-send-button:disabled {
  background: #e9ecef !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.reveg-chatbot-hero-float-send-icon {
  width: 18px !important;
  height: 18px !important;
  color: white !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.reveg-chatbot-hero-float-send-button:disabled .reveg-chatbot-hero-float-send-icon {
  color: #9ca3af !important;
}

.reveg-chatbot-hero-float-suggestions {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.reveg-chatbot-hero-float-suggestions-label {
  font-size: 13px !important;
  color: #64748b !important;
  font-weight: 500 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  background: transparent !important;
  border: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Hero Float Suggestion Chips - Ultra-Defensive CSS Isolation */
.reveg-chatbot-root .reveg-chatbot-hero-float-suggestion-chips,
[data-reveg-chatbot="true"] .reveg-chatbot-hero-float-suggestion-chips {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: 1fr 1fr !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  list-style: none !important;
  border: none !important;
  outline: none !important;
}

.reveg-chatbot-root .reveg-chatbot-hero-float-suggestion-chip,
[data-reveg-chatbot="true"] .reveg-chatbot-hero-float-suggestion-chip {
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  font-size: 14px !important;
  color: #334155 !important;
  cursor: pointer !important;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  line-height: 1.5 !important;
  white-space: normal !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  text-align: left !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  box-sizing: border-box !important;
  height: auto !important;
  width: 100% !important;
  min-height: auto !important;
  max-height: none !important;
  vertical-align: baseline !important;
  float: none !important;
  clear: none !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: auto !important;
}

.reveg-chatbot-root .reveg-chatbot-hero-float-suggestion-chip::before,
[data-reveg-chatbot="true"] .reveg-chatbot-hero-float-suggestion-chip::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.15s ease !important;
  z-index: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.reveg-chatbot-root .reveg-chatbot-hero-float-suggestion-chip::after,
[data-reveg-chatbot="true"] .reveg-chatbot-hero-float-suggestion-chip::after {
  display: none !important;
}

.reveg-chatbot-root .reveg-chatbot-hero-float-suggestion-chip:hover,
[data-reveg-chatbot="true"] .reveg-chatbot-hero-float-suggestion-chip:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border-color: #3b82f6 !important;
  color: #1e293b !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-1px) !important;
}

.reveg-chatbot-root .reveg-chatbot-hero-float-suggestion-chip:hover::before,
[data-reveg-chatbot="true"] .reveg-chatbot-hero-float-suggestion-chip:hover::before {
  opacity: 1 !important;
}

.reveg-chatbot-root .reveg-chatbot-hero-float-suggestion-chip:active,
[data-reveg-chatbot="true"] .reveg-chatbot-hero-float-suggestion-chip:active {
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(0) !important;
}

/* Hero Float Suggestion Icon Styles - Ultra-Defensive */
.reveg-chatbot-root .reveg-chatbot-hero-float-suggestion-icon-wrapper,
[data-reveg-chatbot="true"] .reveg-chatbot-hero-float-suggestion-icon-wrapper {
  flex-shrink: 0 !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  position: relative !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  text-decoration: none !important;
  outline: none !important;
}

.reveg-chatbot-root .reveg-chatbot-hero-float-suggestion-icon,
[data-reveg-chatbot="true"] .reveg-chatbot-hero-float-suggestion-icon {
  width: 20px !important;
  height: 20px !important;
  color: #007AFF !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  transition: color 0.15s ease !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  vertical-align: baseline !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.reveg-chatbot-root .reveg-chatbot-hero-float-suggestion-chip:hover .reveg-chatbot-hero-float-suggestion-icon,
[data-reveg-chatbot="true"] .reveg-chatbot-hero-float-suggestion-chip:hover .reveg-chatbot-hero-float-suggestion-icon {
  color: #0056CC !important;
}

.reveg-chatbot-root .reveg-chatbot-hero-float-suggestion-text,
[data-reveg-chatbot="true"] .reveg-chatbot-hero-float-suggestion-text {
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  font-size: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  position: relative !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  text-decoration: none !important;
  text-align: left !important;
  vertical-align: baseline !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  outline: none !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Expanded State Styles */
.reveg-chatbot-hero-float-expanded {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.reveg-chatbot-hero-float-expanded-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 20px 24px !important;
  border-bottom: 1px solid #e9ecef !important;
  background: #f8f9fa !important;
  margin: 0 !important;
}

.reveg-chatbot-hero-float-expanded-header h3 {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
}

.reveg-chatbot-hero-float-status {
  font-size: 12px !important;
  color: #28a745 !important;
  font-weight: 500 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  background: transparent !important;
  border: none !important;
}

.reveg-chatbot-hero-float-messages {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 20px 24px !important;
  margin: 0 !important;
  background: #f8f3f8 !important;
  border: none !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
}

.reveg-chatbot-hero-float-input-area {
  border-top: none !important;
  padding: 3px 24px 16px 24px !important;
  background: #f8f3f8 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
  margin-top: auto !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .reveg-chatbot-hero-float-container {
    padding: 16px 0 !important;
  }
  
  .reveg-chatbot-hero-float-card {
    max-width: 100% !important;
    border-radius: 12px !important;
  }

  .reveg-chatbot-hero-float-card.expanded {
    height: 400px !important;
    max-height: 400px !important;
  }
  
  .reveg-chatbot-hero-float-compact {
    padding: 24px !important;
    gap: 20px !important;
    background: #f8f3f8 !important;
  }
  
  .reveg-chatbot-hero-float-title h3 {
    font-size: 18px !important;
  }
  
  .reveg-chatbot-hero-float-input {
    font-size: 16px !important;
    padding: 16px !important;
    line-height: 1.4 !important;
    min-height: 50px !important;
  }
  
  .reveg-chatbot-hero-float-input-wrapper {
    align-items: center !important;
  }
  
  .reveg-chatbot-root .reveg-chatbot-hero-float-suggestion-chips,
  [data-reveg-chatbot="true"] .reveg-chatbot-hero-float-suggestion-chips {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  .reveg-chatbot-root .reveg-chatbot-hero-float-suggestion-chip,
  [data-reveg-chatbot="true"] .reveg-chatbot-hero-float-suggestion-chip {
    padding: 14px 16px !important;
    font-size: 13px !important;
    gap: 10px !important;
  }
  
  .reveg-chatbot-root .reveg-chatbot-hero-float-suggestion-icon,
  [data-reveg-chatbot="true"] .reveg-chatbot-hero-float-suggestion-icon {
    width: 18px !important;
    height: 18px !important;
  }
  
  /* Hide hero-float avatar on mobile (additional specificity) */
  .reveg-chatbot-hero-float-avatar {
    display: none !important;
  }
  
  .reveg-chatbot-hero-float-messages {
    padding: 16px !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
  }
  
  .reveg-chatbot-hero-float-input-area {
    padding: 3px 16px 12px 16px !important;
    background: #f8f3f8 !important;
    border-top: none !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
  }
}

/* ===== CSS ANIMATIONS (Replacing Framer Motion) ===== */

/* Message bubble entrance animation */
.chat-message {
  animation: messageEnter 0.15s ease-out !important;
}

@keyframes messageEnter {
  from {
    opacity: 0 !important;
    transform: translateY(10px) scale(0.98) !important;
  }
  to {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }
}

/* Clarification options entrance animation */
.clarification-options-wrapper {
  animation: clarificationEnter 0.15s ease-out !important;
}

@keyframes clarificationEnter {
  from {
    opacity: 0 !important;
    transform: translateY(10px) !important;
  }
  to {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

/* Hero-float state transitions */
.reveg-chatbot-hero-float-compact,
.reveg-chatbot-hero-float-expanded {
  animation: stateTransition 0.15s ease-in-out !important;
}

@keyframes stateTransition {
  from {
    opacity: 0 !important;
    transform: translateY(10px) !important;
  }
  to {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

/* Floating chat open animation */
.reveg-chatbot-container.is-open {
  animation: chatOpen 0.15s ease-out !important;
}

@keyframes chatOpen {
  from {
    opacity: 0 !important;
    transform: scale(0.95) translateY(20px) !important;
  }
  to {
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
  }
}

/* Smooth transitions for interactive elements */
.reveg-chatbot-hero-float-card {
  transition: all 0.15s ease-in-out !important;
}

/* Ensure animations work on mobile */
@media (max-width: 768px) {
  .reveg-chatbot-container.is-open {
    border-radius: 0px !important;
  }
  
  @keyframes chatOpen {
    from {
      opacity: 0 !important;
      transform: scale(0.95) translateY(20px) !important;
    }
    to {
      opacity: 1 !important;
      transform: scale(1) translateY(0) !important;
    }
  }
}

/* Performance optimization: Use transform3d for GPU acceleration */
.chat-message,
.clarification-options-wrapper,
.reveg-chatbot-hero-float-compact,
.reveg-chatbot-hero-float-expanded,
.reveg-chatbot-container.is-open {
  transform: translate3d(0, 0, 0) !important;
  backface-visibility: hidden !important;
  perspective: 1000px !important;
}

 
