:root {
  --hancy-primary: #0f3d75;
  --hancy-secondary: #1f6fd1;
  --hancy-accent: #f4f7fb;
  --hancy-text: #1f2937;
  --hancy-light: #ffffff;
  --hancy-border: #dbe4f0;
  --hancy-radius: 18px;
  --hancy-shadow: 0 18px 45px rgba(15, 61, 117, 0.18);
}
.hancy-chatbot-container * { box-sizing: border-box; }
.hancy-chatbot-container { font-family: Arial, Helvetica, sans-serif; }
.hancy-chatbot-floating {
  position: fixed;
  bottom: 20px;
  z-index: 999999;
}
.hancy-chatbot-floating.hancy-right { right: 20px; }
.hancy-chatbot-floating.hancy-left { left: 20px; }
.hancy-chatbot-window {
  width: 380px;
  max-width: calc(100vw - 24px);
  height: 620px;
  max-height: calc(100vh - 100px);
  background: var(--hancy-light);
  border: 1px solid var(--hancy-border);
  border-radius: var(--hancy-radius);
  overflow: hidden;
  box-shadow: var(--hancy-shadow);
  display: flex;
  flex-direction: column;
}
.hancy-chatbot-floating .hancy-chatbot-window { display: none; margin-bottom: 12px; }
.hancy-chatbot-floating.hancy-open .hancy-chatbot-window { display: flex; }
.hancy-chatbot-toggle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  box-shadow: var(--hancy-shadow);
}
.hancy-chatbot-header {
  color: #fff;
  padding: 16px;
}
.hancy-chatbot-header-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.hancy-chatbot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hancy-chatbot-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  padding: 4px;
}
.hancy-chatbot-title { font-size: 18px; font-weight: 700; margin: 0; }
.hancy-chatbot-subtitle { font-size: 13px; opacity: .95; margin: 4px 0 0; line-height: 1.4; }
.hancy-chatbot-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.hancy-chatbot-body {
  background: var(--hancy-accent);
  padding: 14px;
  overflow-y: auto;
  flex: 1;
}
.hancy-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
  margin-bottom: 10px;
  line-height: 1.45;
  font-size: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.hancy-message-bot {
  background: #fff;
  color: var(--hancy-text);
  border: 1px solid var(--hancy-border);
  border-bottom-left-radius: 6px;
}
.hancy-message-user {
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 6px;
}
.hancy-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.hancy-chip {
  background: #fff;
  border: 1px solid var(--hancy-border);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
}
.hancy-chatbot-footer {
  padding: 12px;
  border-top: 1px solid var(--hancy-border);
  background: #fff;
}
.hancy-chatbot-form { display: flex; gap: 8px; align-items: center; }
.hancy-chatbot-input {
  flex: 1;
  border: 1px solid var(--hancy-border);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  outline: none;
}
.hancy-chatbot-send {
  border: none;
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
}
.hancy-chatbot-note { font-size: 11px; line-height: 1.4; color: #6b7280; margin-top: 8px; }
.hancy-lead-box {
  background: #fff;
  border: 1px solid var(--hancy-border);
  padding: 12px;
  border-radius: 14px;
  margin-top: 10px;
  font-size: 13px;
}
.hancy-lead-box strong { color: var(--hancy-primary); }
.hancy-success { color: #0b8f55; font-weight: 700; }
.hancy-chatbot-embed .hancy-chatbot-window {
  width: 100%;
  max-width: 560px;
  height: 680px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .hancy-chatbot-floating { right: 12px !important; left: auto !important; bottom: 12px; }
  .hancy-chatbot-window { width: calc(100vw - 24px); height: 72vh; }
}
