/* Shared Clippy chatbot — Verakore + Quantix */
.chatbot-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 99998;
}

.chatbot-toggle {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: none;
  background: var(--clippy-accent, var(--forest, #1f4a3a));
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.chatbot-window {
  display: none;
  flex-direction: column;
  width: min(340px, calc(100vw - 2rem));
  height: min(460px, calc(100vh - 6rem));
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.chatbot-header {
  background: var(--clippy-accent, var(--forest, #1f4a3a));
  color: #fff;
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #f4f6f5;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message {
  display: flex;
}

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

.message-content {
  max-width: 85%;
  padding: 0.75rem 0.95rem;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.message.bot .message-content {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1a211c;
}

.message.user .message-content {
  background: var(--clippy-accent, var(--forest, #1f4a3a));
  color: #fff;
}

.quick-actions,
.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.quick-action,
.message-action {
  background: #eef1ef;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.quick-action:hover,
.message-action:hover {
  background: var(--clippy-accent, var(--forest, #1f4a3a));
  color: #fff;
  border-color: var(--clippy-accent, var(--forest, #1f4a3a));
}

.chatbot-input {
  padding: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 0.5rem;
  background: #fff;
}

.chatbot-input input {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

.chatbot-send {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: none;
  background: var(--clippy-accent, var(--forest, #1f4a3a));
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.chatbot-send:disabled,
.chatbot-input input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.message.is-typing .message-content {
  color: #6b7280;
  letter-spacing: 0.12em;
}

/* Quantix brand accent */
.chatbot-container[data-brand="quantix"] {
  --clippy-accent: #14b8a6;
}

/* Verakore launcher: teal speech-bubble tile (not text/emoji) */
.chatbot-container[data-brand="verakore"] .chatbot-toggle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.35rem;
  background-color: transparent;
  background-image: url("../images/icons/clippy-chat-toggle-verakore.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.chatbot-container[data-brand="verakore"] .chatbot-toggle:hover {
  filter: brightness(1.06);
  transform: scale(1.04);
}

.chatbot-container[data-brand="verakore"] .chatbot-toggle:focus-visible {
  outline: 2px solid var(--forest, #1f4a3a);
  outline-offset: 3px;
}

.chatbot-container[data-brand="quantix"] .chatbot-messages {
  background: #0f172a;
}

.chatbot-container[data-brand="quantix"] .message.bot .message-content {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.chatbot-container[data-brand="quantix"] .chatbot-input {
  background: #1e293b;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.chatbot-container[data-brand="quantix"] .chatbot-input input {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

.chatbot-container[data-brand="quantix"] .quick-action,
.chatbot-container[data-brand="quantix"] .message-action {
  background: #334155;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}
