/** Shopify CDN: Minification failed

Line 536:8 Expected identifier but found whitespace
Line 536:10 Unexpected "{"
Line 536:19 Expected ":"

**/
/* Chat Widget Styles - Modern, Lightweight, and Responsive */

/* CSS Variables for easy customization and theme integration */
:root {
  /* Ardor Brand Colors */
  --brand-primary: #038426;
  --brand-secondary: #121212;
  --brand-accent: #D4AF37;
  --brand-light: #FAF7F2;
  --brand-gray: #503f39;
  --brand-silver: #8C8C8C;

  /* Chat Widget Dimensions */
  --chat-bubble-size: 60px;
  --chat-window-width: 380px;
  --chat-window-height: 500px;

  /* Design System */
  --border-radius: 12px;
  --border-radius-small: 8px;
  --border-radius-large: 16px;
  --transition-speed: 0.3s;
  --transition-speed-fast: 0.2s;
  --transition-speed-slow: 0.4s;

  /* Luxury Shadows */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.18);
  --shadow-luxury: 0 10px 40px rgba(3, 132, 38, 0.15);
  --shadow-accent: 0 2px 8px rgba(212, 175, 55, 0.3);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(12px);

  /* Typography */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Z-Index Management */
  --z-index-chat: 1000;
  --z-index-bubble: 1001;
  --z-dropdown: 1002;
}

/* Base container - positioned fixed at bottom right */
.chat-widget-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--z-index-chat);
  font-family: var(--font-primary);
  isolation: isolate; /* Creates new stacking context */
  font-size: 14px;
  line-height: 1.5;
}

/* Chat Bubble Button */
.chat-bubble {
  position: relative;
  width: var(--chat-bubble-size);
  height: var(--chat-bubble-size);
  background: linear-gradient(135deg, var(--brand-primary), #0a6b20);
  border: 2px solid var(--brand-accent);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-luxury), var(--shadow-accent);
  transition: all var(--transition-speed-fast) cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(1) translateY(0);
  z-index: var(--z-index-bubble);
  backdrop-filter: var(--glass-blur);
  overflow: hidden;
}

.chat-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform var(--transition-speed-slow);
}

.chat-bubble:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: var(--shadow-heavy), var(--shadow-luxury), 0 0 20px rgba(3, 132, 38, 0.3);
}

.chat-bubble:hover::before {
  transform: translateX(100%);
}

.chat-bubble:active {
  transform: scale(0.96) translateY(0);
  box-shadow: var(--shadow-medium), var(--shadow-accent);
}

.chat-bubble:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
  box-shadow: var(--shadow-luxury), 0 0 0 6px rgba(212, 175, 55, 0.2);
}

.chat-bubble[aria-expanded="true"] {
  background: linear-gradient(135deg, var(--brand-secondary), #1a1a1a);
  border-color: var(--brand-accent);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: var(--shadow-heavy), var(--shadow-accent), 0 0 15px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: var(--shadow-heavy), var(--shadow-accent), 0 0 25px rgba(212, 175, 55, 0.6); }
}

/* Notification dot */
.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #ff4757, #ff6b7a);
  border: 2px solid var(--brand-accent);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition-speed-fast) cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: var(--shadow-accent);
  animation: none;
}

.notification-dot.active {
  opacity: 1;
  transform: scale(1);
  animation: notificationPulse 2s ease-in-out infinite;
}

@keyframes notificationPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: var(--shadow-accent), 0 0 0 0 rgba(255, 71, 87, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: var(--shadow-accent), 0 0 0 8px rgba(255, 71, 87, 0);
  }
}

/* Chat Icon */
.chat-icon {
  width: 24px;
  height: 24px;
  transition: all var(--transition-speed-fast) cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.chat-bubble[aria-expanded="true"] .chat-icon {
  transform: rotate(15deg) scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.4));
}

.chat-bubble:hover .chat-icon {
  transform: scale(1.05);
}

/* Chat Window */
.chat-window {
  position: absolute;
  bottom: calc(var(--chat-bubble-size) + 10px);
  right: 0;
  width: var(--chat-window-width);
  height: var(--chat-window-height);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-luxury), 0 0 0 1px rgba(212, 175, 55, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.9);
  transition: all var(--transition-speed-slow) cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-window[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  animation: windowEntrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes windowEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9) rotateX(-5deg);
  }
  50% {
    transform: translateY(-5px) scale(1.02) rotateX(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
  }
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--brand-secondary), #1a1a1a);
  color: white;
  border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
  border-bottom: 1px solid var(--brand-accent);
  position: relative;
  overflow: hidden;
}

.chat-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.3; transform: translateX(-100%); }
  50% { opacity: 0.8; transform: translateX(100%); }
}

.header-content {
  flex: 1;
}

.chat-title {
  margin: 0 0 6px 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.chat-subtitle {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.4;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.8); }
}

.close-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius-small);
  transition: all var(--transition-speed-fast) cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--brand-accent);
  transform: scale(1.05);
  box-shadow: var(--shadow-accent);
}

.close-button:active {
  transform: scale(0.95);
}

.close-button:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

