/* Scoped clone of 03-ai-chatbot/widget/src/styles/widget.css — selectors under .hl-widget-chatbot */

.hl-widget-chatbot {
  all: initial;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #0f172a;
  --hl-primary: #0057b8;
  --hl-primary-dark: #004494;
  --hl-primary-soft: #e8f1fb;
  --hl-bg: #ffffff;
  --hl-surface: #e9eef5;
  --hl-border: #c5d0de;
  --hl-user-bg: #0057b8;
  --hl-bot-bg: #ffffff;
  --hl-bot-border: #c8d4e3;
  --hl-text: #0f172a;
  --hl-text-muted: #475569;
  --hl-shadow: 0 10px 36px rgba(15, 23, 42, 0.18);
  --hl-radius: 16px;
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
}

.hl-widget-chatbot *,
.hl-widget-chatbot *::before,
.hl-widget-chatbot *::after {
  box-sizing: border-box;
}

.hl-widget-chatbot__shell {
  position: relative;
  pointer-events: none;
}

.hl-widget-chatbot .hl-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--hl-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--hl-shadow);
  transition: transform 0.2s, background 0.2s;
  z-index: 10001;
  pointer-events: auto;
}

.hl-widget-chatbot .hl-bubble:hover {
  background: var(--hl-primary-dark);
  transform: scale(1.05);
}

.hl-widget-chatbot .hl-bubble--open {
  background: var(--hl-primary-dark);
}

.hl-widget-chatbot .hl-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: var(--hl-bg);
  border-radius: var(--hl-radius);
  box-shadow: var(--hl-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  border: 1px solid var(--hl-border);
  color: var(--hl-text);
  pointer-events: auto;
}

.hl-widget-chatbot .hl-panel[hidden] {
  display: none !important;
}

.hl-widget-chatbot .hl-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--hl-primary);
  color: #fff;
  flex-shrink: 0;
}

.hl-widget-chatbot .hl-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hl-widget-chatbot .hl-panel__title strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.hl-widget-chatbot .hl-panel__title small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.92);
}

.hl-widget-chatbot .hl-panel__demo-badge {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hl-widget-chatbot .hl-panel__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.hl-widget-chatbot .hl-panel__close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
}

.hl-widget-chatbot .hl-panel__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hl-widget-chatbot .hl-message-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--hl-surface);
}

.hl-widget-chatbot .hl-message {
  display: flex;
}

.hl-widget-chatbot .hl-message--user {
  justify-content: flex-end;
}

.hl-widget-chatbot .hl-message--bot {
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-start;
}

.hl-widget-chatbot .hl-message__bubble {
  max-width: 85%;
  padding: 11px 14px;
  border-radius: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.55;
}

.hl-widget-chatbot .hl-message--user .hl-message__bubble {
  background: var(--hl-user-bg);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 87, 184, 0.28);
}

.hl-widget-chatbot .hl-message--bot .hl-message__bubble {
  background: var(--hl-bot-bg);
  color: var(--hl-text);
  border: 1px solid var(--hl-bot-border);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.hl-widget-chatbot .hl-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  max-width: 85%;
}

.hl-widget-chatbot .hl-option-chip {
  min-height: 36px;
  padding: 8px 14px;
  border: 1.5px solid #9eb4cc;
  border-radius: 999px;
  background: #ffffff;
  color: #004494;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.hl-widget-chatbot .hl-option-chip:hover:not(:disabled) {
  background: var(--hl-primary-soft);
  border-color: var(--hl-primary);
  color: var(--hl-primary-dark);
}

.hl-widget-chatbot .hl-option-chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hl-widget-chatbot .hl-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.hl-widget-chatbot .hl-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  animation: hl-widget-chatbot-bounce 1.2s infinite ease-in-out;
}

.hl-widget-chatbot .hl-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.hl-widget-chatbot .hl-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes hl-widget-chatbot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-6px); opacity: 1; }
}

.hl-widget-chatbot .hl-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--hl-border);
  background: var(--hl-bg);
  flex-shrink: 0;
}

.hl-widget-chatbot .hl-input-bar__field {
  flex: 1;
  border: 1.5px solid var(--hl-border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--hl-text);
  resize: none;
  max-height: 100px;
  outline: none;
  background: #ffffff;
}

.hl-widget-chatbot .hl-input-bar__field::placeholder {
  color: var(--hl-text-muted);
}

.hl-widget-chatbot .hl-input-bar__field:focus {
  border-color: var(--hl-primary);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.18);
}

.hl-widget-chatbot .hl-input-bar__send {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--hl-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 87, 184, 0.3);
}

.hl-widget-chatbot .hl-input-bar__send:hover:not(:disabled) {
  background: var(--hl-primary-dark);
}

.hl-widget-chatbot .hl-input-bar__send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .hl-widget-chatbot .hl-option-chip {
    min-height: 44px;
  }

  .hl-widget-chatbot .hl-bubble {
    bottom: 16px;
    right: 16px;
  }

  .hl-widget-chatbot .hl-panel {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }
}
