/* Centrifugo Chat Widget Styles */
:root {
  /* Primary Color - Change this to customize the entire UI */
  --DLG-365-primary-color: #0d0864;
  --DLG-365-primary-color-light: #0d0864cc;
  --DLG-365-primary-color-dark: #0a0648;
  --DLG-365-primary-shadow-color: rgba(13, 8, 100, 0.4);
  --DLG-365-primary-shadow-hover: rgba(13, 8, 100, 0.1);
  
  /* Secondary Colors */
  --DLG-365-secondary-color: #3b82f6;
  --DLG-365-accent-color: #06b6d4;
  
  /* Background Colors */
  --DLG-365-bg-primary: #ffffff;
  --DLG-365-bg-secondary: #f9f9fb;
  --DLG-365-bg-tertiary: #f3f4f6;
  
  /* Text Colors */
  --DLG-365-text-primary: #1f2937;
  --DLG-365-text-secondary: #6b7280;
  --DLG-365-text-white: #ffffff;
  --DLG-365-text-dark: #111827;
  --DLG-365-text-medium: #4b5563;
  
  /* Border Colors */
  --DLG-365-border-light: #e5e7eb;
  --DLG-365-border-medium: #d1d5db;
  
  /* Shadow Colors */
  --DLG-365-shadow-light: rgba(0, 0, 0, 0.1);
  --DLG-365-shadow-medium: rgba(0, 0, 0, 0.15);
  --DLG-365-shadow-heavy: rgba(0, 0, 0, 0.25);
  --DLG-365-shadow-extra: rgba(0, 0, 0, 0.35);
  --DLG-365-shadow-modal: rgba(0, 0, 0, 0.12);
  --DLG-365-shadow-overlay: rgba(0, 0, 0, 0.6);
  --DLG-365-shadow-overlay-light: rgba(0, 0, 0, 0.4);
  --DLG-365-shadow-rating: rgba(0, 0, 0, 0.15);
  
  /* Error/Danger Colors */
  --DLG-365-error-color: #ef4444;
  --DLG-365-error-color-dark: #dc2626;
  --DLG-365-error-shadow: rgba(239, 68, 68, 0.3);
  --DLG-365-error-shadow-hover: rgba(239, 68, 68, 0.4);
  --DLG-365-error-shadow-light: rgba(239, 68, 68, 0.1);
  
  /* Message Bubble Colors */
  --DLG-365-user-bubble-bg: var(--DLG-365-primary-color);
  --DLG-365-user-bubble-text: var(--DLG-365-text-white);
  --DLG-365-bot-bubble-bg: #e5e5ea;
  --DLG-365-bot-bubble-text: var(--DLG-365-text-primary);
  
  /* Modal Colors */
  --DLG-365-modal-overlay-bg: rgba(0, 0, 0, 0.6);
  --DLG-365-modal-border: rgba(255, 255, 255, 0.2);
  --DLG-365-modal-overlay-light: rgba(0, 0, 0, 0.4);
  --DLG-365-modal-scrollbar: rgba(255, 255, 255, 0.3);
  --DLG-365-modal-scrollbar-hover: rgba(255, 255, 255, 0.5);
  
  /* Rating Colors */
  --DLG-365-rating-star-yellow: rgba(255, 193, 7, 0.3);
  
  /* Badge Colors */
  --DLG-365-badge-shadow: rgba(0, 0, 0, 0.2);
  
  /* Image Modal Colors */
  --DLG-365-image-modal-overlay: rgba(0, 0, 0, 0.8);
  --DLG-365-image-modal-bg: #f8f9fa;
  --DLG-365-image-modal-border: #e9ecef;
  --DLG-365-image-modal-text: #333;
  --DLG-365-image-modal-text-light: #666;
  
  /* Link Colors */
  --DLG-365-link-color: #007bff;
  --DLG-365-link-color-white: #ffffff;
  --DLG-365-link-underline: rgba(255, 255, 255, 0.7);
  
  /* Message Tick Colors */
  --DLG-365-tick-color-sent: #007bff;
  --DLG-365-tick-color-pending: var(--DLG-365-text-secondary);
  --DLG-365-tick-color-error: var(--DLG-365-error-color);
  
  /* Conversation Closed */
  --DLG-365-conversation-closed-bg: #e5e5ea;
  --DLG-365-conversation-closed-text: #101310;
  
  /* Welcome Form */
  --DLG-365-welcome-input-border: #e2e8f0;
  --DLG-365-welcome-input-placeholder: #94a3b8;
  --DLG-365-welcome-input-error-bg: #fef2f2;
  
  /* Survey */
  --DLG-365-survey-label-color: #374151;
  --DLG-365-survey-option-hover-bg: #f8f9fa;
  
  /* Animation */
  --DLG-365-transition-fast: 0.2s ease;
  --DLG-365-transition-medium: 0.3s ease;
  --DLG-365-transition-slow: 0.5s ease-in-out;
}

/* Chat Button */
#DLG-365-chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--DLG-365-primary-color);
  box-shadow: 0 6px 20px var(--DLG-365-shadow-heavy), 0 0 0 0 var(--DLG-365-primary-shadow-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--DLG-365-text-white);
  font-size: 24px;
  z-index: 9999;
  transition: all var(--DLG-365-transition-medium);
  border: none;
  outline: none;
  animation: float 3s ease-in-out infinite;
}

#DLG-365-chat-btn:hover {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 8px 25px var(--DLG-365-shadow-extra), 0 0 0 8px var(--DLG-365-primary-shadow-hover);
  animation: none;
}

