/* Little Bit Moar – Floating Chatbot Widget */
/* Uses your existing color variables so it matches your site */

#lbm-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--brand-orange);
  color: #ffffff;
  font-family: var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0,0,0,0.1));
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

#lbm-chat-launcher span {
  display: inline-flex;
  align-items: center;
}

/* Chat panel */

#lbm-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 80px;
  width: 340px;
  max-height: 70vh;
  display: none; /* toggled via JS */
  flex-direction: column;
  background: var(--card, #121a2b);
  color: var(--text, #e8ecf7);
  border-radius: 16px;
  border: 1px solid var(--border, #22314e);
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0,0,0,0.1));
  z-index: 9999;
  overflow: hidden;
  font-family: var(--font-body, system-ui, -apple-system, "Segoe UI", sans-serif);
}

/* Header */
#lbm-chat-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary, #0e162d);
  border-bottom: 1px solid var(--border, #22314e);
}

#lbm-chat-header-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#lbm-chat-header-subtitle {
  font-size: 11px;
  color: var(--text-muted, #8fa2c4);
}

#lbm-chat-close {
  border: none;
  background: transparent;
  color: var(--text-muted, #8fa2c4);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

/* Messages area */

#lbm-chat-messages {
  padding: 10px 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

/* Bubbles */
.lbm-bubble {
  max-width: 85%;
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.lbm-bubble-user {
  margin-left: auto;
  background: var(--gradient-primary, linear-gradient(135deg, #F15A24, #EC4899));
  color: #ffffff;
}

.lbm-bubble-bot {
  margin-right: auto;
  background: var(--card-hover, #17223a);
  border: 1px solid var(--border, #22314e);
  color: var(--text, #e8ecf7);
}

/* Input area */

#lbm-chat-input-row {
  border-top: 1px solid var(--border, #22314e);
  padding: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--bg-secondary, #0e162d);
}

#lbm-chat-input {
  flex: 1;
  resize: none;
  border-radius: 10px;
  border: 1px solid var(--border, #22314e);
  background: var(--card, #121a2b);
  color: var(--text, #e8ecf7);
  font-size: 13px;
  padding: 6px 8px;
  max-height: 80px;
  min-height: 32px;
  font-family: inherit;
}

#lbm-chat-input::placeholder {
  color: var(--text-muted, #8fa2c4);
}

#lbm-chat-send {
  border-radius: 999px;
  border: 1px solid var(--border, #22314e);
  background: var(--brand-blue, #0e3a8a);
  color: #ffffff;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#lbm-chat-send:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Typing indicator */
.lbm-typing {
  font-size: 11px;
  color: var(--text-muted, #8fa2c4);
}

/* Mobile tweak */
@media (max-width: 480px) {
  #lbm-chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
  }

  #lbm-chat-launcher {
    right: 12px;
    bottom: 16px;
  }
}
/* Allia embedded chat widget – minimal, LBM-style */
#allia-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF7A3C 0%, #1F4F7F 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* Main panel */
#allia-chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 360px;
  max-width: 100vw;
  height: 520px;
  max-height: 80vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.4);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  font-family: inherit;
}

/* Header */
#allia-chat-header {
  background: linear-gradient(135deg, #FF7A3C 0%, #1F4F7F 100%);
  color: #ffffff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#allia-chat-header .allia-title {
  font-size: 14px;
  font-weight: 700;
}

#allia-chat-close {
  border: none;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}

/* Messages area */
#allia-chat-messages {
  flex: 1;
  padding: 10px 10px 6px;
  overflow-y: auto;
  background: #f5f5f7;
}

/* Bubbles */
.allia-msg {
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 80%;
}

.allia-msg.allia-user {
  margin-left: auto;
  background: #1F4F7F;
  color: #ffffff;
}

.allia-msg.allia-bot {
  margin-right: auto;
  background: #ffffff;
  color: #111827;
  border: 1px solid #e4e6eb;
}

/* Input area */
#allia-chat-form {
  display: flex;
  padding: 8px;
  border-top: 1px solid #e4e6eb;
  background: #ffffff;
  gap: 6px;
}

#allia-chat-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #e4e6eb;
  padding: 6px 10px;
  font-size: 13px;
}

#allia-chat-form button[type="submit"] {
  border-radius: 999px;
  border: none;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  background: #FF7A3C;
  color: #ffffff;
  cursor: pointer;
}

/* Optional loading state */
#allia-chat-widget.allia-loading {
  opacity: 0.8;
  pointer-events: none;
}

