/* Leo AI Assistant Styles */
:root {
  --leo-primary: #667eea;
  --leo-secondary: #764ba2;
  --leo-accent: #4CAF50;
  --leo-error: #f44336;
  --leo-warning: #ff9800;
  --leo-bg-light: #ffffff;
  --leo-bg-dark: #1a1a1a;
  --leo-text-light: #333333;
  --leo-text-dark: #ffffff;
  --leo-border-light: #e0e0e0;
  --leo-border-dark: #333333;
  --leo-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --leo-shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.25);
  --leo-border-radius: 12px;
  --leo-border-radius-small: 8px;
  --leo-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --leo-z-index: 999999; /* Increased z-index to ensure it's above all other elements */
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --leo-bg-light: #2a2a2a;  /* Dark background */
    --leo-bg-dark: #1a1a1a;   /* Darker background */
    --leo-text-light: #ffffff; /* White text for dark mode */
    --leo-text-dark: #cccccc;  /* Light gray text */
    --leo-border-light: #444444; /* Dark borders */
    --leo-border-dark: #555555;  /* Slightly lighter borders */
  }
  
  /* Override bot message colors for dark mode */
  .leo-message.bot .leo-message-bubble {
    background: #3a3a3a !important;
    color: #ffffff !important;
  }
}

/* Leo Chat Widget Container */
leo-chat {
  display: block;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--leo-z-index) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
}

/* Ensure Leo widget is always on top */
leo-chat,
leo-chat *,
leo-chat .leo-launcher,
leo-chat .leo-chat-panel,
leo-chat .leo-close-btn {
  z-index: var(--leo-z-index) !important;
}

/* Override any competing z-index values */
leo-chat {
  z-index: 999999 !important;
}

leo-chat .leo-chat-panel {
  z-index: 999999 !important;
}

leo-chat .leo-close-btn {
  z-index: 999999 !important;
}

/* Floating Launcher Button */
.leo-launcher {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--leo-primary), var(--leo-secondary));
  background-image: url('../../../images/leo.png');
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  cursor: pointer;
  box-shadow: var(--leo-shadow);
  transition: var(--leo-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 24px;
  position: relative;
  overflow: hidden;
}

.leo-launcher:hover {
  transform: translateY(-2px);
  box-shadow: var(--leo-shadow-heavy);
}

.leo-launcher:focus {
  outline: 3px solid var(--leo-accent);
  outline-offset: 2px;
}

.leo-launcher.has-notification::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  background: var(--leo-error);
  border-radius: 50%;
  border: 2px solid white;
}

/* Chat Panel */
.leo-chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 600px;
  max-height: calc(100vh - 140px);
  background: white; /* White background for better readability */
  border-radius: var(--leo-border-radius);
  box-shadow: var(--leo-shadow-heavy);
  border: 1px solid #e0e0e0; /* Light border for better definition */
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: var(--leo-transition);
  pointer-events: none;
  color: #2c3e50; /* Ensure all text is dark by default */
  z-index: 999999 !important; /* Force highest z-index */
}

.leo-chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Chat Header */
.leo-chat-header {
  padding: 20px;
  background: linear-gradient(135deg, var(--leo-primary), var(--leo-secondary));
  color: white;
  border-radius: var(--leo-border-radius) var(--leo-border-radius) 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  position: relative;
}

/* Show close button more prominently on header hover */
.leo-chat-header:hover .leo-close-btn {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.leo-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: url('../../../images/leo.png') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 2px solid var(--leo-primary);
}

.leo-header-content {
  flex: 1;
}

.leo-header-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.leo-header-status {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}



/* Close Button - Properly scoped to Leo widget only */
.leo-chat-panel .leo-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  transition: var(--leo-transition);
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: closeButtonSlideIn 0.3s ease-out 0.5s both;
  opacity: 1 !important; /* Force visibility */
  visibility: visible !important; /* Force visibility */
  pointer-events: auto !important; /* Ensure clickable */
}

.leo-chat-panel .leo-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.leo-close-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Messages Area */
.leo-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: white; /* Ensure white background */
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.leo-messages::-webkit-scrollbar {
  width: 6px;
}

.leo-messages::-webkit-scrollbar-track {
  background: transparent;
}

.leo-messages::-webkit-scrollbar-thumb {
  background: var(--leo-border-light);
  border-radius: 3px;
}