#DLG-365-chat-btn:active {
  transform: scale(0.95);
}

  #DLG-365-chat-btn {
    width: 55px !important;
    height: 55px !important;
    bottom: var(--chat-button-bottom, 45px);
    left: var(--chat-button-left, auto);
    right: var(--chat-button-right, auto);
    font-size: 22px !important;
  }


#DLG-365-chat-btn.DLG-365-close-mode {
  background: var(--DLG-365-error-color);
  animation: none;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#DLG-365-chat-btn.DLG-365-close-mode:hover {
  box-shadow: 0 8px 25px var(--DLG-365-error-shadow-hover), 0 0 0 8px var(--DLG-365-error-shadow-light);
}

/* Message count badge */
.DLG-365-message-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--DLG-365-error-color);
  color: white;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid white;
  box-shadow: 0 2px 8px var(--DLG-365-badge-shadow);
  z-index: 10;
}

.DLG-365-message-count.DLG-365-hidden {
  display: none;
}

/* Confirmation Modal */
#DLG-365-chat-confirmation-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
}

#DLG-365-chat-confirmation-modal.DLG-365-show {
  display: flex;
}

.DLG-365-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--DLG-365-modal-overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

.DLG-365-modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--DLG-365-shadow-modal);
  max-width: 380px;
  width: 100%;
  overflow: hidden;
  animation: modalSlideIn 0.2s ease-out;
  border: 1px solid var(--DLG-365-modal-border);
  margin: auto;
  position: relative;
  padding: 24px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.DLG-365-modal-icon {
  text-align: center;
  font-size: 32px;
  margin: 20px 0 8px;
  line-height: 1;
}

.DLG-365-modal-title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--DLG-365-text-dark);
  margin: 0 0 10px;
  padding: 0;
  letter-spacing: -0.02em;
}

.DLG-365-modal-message {
  text-align: center;
  color: var(--DLG-365-text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
  padding: 0;
}

.DLG-365-modal-actions {
  display: flex;
  gap: 8px;
  padding: 0;
  justify-content: center;
}

.DLG-365-modal-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.DLG-365-modal-btn-cancel {
  background: var(--DLG-365-bg-secondary);
  color: var(--DLG-365-text-secondary);
  border: 1.5px solid var(--DLG-365-border-light);
}

.DLG-365-modal-btn-cancel:hover {
  background: var(--DLG-365-bg-tertiary);
  border-color: var(--DLG-365-border-medium);
  color: var(--DLG-365-text-medium);
}

.DLG-365-modal-btn-confirm {
  background: var(--DLG-365-error-color);
  color: white;
  border: 1.5px solid var(--DLG-365-error-color);
}

.DLG-365-modal-btn-confirm:hover {
  background: var(--DLG-365-error-color-dark);
  border-color: var(--DLG-365-error-color-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--DLG-365-error-shadow);
}

/* Rating Modal Styles */
#DLG-365-rating-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: var(--DLG-365-modal-overlay-light);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

#DLG-365-rating-modal.DLG-365-show {
  display: flex;
}

#DLG-365-rating-modal .DLG-365-modal-overlay {
  overflow-y: auto;
  overflow-x: hidden;
  align-items: center;
  padding: 40px 20px;
  justify-content: center;
}

#DLG-365-rating-modal .DLG-365-modal-overlay::-webkit-scrollbar {
  width: 6px;
}

#DLG-365-rating-modal .DLG-365-modal-overlay::-webkit-scrollbar-track {
  background: transparent;
}

#DLG-365-rating-modal .DLG-365-modal-overlay::-webkit-scrollbar-thumb {
  background: var(--DLG-365-modal-scrollbar);
  border-radius: 3px;
}

#DLG-365-rating-modal .DLG-365-modal-overlay::-webkit-scrollbar-thumb:hover {
  background: var(--DLG-365-modal-scrollbar-hover);
}

.DLG-365-rating-modal-content {
  max-width: 480px;
  max-height: 85vh;
  min-height: 400px;
  background: linear-gradient(180deg, var(--DLG-365-bg-primary) 0%, var(--DLG-365-bg-secondary) 100%);
  border-radius: 16px;
  box-shadow: 0 20px 60px var(--DLG-365-shadow-rating);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.DLG-365-rating-modal-header {
  padding: 28px 28px 0 28px;
  flex-shrink: 0;
}

.DLG-365-rating-modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 15px;
  margin: 20px 0;
  min-height: 0;
  max-height: calc(85vh - 320px);
  flex-shrink: 1;
}

.DLG-365-rating-modal-body::-webkit-scrollbar {
  width: 6px;
}

.DLG-365-rating-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.DLG-365-rating-modal-body::-webkit-scrollbar-thumb {
  background: var(--DLG-365-border-medium);
  border-radius: 3px;
}

.DLG-365-rating-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--DLG-365-text-secondary);
}

.DLG-365-rating-modal-footer {
  flex-shrink: 0;
  padding: 0 28px 28px 28px;
  margin-top: auto;
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, transparent 0%, var(--DLG-365-bg-secondary) 20%);
}

.DLG-365-rating-icon {
  text-align: center;
  font-size: 40px;
  margin: 0 0 12px;
  line-height: 1;
}

.DLG-365-rating-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 16px 0 10px;
  flex-wrap: nowrap;
  max-width: 100%;
  padding: 0 10px;
}

