/* AgentC Front Desk chat window. Every class starts with fd- so it never
   clashes with the host website. Colors follow the AgentC site: dark slate
   with a copper accent. No glow effects. */
.fd-root {
  --fd-bg: #10141c;
  --fd-card: #171d28;
  --fd-line: #2c3442;
  --fd-text: #f4f6f8;
  --fd-muted: #a9b1bd;
  --fd-copper: #e07a2f;
  --fd-copper-dark: #b85f1f;
  --fd-copper-text: #1a0f06;
  --fd-visitor: #263042;
  --fd-warning: #f2c46d;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--fd-text);
}
.fd-root *, .fd-root *::before, .fd-root *::after { box-sizing: border-box; }

.fd-launcher {
  display: block;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--fd-copper);
  color: var(--fd-copper-text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.fd-launcher:hover { background: #ea8a43; }
.fd-launcher:focus-visible, .fd-root button:focus-visible, .fd-input:focus-visible,
.fd-link:focus-visible, .fd-log:focus-visible {
  outline: 3px solid #ffd7b5;
  outline-offset: 2px;
}

.fd-panel {
  display: flex;
  flex-direction: column;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 110px);
  margin-bottom: 12px;
  background: var(--fd-bg);
  border: 1px solid var(--fd-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.fd-panel[hidden] { display: none; }

.fd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--fd-card);
  border-bottom: 1px solid var(--fd-line);
}
.fd-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--fd-text); }
.fd-subtitle { margin: 2px 0 0; font-size: 12.5px; color: var(--fd-muted); }
.fd-close {
  border: 0;
  background: transparent;
  color: var(--fd-muted);
  font-size: 26px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
}
.fd-close:hover { color: var(--fd-text); background: var(--fd-line); }

.fd-log {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fd-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.fd-bot {
  align-self: flex-start;
  background: var(--fd-card);
  border: 1px solid var(--fd-line);
}
.fd-visitor {
  align-self: flex-end;
  background: var(--fd-visitor);
}
.fd-kind-disclosure { font-size: 13.5px; color: var(--fd-muted); }
.fd-kind-warning { border-color: var(--fd-warning); }
.fd-kind-note { font-size: 13px; color: var(--fd-muted); }
.fd-typing { color: var(--fd-muted); letter-spacing: 2px; }

.fd-badge {
  display: block;
  width: fit-content;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #3a2c12;
  color: var(--fd-warning);
  font-size: 12px;
  font-weight: 650;
}
.fd-link {
  display: block;
  margin-top: 8px;
  color: #ffb27a;
  font-weight: 600;
  text-decoration: underline;
}

.fd-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 10px;
}
.fd-choices:empty { display: none; }
.fd-choice {
  border: 1px solid var(--fd-copper);
  background: transparent;
  color: var(--fd-text);
  border-radius: 999px;
  padding: 7px 13px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.fd-choice:hover { background: rgba(224, 122, 47, 0.16); }
.fd-choice:disabled, .fd-send:disabled { opacity: 0.55; cursor: wait; }

/* Questions suggested while typing: a short list just above the text box. */
.fd-suggest {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 14px;
  border-top: 1px solid var(--fd-line);
  background: var(--fd-card);
}
.fd-suggest:empty { display: none; }
.fd-suggest-label {
  margin: 0 0 2px;
  font-size: 12px;
  color: var(--fd-muted);
}
.fd-suggestion {
  display: block;
  width: 100%;
  border: 1px solid var(--fd-line);
  border-radius: 8px;
  padding: 7px 10px;
  background: transparent;
  color: var(--fd-text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.fd-suggestion:hover, .fd-suggestion:focus-visible {
  background: rgba(224, 122, 47, 0.16);
  border-color: var(--fd-copper);
}

.fd-form {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--fd-line);
  background: var(--fd-card);
}
.fd-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--fd-line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--fd-bg);
  color: var(--fd-text);
  font: inherit;
}
.fd-input::placeholder { color: var(--fd-muted); }
.fd-send {
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  background: var(--fd-copper);
  color: var(--fd-copper-text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.fd-foot {
  margin: 0;
  padding: 6px 14px 10px;
  background: var(--fd-card);
  color: var(--fd-muted);
  font-size: 12px;
}
.fd-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .fd-root { right: 12px; left: 12px; bottom: 12px; }
  .fd-panel { width: 100%; max-width: none; height: calc(100vh - 90px); }
}
@media (prefers-reduced-motion: reduce) {
  .fd-root * { transition: none !important; animation: none !important; }
}