/* Message Bubbles */
.leo-message {
  display: flex;
  gap: 12px;
  max-width: 85%;
  animation: messageSlideIn 0.3s ease-out;
}

.leo-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.leo-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 4px;
}

.leo-message.bot .leo-message-avatar {
  background: url('../../../images/leo.png') center/cover;
  border: 2px solid var(--leo-primary);
  color: transparent;
}

.leo-message.user .leo-message-avatar {
  background: var(--leo-border-light);
  color: var(--leo-text-light);
}

.leo-message-content {
  flex: 1;
}

.leo-message-bubble {
  padding: 12px 16px;
  border-radius: var(--leo-border-radius-small);
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.leo-message.bot .leo-message-bubble {
  background: #f8f9fa; /* Light gray background for bot messages */
  color: #2c3e50; /* Dark readable text */
  border-bottom-left-radius: 4px;
  border: 1px solid #e9ecef; /* Subtle border for definition */
}

.leo-message.user .leo-message-bubble {
  background: linear-gradient(135deg, var(--leo-primary), var(--leo-secondary));
  color: white;  /* White text on colored background */
  border-bottom-right-radius: 4px;
  border: none; /* No border needed for colored background */
}

.leo-message-time {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 4px;
  text-align: right;
}

.leo-message.bot .leo-message-time {
  text-align: left;
}

/* Typing Indicator */
.leo-typing {
  display: flex;
  gap: 12px;
  max-width: 85%;
}

.leo-typing .leo-message-bubble {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px;
}

.leo-typing-dots {
  display: flex;
  gap: 4px;
}

.leo-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leo-primary);
  animation: typingPulse 1.4s infinite;
}

.leo-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.leo-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Quick Replies */
.leo-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.leo-quick-reply {
  background: white;
  border: 2px solid var(--leo-primary); /* Stronger border */
  color: var(--leo-primary);
  padding: 10px 16px; /* More padding for better touch targets */
  border-radius: 20px;
  font-size: 14px; /* Slightly larger text */
  font-weight: 500; /* Medium weight for better readability */
  cursor: pointer;
  transition: var(--leo-transition);
}

.leo-quick-reply:hover {
  background: var(--leo-primary);
  color: white;
  transform: translateY(-1px); /* Subtle lift effect */
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.leo-quick-reply:focus {
  outline: 2px solid var(--leo-accent);
  outline-offset: 2px;
}

/* Card Components */
.leo-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.leo-card {
  background: white;
  border: 1px solid var(--leo-border-light);
  border-radius: var(--leo-border-radius-small);
  padding: 16px;
  transition: var(--leo-transition);
}

.leo-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.leo-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--leo-text-light);
}

.leo-card-subtitle {
  font-size: 14px;
  color: var(--leo-primary);
  margin: 0 0 8px 0;
}

.leo-card-description {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 12px 0;
  color: var(--leo-text-light);
}

.leo-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.leo-card-features li {
  font-size: 13px;
  padding: 2px 0;
  color: var(--leo-text-light);
  position: relative;
  padding-left: 16px;
}

.leo-card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--leo-accent);
  font-weight: bold;
}

.leo-card-action {
  background: var(--leo-primary);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: var(--leo-border-radius-small);
  font-size: 14px;
  cursor: pointer;
  transition: var(--leo-transition);
  width: 100%;
}

.leo-card-action:hover {
  background: var(--leo-secondary);
}

.leo-card-action:focus {
  outline: 2px solid var(--leo-accent);
  outline-offset: 2px;
}

/* Lead Capture Form */
.leo-form {
  background: white;
  border: 1px solid var(--leo-border-light);
  border-radius: var(--leo-border-radius-small);
  padding: 20px;
  margin-top: 12px;
}

.leo-form-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--leo-text-light);
}

.leo-form-group {
  margin-bottom: 16px;
}

.leo-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--leo-text-light);
}

.leo-form-input,
.leo-form-select,
.leo-form-textarea {
  width: 100%;
  padding: 12px 16px; /* More padding */
  border: 2px solid #e1e5e9; /* Stronger border */
  border-radius: var(--leo-border-radius-small);
  font-size: 14px;
  color: #2c3e50; /* Dark readable text */
  background: white; /* White background */
  transition: var(--leo-transition);
  box-sizing: border-box;
}

.leo-form-input:focus,
.leo-form-select:focus,
.leo-form-textarea:focus {
  outline: none;
  border-color: var(--leo-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); /* Softer focus ring */
}