.DLG-365-star {
  font-size: 19px;
  cursor: pointer;
  opacity: 0.25;
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

.DLG-365-star:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.DLG-365-star.DLG-365-active {
  opacity: 1;
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px var(--DLG-365-rating-star-yellow));
}

.DLG-365-star.DLG-365-active ~ .DLG-365-star {
  opacity: 0.25;
}

.DLG-365-rating-labels {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--DLG-365-text-secondary);
  text-align: center;
  font-weight: 500;
  padding: 8px 10px 0 10px;
  max-width: 100%;
  min-height: 24px;
}

.DLG-365-rating-label {
  padding: 0;
  color: var(--DLG-365-primary-color);
  font-weight: 600;
  transition: all 0.2s ease;
}

.DLG-365-rating-actions {
  justify-content: center;
  gap: 12px;
  border-top: 1px solid var(--DLG-365-border-light);
  padding-top: 20px;
}

.DLG-365-rating-actions .DLG-365-modal-btn {
  padding: 12px 32px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  min-width: 120px;
}

.DLG-365-rating-actions .DLG-365-modal-btn-cancel {
  background: transparent;
  color: var(--DLG-365-text-secondary);
  border: 2px solid var(--DLG-365-border-light);
}

.DLG-365-rating-actions .DLG-365-modal-btn-cancel:hover {
  background: var(--DLG-365-bg-secondary);
  border-color: var(--DLG-365-border-medium);
  color: var(--DLG-365-text-medium);
}

.DLG-365-rating-actions .DLG-365-modal-btn-confirm {
  background: var(--DLG-365-primary-color);
  color: white;
  border: 2px solid var(--DLG-365-primary-color);
}

.DLG-365-rating-actions .DLG-365-modal-btn-confirm:hover {
  background: var(--DLG-365-primary-color-dark, #0a0648);
  border-color: var(--DLG-365-primary-color-dark, #0a0648);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 8, 100, 0.2);
}

.DLG-365-rating-actions .DLG-365-modal-btn-confirm:disabled {
  background: var(--DLG-365-border-medium);
  border-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* Chat Widget */
#DLG-365-chat-widget {
  position: fixed;
  bottom: var(--chat-widget-bottom, 90px);
  left: var(--chat-widget-left, auto);
  right: var(--chat-widget-right, 20px);
  width: 400px;
  height: 648px;
  border-radius: 20px;
  background: var(--DLG-365-bg-primary);
  box-shadow: 0 15px 50px var(--DLG-365-shadow-extra), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  transform: var(--chat-widget-transform-initial, scale(0) translate(70px, 70px));
  opacity: 0;
  transition: all var(--DLG-365-transition-slow);
  transform-origin: var(--chat-widget-transform-origin, bottom right);
  z-index: 9998;
  overflow: hidden;
  border: 2px solid transparent;
  background-clip: padding-box;
  backdrop-filter: blur(10px);
}

#DLG-365-chat-widget.DLG-365-show {
  transform: scale(1) translate(0, 0);
  opacity: 1;
}

#DLG-365-chat-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: var(--DLG-365-primary-color);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
}

/* Chat Banner - below header, from socket showBanner + eventType */
#DLG-365-chat-banner {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

#DLG-365-chat-banner.DLG-365-hidden {
  display: none !important;
}

#DLG-365-chat-banner.DLG-365-banner-success {
  background: #dcfce7;
  color: #166534;
  border-bottom: 1px solid #86efac;
}

#DLG-365-chat-banner.DLG-365-banner-success .DLG-365-chat-banner-icon {
  color: #16a34a;
  flex-shrink: 0;
}

#DLG-365-chat-banner.DLG-365-banner-success .DLG-365-chat-banner-content a {
  color: #166534;
  text-decoration: underline;
}

#DLG-365-chat-banner.DLG-365-banner-warning {
  background: #fef9c3;
  color: #92400e;
  border-bottom: 1px solid #fde047;
}

#DLG-365-chat-banner.DLG-365-banner-warning .DLG-365-chat-banner-icon {
  color: #ca8a04;
  flex-shrink: 0;
}

#DLG-365-chat-banner.DLG-365-banner-warning .DLG-365-chat-banner-content a {
  color: #92400e;
  text-decoration: underline;
}

#DLG-365-chat-banner.DLG-365-banner-danger {
  background: #fee2e2;
  color: #991b1b;
  border-bottom: 1px solid #fca5a5;
}

#DLG-365-chat-banner.DLG-365-banner-danger .DLG-365-chat-banner-icon {
  color: #dc2626;
  flex-shrink: 0;
}

#DLG-365-chat-banner.DLG-365-banner-danger .DLG-365-chat-banner-content a {
  color: #991b1b;
  text-decoration: underline;
}

#DLG-365-chat-banner .DLG-365-chat-banner-content {
  max-height: 60px;
  overflow-y: auto;
  flex: 1;
}

/* Chat Header */
#DLG-365-chat-header {
  background: var(--DLG-365-primary-color);
  color: var(--DLG-365-text-white);
  font-weight: 600;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

#DLG-365-chat-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

#DLG-365-chat-header .DLG-365-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

#DLG-365-chat-header .DLG-365-header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

#DLG-365-chat-header .DLG-365-header-left > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.DLG-365-header-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.DLG-365-vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #d4af37;
  background: #000;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.DLG-365-vip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
}

.DLG-365-vip-icon svg {
  width: 10px;
  height: 10px;
}

