/* ChatFromAI frontend setup widget styles */
#chatfromai-setup-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
  z-index: 9999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  animation: chatfromai-pulse 2s infinite;
}

#chatfromai-setup-widget.is-open {
  transform: scale(0.9);
}

#chatfromai-setup-modal {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  z-index: 10000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border: 1px solid #e5e7eb;
  display: none;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
}

#chatfromai-setup-modal.show {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.chatfromai-setup-header {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: white;
  padding: 20px;
  border-radius: 16px 16px 0 0;
  position: relative;
}

.chatfromai-setup-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatfromai-setup-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chatfromai-setup-title {
  font-weight: 700;
  font-size: 18px;
}

.chatfromai-setup-subtitle {
  font-size: 13px;
  opacity: 0.9;
}

.chatfromai-setup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.8;
  padding: 5px;
  border-radius: 4px;
}

.chatfromai-setup-close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.1);
}

.chatfromai-setup-body {
  padding: 24px;
}

.chatfromai-setup-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.chatfromai-setup-alert-title {
  color: #dc2626;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.chatfromai-setup-alert-text {
  color: #7f1d1d;
  font-size: 13px;
  line-height: 1.5;
}

.chatfromai-setup-steps {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 16px;
}

.chatfromai-setup-steps-title {
  color: #0369a1;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}

.chatfromai-setup-steps-text {
  color: #0c4a6e;
  font-size: 13px;
  line-height: 1.6;
}

.chatfromai-setup-actions {
  display: flex;
  gap: 10px;
}

.chatfromai-setup-btn-primary,
.chatfromai-setup-btn-secondary {
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  text-align: center;
  transition: all 0.2s;
}

.chatfromai-setup-btn-primary {
  background: #dc2626;
  color: #ffffff;
}

.chatfromai-setup-btn-primary:hover {
  background: #b91c1c;
}

.chatfromai-setup-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.chatfromai-setup-btn-secondary:hover {
  background: #e5e7eb;
}

@keyframes chatfromai-pulse {
  0% { box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(220, 38, 38, 0.8); }
  100% { box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4); }
}

/* Shortcode alert when widget is not configured */
.chatfromai-shortcode-alert {
  background: #fef2f2;
  border: 2px solid #fca5a5;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: #dc2626;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
