/* HelloAI FAQ chatbot widget — no external dependencies */

#helloai-chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 6px;
  height: 52px;
  background: hsl(321.8, 99%, 40.8%);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(209, 0, 94, 0.32);
  font-family: "Ubuntu", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
#helloai-chat-toggle:hover {
  background: hsl(321.8, 99%, 32%);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(209, 0, 94, 0.44);
}
#helloai-chat-toggle .chat-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#helloai-chat-toggle .chat-icon svg { width: 18px; height: 18px; }

#helloai-chat-panel {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 340px;
  max-height: 520px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(11,29,54,0.18), 0 8px 24px rgba(11,29,54,0.1);
  display: flex;
  flex-direction: column;
  z-index: 9800;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.97);
  transition: opacity .2s ease, transform .2s ease;
}
#helloai-chat-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.hchat-header {
  background: hsl(215.5, 100%, 9.6%);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.hchat-header-left { display: flex; align-items: center; gap: 10px; }
.hchat-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: hsl(321.8, 99%, 40.8%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hchat-avatar svg { width: 16px; height: 16px; color: #fff; }
.hchat-header strong { font-family: "Heebo", "Helvetica Neue", sans-serif; font-size: 14.5px; font-weight: 700; display: block; }
.hchat-header small { font-size: 11px; color: rgba(255,255,255,0.5); display: block; margin-top: 1px; }
.hchat-close {
  background: none; border: none; color: rgba(255,255,255,0.55); cursor: pointer;
  padding: 4px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: color .15s, background .15s;
}
.hchat-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.hchat-close svg { width: 15px; height: 15px; }

.hchat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.hchat-msg { display: flex; }
.hchat-msg.user { justify-content: flex-end; }
.hchat-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  font-family: "Ubuntu", system-ui, sans-serif;
}
.hchat-msg.bot .hchat-bubble {
  background: hsl(215, 30%, 94%);
  color: hsl(215.5, 100%, 9.6%);
  border-bottom-left-radius: 4px;
}
.hchat-msg.user .hchat-bubble {
  background: hsl(321.8, 99%, 40.8%);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.hchat-bubble a { color: hsl(321.8, 99%, 40.8%); text-decoration: underline; }
.hchat-msg.user .hchat-bubble a { color: rgba(255,255,255,0.85); }

.hchat-chips {
  padding: 4px 14px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}
.hchat-chip {
  background: none;
  border: 1px solid hsl(0,0%,87%);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-family: "Ubuntu", system-ui, sans-serif;
  color: hsl(215, 25%, 38%);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.hchat-chip:hover {
  border-color: hsl(321.8, 99%, 40.8%);
  color: hsl(321.8, 99%, 40.8%);
  background: hsl(321.8, 99%, 97%);
}

.hchat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 12px;
  border-top: 1px solid hsl(0,0%,92%);
  flex-shrink: 0;
}
.hchat-input {
  flex: 1;
  border: 1px solid hsl(0,0%,87%);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: "Ubuntu", system-ui, sans-serif;
  color: hsl(215.5, 100%, 9.6%);
  outline: none;
  transition: border-color .15s;
  min-width: 0;
}
.hchat-input:focus { border-color: hsl(321.8, 99%, 40.8%); }
.hchat-send {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: hsl(321.8, 99%, 40.8%);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.hchat-send:hover { background: hsl(321.8, 99%, 32%); }
.hchat-send svg { width: 15px; height: 15px; color: #fff; }

@media (max-width: 420px) {
  #helloai-chat-panel { right: 10px; left: 10px; width: auto; bottom: 80px; }
  #helloai-chat-toggle { right: 14px; bottom: 14px; }
}