#DLG-365-chat-header .DLG-365-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--DLG-365-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--DLG-365-primary-color);
}

#DLG-365-slide-btn,
#DLG-365-maximize-btn,
#DLG-365-chat-close {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 4px;
  transition: all var(--DLG-365-transition-fast);
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: none;
  flex-shrink: 0;
}

#DLG-365-slide-btn:hover,
#DLG-365-maximize-btn:hover,
#DLG-365-chat-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
  opacity: 1;
  color: white;
}

#DLG-365-slide-btn svg,
#DLG-365-maximize-btn svg,
#DLG-365-chat-close svg {
  width: 60%;
  height: 60%;
  display: block;
}

/* Chat Messages Area */
#DLG-365-chat-box {
  flex: 1;
  padding: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
}

#DLG-365-chat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--DLG-365-primary-color), transparent);
  opacity: 0.3;
}

#DLG-365-chat-box::-webkit-scrollbar {
  width: 6px;
}

#DLG-365-chat-box::-webkit-scrollbar-track {
  background: transparent;
}

#DLG-365-chat-box::-webkit-scrollbar-thumb {
  background: var(--DLG-365-border-medium);
  border-radius: 3px;
}

#DLG-365-chat-box::-webkit-scrollbar-thumb:hover {
  background: var(--DLG-365-text-secondary);
}

/* Message Bubbles */
.DLG-365-message {
  margin-bottom: 12px;
  display: flex;
  animation: messageSlideIn 0.3s ease-out;
}

.DLG-365-message.DLG-365-user {
  justify-content: flex-end;
}

.DLG-365-message.DLG-365-bot {
  justify-content: flex-start;
}

.DLG-365-message-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  max-width: 75%;
  word-wrap: break-word;
  position: relative;
  box-shadow: 0 2px 6px var(--DLG-365-shadow-light);
}

.DLG-365-message.DLG-365-user .DLG-365-message-bubble {
  background: var(--DLG-365-user-bubble-bg);
  color: var(--DLG-365-user-bubble-text);
  border-bottom-right-radius: 4px;
}

.DLG-365-message.DLG-365-bot .DLG-365-message-bubble {
  background: var(--DLG-365-bot-bubble-bg);
  color: var(--DLG-365-bot-bubble-text);
  border-bottom-left-radius: 4px;
}

.DLG-365-conversation-closed-message {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-grow: 1;
}

.DLG-365-conversation-closed-content {
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  color: var(--DLG-365-conversation-closed-text);
  background: var(--DLG-365-conversation-closed-bg);
  padding: 9px 14px;
  border-radius: 18px;
  max-width: none;
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
  margin-top: 8px;
  margin-bottom: 14px;
}

.DLG-365-message-sender {
  font-weight: 600;
  margin-bottom: 3px;
  font-size: 11px;
  opacity: 0.8;
}

.DLG-365-message-content {
  font-size: 13px;
  line-height: 1.3;
}

/* Styles for auto-detected links in messages */
.DLG-365-message-content .DLG-365-message-link {
  color: var(--DLG-365-primary-color, #0D0864);
  text-decoration: underline;
  text-decoration-color: rgba(13, 8, 100, 0.4);
  transition: all 0.2s ease;
  word-break: break-all;
}

.DLG-365-message-content .DLG-365-message-link:hover {
  color: var(--DLG-365-primary-color, #0D0864);
  text-decoration-color: var(--DLG-365-primary-color, #0D0864);
  text-decoration-thickness: 2px;
}

/* User message links - white color for visibility on dark background */
.DLG-365-message.DLG-365-user .DLG-365-message-bubble .DLG-365-message-content .DLG-365-message-link {
  color: var(--DLG-365-link-color-white) !important;
  text-decoration: underline;
  text-decoration-color: var(--DLG-365-link-underline);
  text-underline-offset: 2px;
}

.DLG-365-message.DLG-365-user .DLG-365-message-bubble .DLG-365-message-content .DLG-365-message-link:hover {
  color: var(--DLG-365-link-color-white) !important;
  text-decoration-color: var(--DLG-365-link-color-white);
  text-decoration-thickness: 2px;
  opacity: 1;
}

.DLG-365-message-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 4px;
  gap: 4px;
}

.DLG-365-message.DLG-365-bot .DLG-365-message-meta {
  justify-content: flex-start;
}

.DLG-365-message-time {
  font-size: 10px;
  opacity: 0.7;
  color: inherit;
}

.DLG-365-message-tick {
  font-size: 12px;
  color: var(--DLG-365-tick-color-sent);
  font-weight: bold;
  display: inline-block;
  transition: all 0.2s ease;
}

.DLG-365-message-tick.DLG-365-message-sent {
  color: var(--DLG-365-tick-color-sent);
}

.DLG-365-message-tick.DLG-365-message-pending {
  color: var(--DLG-365-tick-color-pending);
  opacity: 0.7;
}

.DLG-365-message-tick.DLG-365-message-error {
  color: var(--DLG-365-tick-color-error);
  font-size: 14px;
  font-weight: bold;
  animation: errorPulse 0.5s ease-out;
  cursor: pointer;
}

.DLG-365-message-tick.DLG-365-message-error:hover {
  opacity: 0.8;
}

@keyframes errorPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Chat Input Area */
#DLG-365-chat-input-container {
  display: flex;
  padding: 16px 18px;
  background: #fcfcfd;
  align-items: center;
  position: relative;
}

#DLG-365-chat-input-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  opacity: 0.3;
}

