/* GhOsT77 FAQ bot widget. Prefixed classes so it can be copied onto a customer site. */
.g77-faq-bot { position: fixed; right: 16px; bottom: 16px; z-index: 9999; font: 15px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #e8edf4; }
.g77-faq-bot * { box-sizing: border-box; }
.g77-faq-bot-toggle {
  appearance: none; border: 0; cursor: pointer;
  background: #7dd3c0; color: #04221c; font-weight: 700;
  border-radius: 999px; padding: 0.75rem 1.1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.g77-faq-bot-toggle:hover { background: #a8e6d9; }
.g77-faq-bot-toggle:focus-visible { outline: 3px solid #9ecbff; outline-offset: 3px; }
.g77-faq-bot-panel {
  position: absolute; right: 0; bottom: 56px; width: min(24rem, calc(100vw - 24px));
  background: #151b24; border: 1px solid #2a3340; border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.4); display: none; flex-direction: column; max-height: min(32rem, 70vh);
}
.g77-faq-bot-panel.is-open { display: flex; }
.g77-faq-bot-head { padding: 0.85rem 1rem 0.5rem; border-bottom: 1px solid #2a3340; }
.g77-faq-bot-head h2 { margin: 0; font-size: 1rem; color: #e8edf4; }
.g77-faq-bot-head p { margin: 0.3rem 0 0; color: #9aa6b8; font-size: 0.8rem; }
.g77-faq-bot-log { overflow: auto; padding: 0.75rem 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.g77-faq-bot-msg { margin: 0; padding: 0.6rem 0.75rem; border-radius: 12px; max-width: 95%; }
.g77-faq-bot-msg[data-role="bot"] { background: #10151c; border: 1px solid #2a3340; align-self: flex-start; }
.g77-faq-bot-msg[data-role="user"] { background: #1a3a34; align-self: flex-end; }
.g77-faq-bot-msg[data-kind="refusal"],
.g77-faq-bot-msg[data-kind="unknown"],
.g77-faq-bot-msg[data-kind="limit"] { border-color: #c9a36a; }
.g77-faq-bot-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
.g77-faq-bot-actions a {
  color: #04221c; background: #7dd3c0; text-decoration: none; font-weight: 700;
  border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.8rem;
}
.g77-faq-bot-form { display: flex; gap: 0.4rem; padding: 0.65rem; border-top: 1px solid #2a3340; }
.g77-faq-bot-form input[type="text"] {
  flex: 1; border: 1px solid #3a4656; border-radius: 10px; background: #0a0d12; color: #e8edf4;
  padding: 0.55rem 0.7rem; font: inherit;
}
.g77-faq-bot-form button {
  appearance: none; border: 0; border-radius: 10px; background: #7dd3c0; color: #04221c;
  font-weight: 700; padding: 0.55rem 0.8rem; cursor: pointer;
}
.g77-faq-bot-form button:disabled { opacity: 0.5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
  .g77-faq-bot * { transition: none !important; animation: none !important; }
}