.leo-form-textarea {
  resize: vertical;
  min-height: 80px;
}

.leo-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0;
}

.leo-form-checkbox input {
  margin-top: 2px;
}

.leo-form-checkbox label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--leo-text-light);
}

.leo-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.leo-form-submit {
  background: var(--leo-primary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: var(--leo-border-radius-small);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--leo-transition);
  flex: 1;
}

.leo-form-submit:hover {
  background: var(--leo-secondary);
}

.leo-form-submit:disabled {
  background: var(--leo-border-light);
  cursor: not-allowed;
}

.leo-form-cancel {
  background: none;
  color: var(--leo-text-light);
  border: 1px solid var(--leo-border-light);
  padding: 12px 20px;
  border-radius: var(--leo-border-radius-small);
  font-size: 14px;
  cursor: pointer;
  transition: var(--leo-transition);
}

.leo-form-cancel:hover {
  background: var(--leo-border-light);
}

/* Message Composer */
.leo-composer {
  padding: 20px;
  background: white; /* White background for input area */
  border-top: 1px solid #e0e0e0; /* Light border */
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.leo-input-wrapper {
  flex: 1;
  position: relative;
}

.leo-composer-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d0d7de; /* Subtle border */
  border-radius: 24px;
  font-size: 14px;
  color: #2c3e50; /* Dark readable text */
  background: white; /* White background */
  resize: none;
  max-height: 120px;
  min-height: 44px;
  transition: var(--leo-transition);
  box-sizing: border-box;
}

.leo-composer-input:focus {
  outline: none;
  border-color: var(--leo-primary);
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.leo-composer-input::placeholder {
  color: #6b7280; /* More visible placeholder text */
}

.leo-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--leo-primary);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: var(--leo-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.leo-send-btn:hover {
  background: var(--leo-secondary);
  transform: scale(1.05);
}

.leo-send-btn:disabled {
  background: var(--leo-border-light);
  cursor: not-allowed;
  transform: none;
}

.leo-send-btn:focus {
  outline: 2px solid var(--leo-accent);
  outline-offset: 2px;
}

/* Loading States */
.leo-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--leo-text-light);
}

.leo-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--leo-border-light);
  border-top: 2px solid var(--leo-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 12px;
}

/* Error States */
.leo-error {
  background: #ffebee;
  border: 1px solid #ffcdd2;
  border-radius: var(--leo-border-radius-small);
  padding: 16px;
  margin-top: 12px;
}

.leo-error-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--leo-error);
  margin: 0 0 8px 0;
}

.leo-error-message {
  font-size: 13px;
  color: #d32f2f;
  margin: 0;
}

/* Success States */
.leo-success {
  background: #e8f5e8;
  border: 1px solid #c8e6c9;
  border-radius: var(--leo-border-radius-small);
  padding: 16px;
  margin-top: 12px;
}

.leo-success-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--leo-accent);
  margin: 0 0 8px 0;
}