.DLG-365-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 25px;
  border: 1px solid #e0e0e0;
  padding: 12px 16px;
  min-height: 105px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  max-height: 200px;
  overflow: hidden;
}

.DLG-365-input-wrapper:focus-within {
  border-color: var(--DLG-365-primary-color);
}

.DLG-365-input-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 0 0;
  margin-top: auto;
}

.DLG-365-input-option-btn {
  background: none;
  border: none;
  color: var(--DLG-365-text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.DLG-365-input-option-btn:hover {
  background: var(--background-hover);
  color: var(--DLG-365-primary-color);
}

/* File preview in textarea styles */
#DLG-365-chat-input::placeholder {
  color: var(--DLG-365-text-secondary);
  opacity: 0.7;
}

/* Style for file preview text in textarea */
.DLG-365-file-preview-text {
  color: var(--DLG-365-primary-color);
  font-weight: 500;
  background: var(--DLG-365-bg-secondary);
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-block;
}

/* Image preview styles in chat messages */
.DLG-365-image-preview {
  margin-bottom: 8px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--DLG-365-bg-secondary);
  border: 1px solid var(--DLG-365-border-light);
  margin-top: 10px;
}

/* Caption text above image/video in bot messages */
.DLG-365-attachment-caption {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--DLG-365-text-primary, #000);
  margin: 0 0 8px 0;
  padding: 8px 12px 0 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.DLG-365-attachment-caption .DLG-365-message-link {
  color: var(--DLG-365-primary-color, #0D0864);
  text-decoration: underline;
}

.DLG-365-preview-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
}

.DLG-365-image-info {
  padding: 8px 12px;
  background: var(--DLG-365-bg-secondary);
  border-top: 1px solid var(--DLG-365-border-light);
}

.DLG-365-image-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--DLG-365-text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
}

/* Video preview styles in chat messages */
.DLG-365-video-preview {
  margin-bottom: 8px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--DLG-365-bg-secondary);
  border: 1px solid var(--DLG-365-border-light);
}

.DLG-365-preview-video {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
  background: #000;
}

.DLG-365-video-info {
  padding: 8px 12px;
  background: var(--DLG-365-bg-secondary);
  border-top: 1px solid var(--DLG-365-border-light);
}

.DLG-365-video-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--DLG-365-text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.DLG-365-image-size {
  display: block;
  font-size: 11px;
  color: var(--DLG-365-text-secondary);
}

.DLG-365-video-size {
  display: block;
  font-size: 11px;
  color: var(--DLG-365-text-secondary);
}

#DLG-365-chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  resize: none;
  min-height: 20px;
  max-height: 180px;
  height: 20px;
  line-height: 1.4;
  color: var(--DLG-365-text-primary);
  width: 100%;
  overflow-y: hidden;
  transition: height 0.2s ease;
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#DLG-365-chat-input::-webkit-scrollbar {
  display: none;
}

#DLG-365-chat-input:focus {
  outline: none;
}

#DLG-365-chat-input::placeholder {
  color: var(--DLG-365-text-secondary);
}

#DLG-365-chat-send {
  background: var(--DLG-365-primary-color);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(13, 8, 100, 0.3);
  font-size: 14px;
  margin-left: auto;
}

#DLG-365-chat-send:hover {
  transform: scale(1.05);
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(13, 8, 100, 0.4);
}

#DLG-365-chat-send:active {
  transform: scale(0.95);
}

#DLG-365-chat-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  background: #ccc;
  box-shadow: none;
}

/* Emoji picker styles */
emoji-picker {
  position: fixed !important;
  top: 66% !important;
  left: 38% !important;
  transform: translate(-50%, -50%) !important;
  width: 261px !important;
  height: 249px !important;
  z-index: 10000 !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: white;
  overflow: hidden !important;
  --num-columns: 6;
  --emoji-size: 1.2rem;
  --emoji-padding: 0.4rem;
  --background: white;
  --border-color: var(--DLG-365-primary-color);
  --border-radius: 20px;
  --border-size: 2px;
  --button-hover-background: var(--DLG-365-primary-color-light);
  --button-active-background: var(--DLG-365-primary-color);
  --indicator-color: var(--DLG-365-primary-color);
  --input-border-color: var(--DLG-365-primary-color);
  --input-border-radius: 8px;
  --input-font-color: var(--DLG-365-text-primary);
  --input-placeholder-color: var(--DLG-365-text-secondary);
  --category-font-color: var(--DLG-365-primary-color);
  --outline-color: var(--DLG-365-primary-color);
}

/* Force border radius on internal elements */
emoji-picker * {
  border-radius: inherit !important;
}

emoji-picker .picker {
  border-radius: 20px !important;
  overflow: hidden !important;
}

emoji-picker .picker-header {
  border-radius: 20px 20px 0 0 !important;
}

emoji-picker .picker-body {
  border-radius: 0 0 12px 12px !important;
}

emoji-picker.DLG-365-hidden {
  display: none !important;
}

/* Ensure emoji picker is visible when not hidden */
emoji-picker:not(.DLG-365-hidden) {
  display: block !important;
}

/* Add subtle backdrop overlay */
emoji-picker:not(.DLG-365-hidden)::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: none;
  z-index: -1;
  pointer-events: none;
}