/* Chat Messages Container */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, var(--brand-light) 0%, #ffffff 100%);
  scroll-behavior: smooth;
  position: relative;
}

.chat-messages::before {
  content: '';
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(180deg, var(--brand-light) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Custom scrollbar for messages */
.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-primary), rgba(3, 132, 38, 0.6));
  border-radius: 4px;
  border: 1px solid rgba(3, 132, 38, 0.1);
  transition: all var(--transition-speed-fast);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-primary), rgba(3, 132, 38, 0.8));
  border-color: var(--brand-primary);
}

/* Message Styles */
.message {
  display: flex;
  gap: 14px;
  max-width: 85%;
  animation: messageSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

@keyframes messageSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.message:hover {
  transform: translateY(-1px);
  transition: transform var(--transition-speed-fast);
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-primary), #0a6b20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  border: 2px solid var(--brand-accent);
  box-shadow: var(--shadow-medium), var(--shadow-accent);
  position: relative;
  overflow: hidden;
}

.message-avatar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform var(--transition-speed-slow);
}

.message:hover .message-avatar::before {
  transform: translateX(100%);
}

.user-message .message-avatar {
  background: linear-gradient(135deg, var(--brand-secondary), #1a1a1a);
  border-color: var(--brand-accent);
}

.bot-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--brand-accent);
}

.message-content {
  background: white;
  padding: 14px 18px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light), 0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  backdrop-filter: blur(8px);
  transition: all var(--transition-speed-fast);
}

.message-content:hover {
  box-shadow: var(--shadow-medium), 0 0 0 1px rgba(3, 132, 38, 0.1);
}

.message-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--brand-secondary);
  font-weight: 400;
}

.message-content::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.bot-message .message-content::before {
  left: -8px;
  top: 12px;
  border-width: 8px 8px 8px 0;
  border-color: transparent white transparent transparent;
}

.user-message .message-content {
  background: linear-gradient(135deg, var(--brand-primary), #0a6b20);
  color: white;
  box-shadow: var(--shadow-medium), var(--shadow-accent);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.user-message .message-content p {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.user-message .message-content::before {
  right: -9px;
  top: 14px;
  border-width: 9px 0 9px 9px;
  border-color: transparent transparent transparent var(--brand-primary);
}

/* Chat message images */
.chat-message-image {
  margin: 8px 0;
  border-radius: var(--border-radius-small);
  overflow: hidden;
  max-width: 250px;
}

.chat-message-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-small);
  transition: transform var(--transition-speed-fast);
}

.chat-message-image img:hover {
  transform: scale(1.02);
}

/* Message content styling for HTML content */
.message-content a {
  color: {{ section.settings.bubble_color | default: '#007bff' }};
  text-decoration: underline;
}

.message-content a:hover {
  text-decoration: none;
}

.message-content strong {
  font-weight: 600;
}

.message-content em {
  font-style: italic;
}

.message-content br {
  display: block;
  margin: 4px 0;
  content: "";
}

/* Chat Input Container */
.chat-input-container {
  padding: 16px 20px;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-input-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: none;
  border-radius: var(--border-radius-large);
  transition: all var(--transition-speed-fast) cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-light);
}

.input-wrapper:focus-within {
  background: white;
  box-shadow: var(--shadow-medium);
  transform: translateY(-1px);
}

@keyframes inputGlow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

.chat-input {
  flex: 1;
  background: none;
  border: none;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  min-height: 24px;
  max-height: 120px;
  font-family: var(--font-primary);
  color: var(--brand-secondary);
  transition: all var(--transition-speed-fast);
}

.chat-input::placeholder {
  color: var(--brand-silver);
  font-style: italic;
  transition: opacity var(--transition-speed-fast);
}

.chat-input:focus::placeholder {
  opacity: 0.7;
}

.chat-input:focus {
  outline: none;
}

.chat-input:valid {
  color: var(--brand-secondary);
}

.send-button {
  background: linear-gradient(135deg, var(--brand-primary), #0a6b20);
  border: 2px solid var(--brand-accent);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed-fast) cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin: 4px;
  box-shadow: var(--shadow-medium), var(--shadow-accent);
  position: relative;
  overflow: hidden;
}

.send-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform var(--transition-speed-slow);
}

.send-button:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--brand-secondary), #1a1a1a);
  transform: scale(1.1) translateY(-1px);
  box-shadow: var(--shadow-heavy), 0 0 15px rgba(3, 132, 38, 0.3);
}

.send-button:hover:not(:disabled)::before {
  transform: translateX(100%);
}

.send-button:active:not(:disabled) {
  transform: scale(0.95) translateY(0);
  box-shadow: var(--shadow-medium), var(--shadow-accent);
}

.send-button:disabled {
  background: var(--brand-silver);
  border-color: rgba(0, 0, 0, 0.2);
  cursor: not-allowed;
  transform: scale(1);
  box-shadow: var(--shadow-light);
  opacity: 0.6;
}

.send-button:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2), var(--shadow-medium), var(--shadow-accent);
}

.send-button svg {
  width: 18px;
  height: 18px;
  transition: all var(--transition-speed-fast);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.send-button:hover:not(:disabled) svg {
  transform: translateX(2px);
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.4));
}

