/* vacuum-fresh.com — Chat Widget Styles */
#vf-chat-widget * { box-sizing: border-box; }

#vf-chat-bubble {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px; border-radius: 50%;
  background: #1a7a3a; color: #fff;
  border: none; cursor: pointer; z-index: 999999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; transition: transform 0.2s, box-shadow 0.2s;
}
#vf-chat-bubble:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,0.3); }
#vf-chat-bubble.vf-active { display: none; }

#vf-chat-close-bubble {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px; border-radius: 50%;
  background: #dc3545; color: #fff;
  border: none; cursor: pointer; z-index: 999999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none; align-items: center; justify-content: center;
  font-size: 28px;
}
#vf-chat-close-bubble.vf-active { display: flex; }

#vf-chat-panel {
  position: fixed; bottom: 96px; right: 24px;
  width: 380px; height: 560px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  z-index: 999998; overflow: hidden;
  display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0; transform: translateY(20px) scale(0.95);
  pointer-events: none;
}
#vf-chat-panel.vf-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* Header */
#vf-chat-header {
  background: linear-gradient(135deg, #1a7a3a, #2a9d4a);
  color: #fff; padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
#vf-chat-header h3 { margin: 0; font-size: 16px; font-weight: 600; }
#vf-chat-header p { margin: 2px 0 0; font-size: 12px; opacity: 0.9; }
#vf-chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}

/* Messages */
#vf-chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  background: #f5f7fa;
  display: flex; flex-direction: column; gap: 8px;
}
.vf-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.vf-msg-bot { align-self: flex-start; background: #fff; color: #333; border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.vf-msg-user { align-self: flex-end; background: #1a7a3a; color: #fff; border-bottom-right-radius: 4px; }
.vf-msg-time { font-size: 10px; color: #999; margin-top: 2px; text-align: right; }
.vf-typing { display: flex; gap: 4px; padding: 8px 12px; background: #e8ecef; border-radius: 12px; align-self: flex-start; }
.vf-typing span { width: 6px; height: 6px; background: #999; border-radius: 50%; animation: vf-bounce 1.4s infinite; }
.vf-typing span:nth-child(2) { animation-delay: 0.2s; }
.vf-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes vf-bounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

/* Input */
#vf-chat-input-area {
  padding: 12px 16px; border-top: 1px solid #e8e8e8;
  background: #fff; display: flex; gap: 8px; align-items: flex-end;
}
#vf-chat-input {
  flex: 1; border: 1px solid #ddd; border-radius: 20px;
  padding: 10px 16px; font-size: 14px; outline: none;
  resize: none; max-height: 80px; font-family: inherit;
}
#vf-chat-input:focus { border-color: #2a9d4a; box-shadow: 0 0 0 2px rgba(26,122,58,0.15); }
#vf-chat-send {
  background: #1a7a3a; color: #fff; border: none;
  border-radius: 50%; width: 40px; height: 40px;
  cursor: pointer; font-size: 18px; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.2s; flex-shrink: 0;
}
#vf-chat-send:hover { background: #155d2e; }
#vf-chat-send:disabled { background: #ccc; cursor: not-allowed; }

/* Limits banner */
#vf-chat-limit {
  text-align: center; padding: 12px 16px; font-size: 12px;
  background: #fff3cd; color: #856404; display: none;
  border-top: 1px solid #ffeeba;
}

/* Mobile */
@media (max-width: 480px) {
  #vf-chat-panel { width: 100vw; height: 100vh; bottom: 0; right: 0; border-radius: 0; }
  #vf-chat-bubble, #vf-chat-close-bubble { bottom: 16px; right: 16px; }
}