/* Dark mode support for emoji picker */
@media (prefers-color-scheme: dark) {
  emoji-picker {
    --background: #1f2937;
    --border-color: #374151;
    --button-hover-background: #374151;
    --button-active-background: #4b5563;
    --input-border-color: #4b5563;
    --input-font-color: #f9fafb;
    --input-placeholder-color: #9ca3af;
    --category-font-color: #f9fafb;
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}



/* Large screen fixes for rating modal */
@media (min-height: 900px) {
  .DLG-365-rating-modal-content {
    max-height: 80vh;
  }
  
  .DLG-365-rating-modal-body {
    max-height: calc(80vh - 280px);
  }
}

@media (min-height: 1200px) {
  .DLG-365-rating-modal-content {
    max-height: 70vh;
  }
  
  .DLG-365-rating-modal-body {
    max-height: calc(70vh - 280px);
  }
}

/* Online status indicator */
.DLG-365-online-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  opacity: 0.9;
}

.DLG-365-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s infinite;
}

/* Welcome Screen */
#DLG-365-welcome-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  z-index: 10;
}

#DLG-365-welcome-screen.DLG-365-hidden {
  display: none;
}

.DLG-365-welcome-minimize-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 4px;
  transition: all var(--DLG-365-transition-fast);
  opacity: 0.7;
  color: var(--DLG-365-text-secondary);
  background: transparent;
  border: none;
  z-index: 20;
}

.DLG-365-welcome-minimize-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
  opacity: 1;
  color: var(--DLG-365-text-primary);
}

.DLG-365-welcome-minimize-btn svg {
  width: 60%;
  height: 60%;
  display: block;
}

.DLG-365-welcome-icon {
  width: 63px;
  height: 63px;
  border-radius: 50%;
  background: var(--DLG-365-primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(13, 8, 100, 0.2);
}

.DLG-365-welcome-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--DLG-365-text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.DLG-365-welcome-subtitle {
  font-size: 16px;
  color: var(--DLG-365-text-secondary);
  margin-bottom: 32px;
  line-height: 1.4;
  max-width: 240px;
}

.DLG-365-welcome-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  width: 100%;
  max-width: 200px;
}

.DLG-365-welcome-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--DLG-365-text-primary);
}

.DLG-365-welcome-feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--DLG-365-primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
}

.DLG-365-welcome-button {
  background: var(--DLG-365-primary-color);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--DLG-365-transition-fast);
  box-shadow: 0 4px 12px rgba(13, 8, 100, 0.2);
}

.DLG-365-welcome-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 8, 100, 0.3);
}

/* Welcome Form */
.DLG-365-welcome-form {
  width: 100%;
  max-width: 300px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.DLG-365-welcome-form input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--DLG-365-welcome-input-border);
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
  background: #ffffff;
  box-sizing: border-box;
  font-family: inherit;
}

.DLG-365-welcome-form input:focus {
  border-color: var(--DLG-365-primary-color);
  box-shadow: 0 0 0 3px rgba(13, 8, 100, 0.1);
  transform: translateY(-1px);
}

.DLG-365-welcome-form input::placeholder {
  color: var(--DLG-365-welcome-input-placeholder);
  font-weight: 400;
}

.DLG-365-welcome-form input.DLG-365-error {
  border-color: var(--DLG-365-error-color);
  background-color: var(--DLG-365-welcome-input-error-bg);
}

.DLG-365-welcome-form input.DLG-365-error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.DLG-365-validation-message {
  color: #ef4444;
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 8px;
  text-align: left;
  width: 100%;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.DLG-365-validation-message.DLG-365-show {
  opacity: 1;
  transform: translateY(0);
}

.DLG-365-welcome-form .DLG-365-input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.DLG-365-message-content.DLG-365-selectable {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.DLG-365-link-option {
  padding: 6px 12px;
  border: 1px solid var(--DLG-365-link-color);
  border-radius: 16px;
  background: var(--DLG-365-bg-primary);
  color: var(--DLG-365-link-color);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.DLG-365-link-option:hover {
  background: var(--DLG-365-link-color);
  color: var(--DLG-365-text-white);
}

.DLG-365-link-option:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Notification Modal Styles */
#DLG-365-notification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#DLG-365-notification-modal.DLG-365-show {
  opacity: 1;
  visibility: visible;
}

.DLG-365-notification-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.DLG-365-notification-modal-content {
  position: relative;
  background: var(--DLG-365-bg-primary);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: notificationSlideIn 0.3s ease-out;
  z-index: 1;
}

@keyframes notificationSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.DLG-365-notification-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  animation: notificationBounce 0.5s ease-out;
}

@keyframes notificationBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.DLG-365-notification-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--DLG-365-text-primary);
  margin-bottom: 12px;
}

.DLG-365-notification-message {
  font-size: 14px;
  color: var(--DLG-365-text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  word-wrap: break-word;
}

.DLG-365-notification-btn {
  background: var(--DLG-365-primary-color);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 2px 8px rgba(13, 8, 100, 0.2);
}

.DLG-365-notification-btn:hover {
  background: var(--DLG-365-primary-color-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 8, 100, 0.3);
}

.DLG-365-notification-btn:active {
  transform: translateY(0);
}

/* Image Modal Styles */
#DLG-365-image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--DLG-365-image-modal-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#DLG-365-image-modal.DLG-365-show {
  opacity: 1;
  visibility: visible;
}

.DLG-365-image-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.DLG-365-image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 70vh;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

#DLG-365-image-modal.DLG-365-show .DLG-365-image-modal-content {
  transform: scale(1);
}

.DLG-365-image-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--DLG-365-image-modal-bg);
  border-bottom: 1px solid var(--DLG-365-image-modal-border);
}