/* Quick Actions */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 8px;
}

.quick-action-button {
  background: white;
  border: 1px solid var(--brand-primary);
  color: var(--brand-primary);
  padding: 8px 14px;
  border-radius: var(--border-radius-large);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-light);
}

.quick-action-button:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium), var(--shadow-accent);
}

.quick-action-button:active {
  transform: translateY(0);
}

.quick-action-icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

/* Enhanced Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 16px 20px;
  align-items: center;
  position: relative;
}

.typing-indicator::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent));
  border-radius: 1px;
  animation: typingPulse 1.5s ease-in-out infinite;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  border-radius: 50%;
  animation: typingBounceEnhanced 1.4s infinite ease-in-out;
  box-shadow: 0 2px 4px rgba(3, 132, 38, 0.3);
  position: relative;
}

.typing-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  animation: typingGlow 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.28s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.14s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0s;
}

@keyframes typingBounceEnhanced {
  0%, 100% {
    transform: scale(0.5) translateY(0);
    opacity: 0.3;
    box-shadow: 0 1px 2px rgba(3, 132, 38, 0.2);
  }
  25% {
    transform: scale(1.1) translateY(-8px);
    opacity: 0.9;
    box-shadow: 0 4px 8px rgba(3, 132, 38, 0.4), 0 0 12px rgba(3, 132, 38, 0.2);
  }
  50% {
    transform: scale(0.9) translateY(0);
    opacity: 0.7;
    box-shadow: 0 2px 4px rgba(3, 132, 38, 0.3);
  }
  75% {
    transform: scale(0.7) translateY(-2px);
    opacity: 0.5;
    box-shadow: 0 1px 3px rgba(3, 132, 38, 0.25);
  }
}

@keyframes typingGlow {
  0%, 100% {
    opacity: 0;
    transform: scale(0.8);
  }
  25% {
    opacity: 1;
    transform: scale(1.2);
  }
  50% {
    opacity: 0.5;
    transform: scale(1);
  }
}

@keyframes typingPulse {
  0%, 100% {
    opacity: 0.3;
    height: 16px;
  }
  50% {
    opacity: 0.8;
    height: 24px;
  }
}

/* Enhanced typing indicator container animation */
.typing-indicator-message {
  animation: typingSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes typingSlideIn {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .chat-widget-container {
    bottom: 15px;
    right: 15px;
  }

  .chat-window {
    width: calc(100vw - 30px);
    max-width: 350px;
    height: calc(100vh - 120px);
    max-height: 600px;
    bottom: calc(var(--chat-bubble-size) + 8px);
  }

  .chat-messages {
    padding: 16px;
    gap: 12px;
  }

  .message {
    max-width: 90%;
  }

  .chat-header {
    padding: 12px 16px;
  }

  .chat-input-container {
    padding: 12px 16px;
  }

  .chat-message-image {
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .chat-widget-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }

  .chat-window {
    width: 100%;
    height: calc(100vh - 80px);
    bottom: calc(var(--chat-bubble-size) + 5px);
    right: auto;
    left: 0;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
  }

  .chat-bubble {
    position: fixed;
    bottom: 10px;
    right: 10px;
  }

  .chat-message-image {
    max-width: 180px;
  }
}

/* Loading animations */
.chat-loading {
  position: relative;
  overflow: hidden;
}

.chat-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(3, 132, 38, 0.1), transparent);
  animation: loadingShimmer 2s ease-in-out infinite;
}

@keyframes loadingShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Status animations */
.chat-status-online {
  animation: statusPulse 2s ease-in-out infinite;
}

.chat-status-away {
  animation: statusPulse 3s ease-in-out infinite;
}

.chat-status-busy {
  animation: statusPulse 1.5s ease-in-out infinite;
}

/* Message reactions */
.message-reactions {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(5px);
  transition: all var(--transition-speed-fast);
}

.message:hover .message-reactions {
  opacity: 1;
  transform: translateY(0);
}

.reaction-button {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-speed-fast);
}

.reaction-button:hover {
  background: var(--brand-primary);
  color: white;
  transform: scale(1.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .chat-window {
    border: 2px solid #000;
  }

  .message-content {
    border: 1px solid #000;
  }

  .quick-action-button {
    border: 2px solid #000;
  }

  .send-button {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Email Capture Modal Styles */
.email-capture-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.email-capture-content {
  background: var(--brand-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  width: 90%;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.email-capture-header h4 {
  color: var(--brand-secondary);
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.email-capture-header p {
  color: var(--brand-gray);
  margin: 0 0 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.email-capture-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius-small);
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.email-capture-form input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.email-capture-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.email-submit-btn,
.email-skip-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius-small);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.email-submit-btn {
  background: var(--brand-primary);
  color: white;
}

.email-submit-btn:hover {
  background: #027020;
  transform: translateY(-1px);
}

.email-skip-btn {
  background: transparent;
  color: var(--brand-gray);
  border: 1px solid #e0e0e0;
}

.email-skip-btn:hover {
  background: #f5f5f5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Print styles */
@media print {
  .chat-widget-container {
    display: none !important;
  }
}