:root{
  --hfp-primary:#111827;
  --hfp-accent:#22c55e;
}
#hfp-chat-root{
  position: fixed !important;
  right: 18px !important;
  bottom: 110px !important;
  z-index: 99999 !important;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#hfp-chat-root, 
#hfp-chat-root *{ box-sizing: border-box !important; }

#hfp-chat-root .hfp-bubble{
  border: 0 !important;
  cursor: pointer !important;
  background: var(--hfp-accent) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 12px 14px !important;
  box-shadow: 0 10px 25px rgba(0,0,0,.18) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}
#hfp-chat-root .hfp-bubble-dot{ width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: .95; }
#hfp-chat-root .hfp-bubble-text{ font-weight: 800; letter-spacing: .2px; }

#hfp-chat-root .hfp-panel{
  position: absolute !important;
  right: 0 !important;
  bottom: 56px !important;
  width: 360px !important;
  max-width: calc(100vw - 32px) !important;
  height: 540px !important;
  max-height: calc(100vh - 200px) !important;
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.2) !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: all .18s ease;
}
#hfp-chat-root .hfp-panel.open{ transform: translateY(0); opacity: 1; pointer-events: auto; }

#hfp-chat-root .hfp-header{
  background: var(--hfp-primary) !important;
  color: #fff !important;
  padding: 12px 12px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  flex: 0 0 auto !important;
}
#hfp-chat-root .hfp-title{ font-weight: 900; }
#hfp-chat-root .hfp-close{ border:0 !important; background: transparent !important; color:#fff !important; font-size: 22px !important; cursor:pointer !important; line-height: 1 !important; }

#hfp-chat-root .hfp-body{
  padding: 12px !important;
  background: #f8fafc !important;
  overflow:auto !important;
  flex: 1 1 auto !important;
}

#hfp-chat-root .hfp-msg{
  max-width: 92% !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  margin: 8px 0 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  white-space: pre-wrap !important;
  opacity: 1 !important;
  filter: none !important;
}
#hfp-chat-root .hfp-msg *{ color: inherit !important; opacity: 1 !important; filter: none !important; }

#hfp-chat-root .hfp-msg-bot{
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}
#hfp-chat-root .hfp-msg-user{
  margin-left: auto !important;
  background: rgba(34,197,94,.14) !important;
  border: 1px solid rgba(34,197,94,.30) !important;
  color: #052e16 !important;
  font-weight: 700 !important;
}

#hfp-chat-root .hfp-quick{ display:flex !important; flex-wrap:wrap !important; gap: 8px !important; margin-top: 10px !important; }
#hfp-chat-root .hfp-quick-btn{
  border:1px solid #e5e7eb !important;
  background:#fff !important;
  border-radius: 999px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  cursor:pointer !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}
#hfp-chat-root .hfp-quick-btn:hover{ border-color: var(--hfp-accent) !important; }

#hfp-chat-root .hfp-footer{
  padding: 10px 12px !important;
  border-top: 1px solid #e5e7eb !important;
  background:#fff !important;
  flex: 0 0 auto !important;
  position: sticky !important;
  bottom: 0 !important;
}

#hfp-chat-root .hfp-input-row{ display:flex !important; gap: 8px !important; align-items:center !important; }
#hfp-chat-root .hfp-qinput{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: 10px 10px !important;
  font-size: 13px !important;
  outline:none !important;
  color: #0f172a !important;
}
#hfp-chat-root .hfp-qinput::placeholder{ color: #64748b !important; opacity: 1 !important; }
#hfp-chat-root .hfp-qinput:focus{ border-color: var(--hfp-accent) !important; }

#hfp-chat-root .hfp-qsend{
  flex: 0 0 auto !important;
  min-width: 84px !important;
  border:0 !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  cursor:pointer !important;
  background: var(--hfp-accent) !important;
  color:#fff !important;
  font-weight: 900 !important;
}

#hfp-chat-root .hfp-help{ margin-top: 8px !important; font-size: 12px !important; color: #475569 !important; }
#hfp-chat-root .hfp-link{ color: var(--hfp-accent) !important; text-decoration: none !important; font-weight: 900 !important; }

#hfp-chat-root .hfp-contact{
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px dashed #e5e7eb !important;
  display: none !important;
}
#hfp-chat-root .hfp-contact.open{ display: block !important; }

#hfp-chat-root .hfp-contact-top{ display:flex !important; align-items:center !important; justify-content:space-between !important; gap: 10px !important; margin-bottom: 8px !important; }
#hfp-chat-root .hfp-contact-title{ font-weight: 900 !important; color: #0f172a !important; }
#hfp-chat-root .hfp-contact-close{
  border:1px solid #e5e7eb !important;
  background:#fff !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  cursor:pointer !important;
  color: #0f172a !important;
  font-weight: 800 !important;
}

#hfp-chat-root .hfp-contact-form{ display:flex !important; flex-direction:column !important; gap:8px !important; }
#hfp-chat-root .hfp-input, 
#hfp-chat-root .hfp-textarea{
  width: 100% !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: 10px 10px !important;
  font-size: 13px !important;
  outline:none !important;
  color: #0f172a !important;
}
#hfp-chat-root .hfp-input::placeholder,
#hfp-chat-root .hfp-textarea::placeholder{ color: #64748b !important; opacity: 1 !important; }
#hfp-chat-root .hfp-input:focus, 
#hfp-chat-root .hfp-textarea:focus{ border-color: var(--hfp-accent) !important; }

#hfp-chat-root .hfp-send{
  width: 100% !important;
  border:0 !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  cursor:pointer !important;
  background: var(--hfp-accent) !important;
  color:#fff !important;
  font-weight: 900 !important;
}
#hfp-chat-root .hfp-status{ font-size: 12px !important; min-height: 16px !important; }
#hfp-chat-root .hfp-status.ok{ color: #16a34a !important; }
#hfp-chat-root .hfp-status.error{ color: #dc2626 !important; }