.DLG-365-image-modal-title {
  font-weight: 600;
  color: var(--DLG-365-image-modal-text);
  font-size: 16px;
}

.DLG-365-image-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.DLG-365-image-download-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--DLG-365-image-modal-text-light);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.DLG-365-image-download-btn:hover {
  background: var(--DLG-365-image-modal-border);
  color: var(--DLG-365-image-modal-text);
}

.image-download-btn svg {
  width: 18px;
  height: 18px;
}

.DLG-365-image-modal-close {
  font-size: 24px;
  color: var(--DLG-365-image-modal-text-light);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.DLG-365-image-modal-close:hover {
  color: var(--DLG-365-image-modal-text);
}

.DLG-365-image-modal-body {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

#DLG-365-image-modal-img {
  max-width: 100%;
  max-height: 50vh;
  object-fit: contain;
  display: block;
}

/* Clickable image cursor */
.DLG-365-clickable-image {
  cursor: pointer !important;
  transition: opacity 0.2s ease;
}

.DLG-365-clickable-image:hover {
  opacity: 0.9;
}

/* Bot message inline images (e.g. from FAQ / rich content) */
.DLG-365-bot-content-with-images .DLG-365-bot-inline-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 6px 0;
}

.DLG-365-bot-content-with-images .DLG-365-bot-inline-wrapper .DLG-365-bot-inline-image {
  width: 100%;
  max-width: 260px;
  height: 160px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--DLG-365-border-light);
  display: block;
}

.DLG-365-bot-content-with-images .DLG-365-bot-inline-caption {
  width: 100%;
  max-width: 260px;
  font-size: 11px;
  line-height: 1.2;
  opacity: 0.75;
  margin-top: 6px;
  text-align: left;
}

/* Survey Questions Styles */
#DLG-365-survey-questions-container {
  margin: 0;
  padding-bottom: 10px;
}

.DLG-365-survey-question {
  margin-bottom: 24px;
  padding: 0;
}

.DLG-365-survey-question:last-child {
  margin-bottom: 0;
}

.DLG-365-survey-question-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--DLG-365-survey-label-color);
  margin-bottom: 12px;
  line-height: 1.5;
}

.DLG-365-survey-radio-group {
  display: flex;
  gap: 10px;
  margin-top: 0;
}

.DLG-365-survey-radio-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 12px 20px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  background: #ffffff;
  flex: 1;
  position: relative;
}

.DLG-365-survey-radio-option:hover {
  border-color: var(--DLG-365-primary-color);
  background-color: var(--DLG-365-survey-option-hover-bg);
  color: var(--DLG-365-primary-color);
  transform: translateY(-1px);
}

.DLG-365-survey-radio-option .DLG-365-survey-radio-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.survey-radio-option span {
  display: block;
  transition: all 0.2s ease;
}

.DLG-365-survey-radio-option:has(.DLG-365-survey-radio-input:checked) {
  border-color: var(--DLG-365-primary-color);
  background: var(--DLG-365-primary-color);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(13, 8, 100, 0.15);
}

.DLG-365-survey-radio-option:has(.DLG-365-survey-radio-input:checked) span {
  color: #ffffff;
}

.DLG-365-survey-input,
.DLG-365-survey-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  color: #1f2937;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
  background: #ffffff;
}

.DLG-365-survey-input:hover,
.DLG-365-survey-textarea:hover {
  border-color: var(--DLG-365-primary-color);
}

.DLG-365-survey-input:focus,
.DLG-365-survey-textarea:focus {
  outline: none;
  border-color: var(--DLG-365-primary-color);
  box-shadow: 0 0 0 3px rgba(13, 8, 100, 0.1);
}

.DLG-365-survey-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}



  .DLG-365-message-bubble {
    font-size: 15px;
    line-height: 1.4;
    padding: 10px 12px;
  }

  .DLG-365-rating-modal-content {
    width: 90vw !important;
    height: auto !important;
    max-height: 85vh !important;
  }

  .DLG-365-modal-content {
    width: 90vw !important;
    height: auto !important;
  }




/* Fullscreen Mode */
#DLG-365-chat-widget.DLG-365-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  z-index: 100000;
  background: var(--DLG-365-bg-primary);
  animation: fadeIn 0.3s ease-in-out;
  width: 100% !important;
}
 
/* Animate fullscreen transition */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}


/* Responsive Design */
@media (max-width: 480px) {
  #DLG-365-chat-widget {
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
    bottom: var(--chat-widget-bottom, 80px);
  }
  
  #DLG-365-chat-btn {
    right: 20px;
    bottom: 20px;
  }
}


@media screen and (max-width: 767px) {
  #DLG-365-chat-widget {
    height: 100%;
    width: 100%;
    position: fixed !important;
    bottom: 0 !important;
    right: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    /* Use dynamic viewport height so input area is not hidden behind
       mobile browser / device bottom bars. Fallback to 100vh if dvh
       is not supported. */
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    box-shadow: none !important;
    background: var(--DLG-365-bg-primary);
    z-index: 9999999 !important;
  }

  /* Add safe‑area padding so input wrapper stays above bottom nav / home bar */
  #DLG-365-chat-input-container {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  #DLG-365-chat-btn svg{
    width: 40%;
    height: 40%;
  }
  #DLG-365-chat-header .DLG-365-header-right {
    display: flex;
    align-items: center;
    gap: 50px;
}
  #DLG-365-chat-btn {
    width: 130px !important ;
    height: 130px !important;
    bottom: 75px !important;
    right: 45px !important;
  }
  #DLG-365-chat-widget {
    width: 80vw !important;
    height: 70vh !important;
    right: 10vw !important;
    bottom: 12vh !important;
    left: 10vw !important;
  }

  #DLG-365-emoji-picker {
    top: 83% !important;
    left: 19% !important;
  }

  #DLG-365-maximize-btn {
    display: flex !important;
  }

  #DLG-365-slide-btn {
    display: flex !important;
  }
  #DLG-365-slide-btn svg,