.leo-success-message {
  font-size: 13px;
  color: #2e7d32;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
  leo-chat {
    right: 10px;
    bottom: 10px;
  }
  
  .leo-chat-panel {
    width: calc(100vw - 20px);
    height: calc(100vh - 100px);
    bottom: 70px;
    right: -10px;
  }
  
  .leo-launcher {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .leo-chat-header {
    padding: 16px;
    min-height: 70px;
  }
  
  /* Adjust close button for mobile */
  .leo-close-btn {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .leo-messages {
    padding: 16px;
  }
  
  .leo-composer {
    padding: 16px;
  }
}

/* Global override to ensure Leo is always on top of everything */
leo-chat,
leo-chat .leo-launcher,
leo-chat .leo-chat-panel,
leo-chat .leo-close-btn,
leo-chat .leo-messages,
leo-chat .leo-composer {
  z-index: 2147483647 !important; /* Maximum possible z-index value */
}

/* Ensure Leo widget doesn't conflict with any filter components */
@media (min-width: 481px) {
  /* Move Leo widget slightly left if there are conflicts */
  leo-chat.leo-avoid-overlap {
    right: 80px;
  }
  
  leo-chat.leo-avoid-overlap .leo-chat-panel {
    right: 0;
  }
}

/* Animations */
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typingPulse {
  0%, 60%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  30% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes closeButtonSlideIn {
  from {
    opacity: 0;
    transform: translateX(10px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --leo-primary: #0000ff;
    --leo-secondary: #000080;
    --leo-accent: #008000;
    --leo-error: #ff0000;
    --leo-border-light: #000000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  leo-chat {
    display: none !important;
  }
}

/* Text Color Fixes - Ensure text is always visible */
leo-chat * {
  color: inherit;
}

leo-chat .leo-chat-panel {
  background: white !important; /* Force white background */
  color: #2c3e50; /* Dark readable text */
}

leo-chat .leo-messages {
  background: white !important; /* Force white background for messages area */
}

leo-chat .leo-message-bubble {
  color: inherit;
}

leo-chat .leo-message.bot .leo-message-bubble {
  background: #f8f9fa !important; /* Light gray background */
  color: #2c3e50 !important; /* Dark readable text */
  border: 1px solid #e9ecef; /* Light border */
}

leo-chat .leo-message.user .leo-message-bubble {
  background: linear-gradient(135deg, var(--leo-primary), var(--leo-secondary)) !important;
  color: white !important; /* White text on colored background */
}

leo-chat .leo-composer {
  background: white !important; /* White background for input area */
  border-top: 1px solid #e0e0e0; /* Light border */
}

leo-chat input, 
leo-chat textarea, 
leo-chat select {
  color: #2c3e50 !important; /* Dark readable text */
  background: white !important; /* White background */
  border: 2px solid #e1e5e9 !important; /* Light border */
}

leo-chat .leo-quick-reply {
  background: white !important;
  color: var(--leo-primary) !important;
  border: 2px solid var(--leo-primary) !important;
}

/* Remove dark mode overrides for consistency */
@media (prefers-color-scheme: dark) {
  leo-chat .leo-chat-panel {
    background: white !important; /* Keep white background even in dark mode */
    color: #2c3e50 !important;
  }
  
  leo-chat .leo-messages {
    background: white !important;
  }
  
  leo-chat input, 
  leo-chat textarea, 
  leo-chat select {
    color: #2c3e50 !important;
    background: white !important;
    border: 2px solid #e1e5e9 !important;
  }
  
  leo-chat .leo-message.bot .leo-message-bubble {
    background: #f8f9fa !important;
    color: #2c3e50 !important;
  }
}

/* Global override to prevent white text on white background */
leo-chat *,
leo-chat *:before,
leo-chat *:after {
  color: inherit;
}

/* Ensure all text elements have proper contrast */
leo-chat .leo-chat-panel * {
  color: #2c3e50;
}

/* Override any remaining white text (except on colored backgrounds) */
leo-chat :not(.leo-chat-header):not(.leo-message.user .leo-message-bubble):not(.leo-form-submit):not(.leo-send-btn):not(.leo-launcher) * {
  color: #2c3e50 !important;
}

/* Specific overrides for elements that should keep white text */
leo-chat .leo-chat-header,
leo-chat .leo-chat-header *,
leo-chat .leo-message.user .leo-message-bubble,
leo-chat .leo-message.user .leo-message-bubble *,
leo-chat .leo-form-submit,
leo-chat .leo-form-submit *,
leo-chat .leo-send-btn,
leo-chat .leo-send-btn *,
leo-chat .leo-launcher,
leo-chat .leo-launcher * {
  color: white !important;
}

/* Quick reply buttons on hover should have white text */
leo-chat .leo-quick-reply:hover,
leo-chat .leo-quick-reply:hover * {
  color: white !important;
}

/* Auto Welcome Popup Styles */
.leo-welcome-popup {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.leo-welcome-popup.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.leo-welcome-popup.hide {
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
}

.leo-popup-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e0e0;
  padding: 20px;
  max-width: 320px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}

.leo-popup-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--leo-primary), var(--leo-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--leo-primary);
  overflow: hidden;
}

.leo-popup-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.leo-popup-message {
  flex: 1;
}

.leo-popup-message p {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.4;
  color: #2c3e50;
  font-weight: 500;
}

.leo-popup-chat-btn {
  background: linear-gradient(135deg, var(--leo-primary), var(--leo-secondary));
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.leo-popup-chat-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.leo-popup-close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 10;
  width: auto;
  height: auto;
  display: block;
  visibility: visible;
  opacity: 1;
}

.leo-popup-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #666;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .leo-welcome-popup {
    right: 10px;
    left: 10px;
    bottom: 90px;
  }
  
  .leo-popup-content {
    max-width: none;
    margin: 0 10px;
  }
}
