/* Minimal site FAQ chat widget — shown when MAQQA_CHAT.enabled */
.maqqa-chat {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  font-family: var(--body, "Outfit", system-ui, sans-serif);
}
.maqqa-chat-toggle {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  background: var(--accent, #0d9488);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.maqqa-chat-toggle:hover {
  filter: brightness(1.05);
}
.maqqa-chat-panel {
  position: absolute;
  right: 0;
  bottom: 3.25rem;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(28rem, calc(100vh - 6rem));
  display: flex;
  flex-direction: column;
  background: #0b1220;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.maqqa-chat-panel[hidden] {
  display: none !important;
}
.maqqa-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.maqqa-chat-head strong {
  font-size: 0.95rem;
}
.maqqa-chat-close {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.maqqa-chat-note {
  margin: 0;
  padding: 0.5rem 0.9rem 0;
  font-size: 0.75rem;
  color: #94a3b8;
}
.maqqa-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem 0.9rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.maqqa-chat-bubble {
  max-width: 95%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.45;
}
.maqqa-chat-bubble p {
  margin: 0;
}
.maqqa-chat-bubble ul {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
}
.maqqa-chat-bubble a {
  color: #5eead4;
}
.maqqa-chat-bot {
  align-self: flex-start;
  background: rgba(30, 41, 59, 0.95);
}
.maqqa-chat-user {
  align-self: flex-end;
  background: rgba(13, 148, 136, 0.35);
}
.maqqa-chat-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}
.maqqa-chat-form input[name="message"] {
  flex: 1;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: #111827;
  color: #f8fafc;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.86rem;
}
.maqqa-chat-form button[type="submit"] {
  border: 0;
  border-radius: 8px;
  background: var(--accent, #0d9488);
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}
.maqqa-chat-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: wait;
}
.maqqa-chat-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
@media (max-width: 480px) {
  .maqqa-chat {
    right: 0.65rem;
    bottom: 0.65rem;
  }
}