#DLG-365-maximize-btn svg,
#DLG-365-chat-close svg {
  width: 50px !important;
  height: 50px !important;
  display: block;
}


  #DLG-365-chat-header {
    font-size: 17px;
    padding: 16px;
  }


  #DLG-365-welcome-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .DLG-365-welcome-icon {
    width: 120px;
    height: 120px;
    font-size: 60px;
  }

  .DLG-365-welcome-title {
    font-size: 52px;
    font-weight: 600;
    color: var(--DLG-365-image-modal-text);
    margin-bottom: 12px;
  }

  .DLG-365-welcome-subtitle {
    font-size: 35px;
    max-width: 600px;
    width: 100%;
    margin-bottom: 50px !important;
  }

  .DLG-365-welcome-feature-icon{
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .DLG-365-welcome-feature-title {
    font-size: 18px;
  }

  .DLG-365-welcome-feature-description {
    font-size: 14px;
  }

  .DLG-365-welcome-feature{
    font-size: 30px;
  }
  .DLG-365-welcome-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 32px;
    width: 100%;
    max-width: 320px;
}
  .DLG-365-welcome-form{
    max-width: 575px !important;
    gap: 35px;
  }

  .DLG-365-welcome-form input{
    padding: 22px 15px;
    font-size: 35px;
  }

  .DLG-365-welcome-button{
    padding: 20px 46px;
    font-size: 35px !important;
    font-weight: 500 !important;
  } 

  #DLG-365-chat-header{
    padding: 34px 25px;
  }

  #DLG-365-chat-header .DLG-365-avatar{
    width: 50px;
    height: 50px;
    font-size: 30px;
  }

  #DLG-365-chat-header .DLG-365-header-left{
    gap: 20px;
  }

  #DLG-365-widget-title{
    font-size: 38px !important;
  }
  #DLG-365-chat-close{
    font-size: 40px;
  }

  .DLG-365-online-status{
    font-size: 30px;
  }
  .DLG-365-status-dot {
    width: 20px;
    height: 20px;
}
  .DLG-365-message-bubble{
    padding: 30px 30px;
  }
.DLG-365-message-content{
  font-size: 38px;
  line-height: 1.5;
}

.DLG-365-message-sender{
  font-size: 30px !important;
}

.DLG-365-message-time{
  font-size: 30px;
}
.DLG-365-message-tick{
  font-size: 30px;
}

.DLG-365-input-wrapper{
  height: 200px !important;
}

#DLG-365-chat-input{
  font-size: 36px;
}

/* Increase button size to accommodate larger SVG */
#DLG-365-emoji-picker-btn,
#DLG-365-attachment-btn {
  width: 60px !important;
  height: 60px !important;
  padding: 6px !important;
}

/* Increase SVG size - override inline attributes */
#DLG-365-emoji-picker-btn svg,
#DLG-365-attachment-btn svg {
  width: 50px !important;
  height: 50px !important;
  max-width: none !important;
  max-height: none !important;
}

#DLG-365-chat-send {
  width:  60px !important;
  height: 60px !important;
}

#DLG-365-chat-send svg{
  width: 50px !important;
  height: 50px !important;
}

.DLG-365-conversation-closed-content {
  font-size: 28px !important;
  padding: 13px 16px;
  margin-top: 16px !important;
  margin-bottom: 16px !important;
}


.DLG-365-rating-icon{
  font-size: 55px !important;
}
.DLG-365-modal-title{
  font-size: 42px !important;
}
.DLG-365-modal-message{
  font-size: 35px !important;
}
.DLG-365-modal-icon{
  font-size: 60px;
  margin: 20px 0 25px;
}
.DLG-365-star{
  font-size: 48px !important;
}

.DLG-365-rating-stars{
  flex-wrap: nowrap !important;
  gap: 8px !important;
  padding: 0 20px !important;
}

.DLG-365-survey-question-label{
  font-size: 32px !important;
}
.DLG-365-survey-radio-option{
font-size: 32px !important;
}

.DLG-365-survey-input, .DLG-365-survey-textarea{
  font-size: 32px !important;
}

.DLG-365-rating-labels{
  font-size: 28px !important;
  margin-bottom: 24px !important;
}

.DLG-365-modal-actions{
  gap: 36px !important;
}
.DLG-365-rating-actions .DLG-365-modal-btn {
  padding: 15px 42px;
  font-size: 32px !important;
}

.DLG-365-modal-overlay .DLG-365-modal-content{
max-width: 550px !important;
padding: 50px !important;
height: 950px !important;
}

.DLG-365-modal-overlay .DLG-365-end-chat-modal-content{
  max-width: 550px !important;
  padding: 50px !important;
  height: 380px !important;
}

.DLG-365-modal-btn{
  padding: 32px 59px !important;
  font-size: 32px !important;
}
.DLG-365-modal-message{
  font-size: 22px;
  margin: 0 0 30px;
}


}