/* Assistente FILE — widget de chat (mesma linguagem visual do site) */
.fc-root {
  --fc-navy: #07101f;
  --fc-navy-2: #0c1726;
  --fc-gold: #bf9963;
  --fc-cream: #f7f5f0;
  --fc-ink: #1a1a2e;
  --fc-muted: #5a6072;
  --fc-border: #e2ddd4;
  font-family: 'DM Sans', sans-serif;
}
.fc-root *, .fc-root *::before, .fc-root *::after { box-sizing: border-box; }

/* botão (por cima do botão do WhatsApp) */
.fc-launcher {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px 0 16px;
  border: 1px solid rgba(191, 153, 99, .35);
  border-radius: 50px;
  background: var(--fc-navy);
  box-shadow: 0 14px 34px -10px rgba(7, 16, 31, .55);
  color: #fff;
  font: 500 11px/1 'DM Sans', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.fc-launcher:hover { transform: translateY(-2px); background: #0e1a2c; }
.fc-launcher svg { width: 22px; height: 22px; fill: none; stroke: var(--fc-gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fc-is-open .fc-launcher { display: none; }

/* painel */
.fc-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  width: 392px;
  height: min(640px, calc(100vh - 40px));
  overflow: hidden;
  border: 1px solid rgba(191, 153, 99, .25);
  border-radius: 24px;
  background: var(--fc-cream);
  box-shadow: 0 40px 90px -30px rgba(7, 16, 31, .6);
  animation: fc-in .35s cubic-bezier(.22, 1, .36, 1);
}
.fc-panel[hidden] { display: none; }
@keyframes fc-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

.fc-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 16px 22px;
  background: var(--fc-navy);
  background-image:
    linear-gradient(rgba(191, 153, 99, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 153, 99, .06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.fc-eyebrow { display: block; margin-bottom: 4px; font-size: 9px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: rgba(191, 153, 99, .75); }
.fc-title { margin: 0 !important; font: 700 22px/1.1 'Playfair Display', serif !important; color: #fff !important; }
.fc-title em { color: var(--fc-gold); font-style: italic; }
.fc-head-actions { display: flex; gap: 6px; }
.fc-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; background: transparent; cursor: pointer; transition: border-color .2s; }
.fc-icon:hover { border-color: var(--fc-gold); }
.fc-icon svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* mensagens */
.fc-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; scroll-behavior: smooth; }
.fc-msg { max-width: 88%; margin: 0 0 12px; padding: 12px 15px; border-radius: 18px; font-size: 14px; line-height: 1.6; word-wrap: break-word; }
.fc-msg p { margin: 0 0 8px !important; font-size: 14px !important; line-height: 1.6 !important; color: inherit !important; }
.fc-msg p:last-child { margin-bottom: 0 !important; }
.fc-msg .fc-h { font-weight: 600; }
.fc-msg ul, .fc-msg ol { margin: 4px 0 8px 18px !important; padding: 0 !important; }
.fc-msg li { margin: 2px 0 !important; font-size: 14px !important; line-height: 1.55 !important; color: inherit !important; list-style: inherit !important; }
.fc-msg ul li { list-style: disc !important; }
.fc-msg ol li { list-style: decimal !important; }
.fc-msg strong { color: inherit; font-weight: 600; }
.fc-assistant { background: #fff; border: 1px solid var(--fc-border); border-bottom-left-radius: 6px; color: var(--fc-ink); }
.fc-assistant a { color: var(--fc-navy) !important; font-weight: 500; text-decoration: underline !important; text-decoration-color: var(--fc-gold) !important; text-underline-offset: 3px; }
.fc-user { margin-left: auto; background: var(--fc-navy); border-bottom-right-radius: 6px; color: #fff; }
.fc-error { background: #fdecea; border-color: #f3c7c3; color: #8a1c14; }
.fc-table { overflow-x: auto; margin: 6px 0 8px; }
.fc-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fc-table th, .fc-table td { padding: 6px 8px !important; border-bottom: 1px solid var(--fc-border); text-align: left; font-size: 12.5px !important; }
.fc-table th { background: var(--fc-cream); font-weight: 600; }

.fc-typing { display: flex; gap: 5px; padding: 4px 2px; }
.fc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--fc-gold); animation: fc-dot 1.2s infinite ease-in-out; }
.fc-typing span:nth-child(2) { animation-delay: .15s; }
.fc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes fc-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

/* sugestões */
.fc-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.fc-suggest:empty { display: none; }
.fc-chip { padding: 8px 13px; border: 1px solid var(--fc-border); border-radius: 50px; background: #fff; color: var(--fc-ink); font: 400 12.5px/1.3 'DM Sans', sans-serif; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.fc-chip:hover { border-color: var(--fc-gold); background: #fffdf9; }

/* caixa de texto */
.fc-form { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 8px 8px 8px 14px; border: 1px solid var(--fc-border); border-radius: 18px; background: #fff; }
.fc-form:focus-within { border-color: var(--fc-gold); box-shadow: 0 0 0 4px rgba(191, 153, 99, .14); }
.fc-input { flex: 1; min-height: 24px; max-height: 120px; padding: 6px 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; resize: none; outline: none; font: 400 14px/1.5 'DM Sans', sans-serif !important; color: var(--fc-ink) !important; }
.fc-send { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--fc-gold); cursor: pointer; transition: background .2s; }
.fc-send:hover { background: #d4b07a; }
.fc-send:disabled { opacity: .5; cursor: default; }
.fc-send svg { width: 17px; height: 17px; fill: none; stroke: var(--fc-navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fc-note { margin: 8px 16px 12px !important; font-size: 10.5px !important; line-height: 1.5 !important; color: var(--fc-muted) !important; text-align: center; }
.fc-note a { color: var(--fc-muted) !important; text-decoration: underline !important; }

@media (max-width: 520px) {
  .fc-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .fc-launcher { right: 14px; bottom: 84px; height: 48px; padding: 0 16px 0 13px; }
  .fc-launcher-label { display: none; }
  .fc-launcher { width: 48px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .fc-panel { animation: none; } .fc-typing span { animation: none; opacity: .7; } }

/* com o chat aberto, o botão do WhatsApp esconde-se para não tapar o painel */
html.fc-open .ht-ctc { display: none !important; }

/* o tema do site estiliza <button>, <th>, etc.; aqui repõem-se as medidas do widget */
.fc-root button { margin: 0 !important; min-width: 0 !important; line-height: 1 !important; box-shadow: none; }
.fc-root .fc-icon { width: 34px !important; height: 34px !important; padding: 0 !important; border-radius: 50% !important; background: transparent !important; }
.fc-root .fc-send { width: 38px !important; height: 38px !important; padding: 0 !important; border-radius: 50% !important; background: var(--fc-gold) !important; }
.fc-root .fc-send:hover { background: #d4b07a !important; }
.fc-root .fc-launcher { background: var(--fc-navy) !important; color: #fff !important; }
.fc-root .fc-chip { background: #fff !important; color: var(--fc-ink) !important; line-height: 1.3 !important; }
.fc-root .fc-table th { background: var(--fc-cream) !important; color: var(--fc-ink) !important; }
.fc-root .fc-table td { background: #fff !important; color: var(--fc-ink) !important; }
