/* FASTCHAT - widget */
.fastchat, .fastchat * { box-sizing: border-box; }
.fastchat {
  --ac-color: #1f6feb;
  position: fixed;
  bottom: var(--ac-y, 20px);
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: #1c2330;
}
.fastchat.ac-right { right: var(--ac-x, 20px); }
.fastchat.ac-left { left: var(--ac-x, 20px); }

.ac-launcher {
  height: var(--ac-l-h, 58px); min-width: var(--ac-l-h, 58px); padding: 0 var(--ac-l-px, 20px) 0 max(0px, calc(var(--ac-l-px, 20px) - 6px)); border-radius: var(--ac-l-radius, calc(var(--ac-l-h, 58px) / 2));
  background: var(--ac-l-bg, var(--ac-color)); color: var(--ac-l-fg, #fff); border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  font: inherit; font-size: var(--ac-l-fs, 17px); font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  position: relative;
  transition: transform .15s ease;
}
.ac-launcher.ac-icon-only { padding: 0; width: var(--ac-l-h, 58px); justify-content: center; }
.ac-launcher:hover { transform: scale(1.05); }
.ac-launcher-icon { display: flex; }
.ac-launcher svg { width: 28px; height: 28px; fill: var(--ac-l-ic, currentColor); }
.ac-launcher-text { white-space: nowrap; }
.ac-launcher { isolation: isolate; }
.ac-launcher.ac-pulse { animation: none; }
/* Anel de pulso só com transform/opacity: roda na placa de vídeo, sem repintar a página. */
.ac-launcher.ac-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 3px solid var(--ac-pulse); opacity: 0; pointer-events: none;
  animation: ac-ring 2s ease-out infinite; will-change: transform, opacity;
}
.ac-launcher.ac-pulse .ac-launcher-icon { animation: ac-wiggle 4s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes ac-ring {
  0%   { transform: scale(1);   opacity: .9; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
@keyframes ac-wiggle {
  0%, 82%, 100% { transform: rotate(0); }
  86% { transform: rotate(-14deg); }
  90% { transform: rotate(12deg); }
  94% { transform: rotate(-8deg); }
  98% { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ac-launcher.ac-pulse, .ac-launcher.ac-pulse::after, .ac-launcher.ac-pulse .ac-launcher-icon { animation: none; }
}
.ac-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #e5484d; color: #fff; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.ac-badge[hidden] { display: none; }

.ac-panel {
  position: absolute; bottom: 72px; width: 360px; max-width: calc(100vw - 24px);
  height: 540px; max-height: calc(100vh - 110px);
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  display: none; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.45; color: #1c2330;
}
.ac-panel, .ac-panel * { box-sizing: border-box; }
.fastchat.ac-hide-launcher .ac-launcher { display: none; }

/* Chat embutido na página (shortcode layout="embutido") */
.ac-panel.ac-embedded {
  position: static; display: flex; width: 100%; max-width: 100%;
  height: 100%; max-height: none; bottom: auto;
  border-radius: 0;
  border: 1px solid #e3e8ef; box-shadow: 0 8px 30px rgba(0,0,0,.10);
}
.ac-panel.ac-embedded .ac-minimize { display: none; }
.acp-embutido { width: 100%; max-width: none; margin: 0; height: var(--acp-height, 100vh); height: var(--acp-height, 100dvh); }

/* Layout de página (shortcode) */
.fastchat-page {
  --ac-color: #1f6feb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1c2330; box-sizing: border-box;
}
.fastchat-page *, .fastchat-page *::before, .fastchat-page *::after { box-sizing: border-box; }
.acp-cartao { display: flex; justify-content: center; padding: 24px 12px; }
.acp-card {
  width: 100%; max-width: 560px; background: #fff; border: 1px solid #e3e8ef; border-radius: 20px;
  padding: 36px 32px 28px; text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 12px 40px rgba(20, 30, 60, .10);
}
.acp-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--ac-color);
}
.acp-badge {
  width: 64px; height: 64px; border-radius: 50%; margin: 4px auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ac-color); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.acp-badge svg { width: 30px; height: 30px; }
.acp-status {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #6b7686;
  background: #f5f7fa; border-radius: 14px; padding: 4px 12px; margin-bottom: 12px;
}
.acp-dot { width: 9px; height: 9px; border-radius: 50%; background: #b8c0cc; flex: none; }
.acp-status.on { color: #1a7f37; background: #eaf7ee; }
.acp-status.on .acp-dot { background: #2ea44f; animation: acp-blink 1.8s ease-in-out infinite; }
@keyframes acp-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.acp-title { margin: 0 0 8px; font-size: 26px; line-height: 1.2; font-weight: 700; color: #1c2330; }
.acp-text { margin: 0 auto 20px; max-width: 420px; font-size: 16px; line-height: 1.5; color: #4a5568; }
.acp-topics { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 22px; }
.acp-chip {
  background: #fff; color: var(--ac-color); border: 1.5px solid var(--ac-color); border-radius: 20px;
  padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; transition: background .12s, color .12s;
}
.acp-chip:hover { background: var(--ac-color); color: #fff; }
.acp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ac-color); color: #fff; border: 0; border-radius: 30px; padding: 15px 30px;
  font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.20); transition: transform .12s ease, box-shadow .12s ease;
}
.acp-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.24); }
.acp-btn:focus-visible, .acp-chip:focus-visible { outline: 3px solid rgba(31,111,235,.45); outline-offset: 2px; }
.acp-botao { display: flex; justify-content: center; padding: 8px 0; }
.acp-note { margin: 14px 0 0; font-size: 12px; color: #8a94a3; }
@media (max-width: 480px) {
  .acp-card { padding: 30px 20px 22px; }
  .acp-title { font-size: 22px; }
  .acp-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .acp-status.on .acp-dot, .acp-btn { animation: none; transition: none; }
}
.ac-right .ac-panel { right: 0; }
.ac-left .ac-panel { left: 0; }
.fastchat.ac-open .ac-panel { display: flex; }

.ac-head {
  background: var(--ac-h-bg, var(--ac-color)); color: var(--ac-h-fg, #fff); padding: 14px 16px;
  display: flex; align-items: center; gap: 6px;
}
.ac-head-text { flex: 1; min-width: 0; }
.ac-title { font-weight: 600; font-size: 18px; }
.ac-sub { font-size: 14px; line-height: 1.25; opacity: .9; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.ac-icon-btn {
  background: transparent; border: 0; color: var(--ac-h-fg, #fff); cursor: pointer; opacity: .85;
  width: 28px; height: 30px; flex: none; border-radius: 6px; font-size: 18px; line-height: 1; padding: 0;
}
.ac-icon-btn:hover { opacity: 1; background: rgba(255,255,255,.15); }

.ac-end-btn {
  background: rgba(255,255,255,.18); color: var(--ac-h-fg, #fff); border: 1.5px solid var(--ac-h-fg, rgba(255,255,255,.85));
  border-radius: 16px; padding: 5px 11px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700;
  white-space: nowrap; flex: none; line-height: 1.2;
}
.ac-end-btn:hover { background: #fff; color: #c62828; border-color: #fff; }

.ac-lightbox {
  position: fixed; inset: 0; z-index: 100000; background: rgba(10,14,22,.88);
  display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.ac-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; cursor: default; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.ac-lightbox-close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; border: 0; font-size: 22px; cursor: pointer; line-height: 1;
}
.ac-lightbox-close:hover { background: rgba(255,255,255,.3); }
.ac-lightbox-open {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: #fff; background: rgba(255,255,255,.16); padding: 8px 16px; border-radius: 18px; text-decoration: none; font-size: 15px;
}
.ac-lightbox-open:hover { background: rgba(255,255,255,.3); }

.ac-messages {
  flex: 1; overflow-y: auto; padding: 14px; background: var(--ac-m-bg, #f5f7fa);
  display: flex; flex-direction: column; gap: 8px;
}
.ac-msg { max-width: 85%; display: flex; flex-direction: column; }
.ac-msg .ac-bubble {
  padding: 9px 12px; border-radius: 14px; word-wrap: break-word; overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.ac-msg.bot .ac-bubble { white-space: normal; }
.ac-msg .ac-meta { font-size: 13px; color: #6b7686; margin: 2px 4px 0; }
.ac-msg.bot, .ac-msg.agent { align-self: flex-start; }
.ac-msg.bot .ac-bubble, .ac-msg.agent .ac-bubble { background: var(--ac-b-bg, #fff); color: var(--ac-b-fg, inherit); border: 1px solid #e3e8ef; border-bottom-left-radius: 4px; }
.ac-msg.visitor { align-self: flex-end; }
.ac-msg.visitor .ac-bubble { background: var(--ac-v-bg, var(--ac-color)); color: var(--ac-v-fg, #fff); border-bottom-right-radius: 4px; }
.ac-msg.visitor .ac-meta { text-align: right; }
.ac-msg.system { align-self: center; max-width: 92%; }
.ac-msg.system .ac-bubble { background: transparent; color: #6b7686; font-size: 14px; text-align: center; padding: 4px 8px; }
.ac-bubble a { color: inherit; text-decoration: underline; }
.ac-msg.bot .ac-bubble a, .ac-msg.agent .ac-bubble a { color: var(--ac-lo, var(--ac-color)); }
.ac-msg.visitor .ac-bubble a, .ac-msg.visitor .ac-bubble a.ac-link { color: var(--ac-lv, inherit); }

.ac-options { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.ac-hint { font-size: 14px; color: #6b7686; margin: 6px 2px 0; }
.ac-opt {
  text-align: left; background: #fff; color: var(--ac-o, var(--ac-color));
  border: 1.5px solid var(--ac-o, var(--ac-color)); border-radius: 20px; padding: 8px 14px;
  font: inherit; cursor: pointer; transition: background .12s, color .12s;
}
.ac-opt:hover { background: var(--ac-o, var(--ac-color)); color: #fff; }
.ac-opt.ac-ghost { border-color: #c9d1dc; color: #4a5568; }
.ac-opt.ac-ghost:hover { background: #4a5568; border-color: #4a5568; color: #fff; }
.ac-opt.ac-human { border-style: dashed; }

.ac-foot { border-top: 1px solid #e3e8ef; background: #fff; padding: 10px; }
.ac-foot[hidden] { display: none; }
.ac-compose { display: flex; gap: 8px; align-items: flex-end; }
.ac-compose textarea {
  flex: 1; resize: none; border: 1px solid #cfd6e0; border-radius: 10px; padding: 9px 10px;
  font: inherit; max-height: 90px; min-height: 38px; outline: none; color: inherit;
}
.ac-compose textarea:focus, .ac-form input:focus, .ac-form textarea:focus { border-color: var(--ac-color); }
.ac-send {
  background: var(--ac-s-bg, var(--ac-color)); color: var(--ac-s-fg, #fff); border: 0; border-radius: 10px; height: 38px; padding: 0 14px;
  cursor: pointer; font: inherit; font-weight: 600;
}
.ac-send:disabled { opacity: .5; cursor: default; }

.ac-form { display: flex; flex-direction: column; gap: 8px; }
.ac-form label { font-size: 14px; color: #4a5568; display: flex; flex-direction: column; gap: 3px; }
.ac-form input, .ac-form textarea {
  border: 1px solid #cfd6e0; border-radius: 8px; padding: 8px 10px; font: inherit; outline: none; color: inherit; width: 100%;
}
.ac-form textarea { resize: none; height: 60px; }
.ac-form-actions { display: flex; gap: 8px; }
.ac-form-actions .ac-send { flex: 1; }
.ac-form-actions .ac-cancel {
  background: #eef1f6; color: #4a5568; border: 0; border-radius: 10px; padding: 0 14px; cursor: pointer; font: inherit;
}
.ac-error { color: #c62828; font-size: 14px; min-height: 0; }
.ac-error:empty { display: none; }

.ac-ended { text-align: center; color: #4a5568; }
.ac-ended p { margin: 0 0 8px; }

.ac-name { font-size: 14px; font-weight: 600; color: #4a5568; margin: 0 4px 2px; }
.ac-bubble.ac-has-img { padding: 4px; }
.ac-bubble.ac-has-img .ac-cap { padding: 6px 8px 4px; white-space: pre-wrap; }
.ac-img-link { display: block; line-height: 0; }
.ac-img-link img { max-width: 100%; max-height: 240px; border-radius: 10px; display: block; cursor: zoom-in; }

.ac-attach {
  background: #eef1f6; border: 0; border-radius: 10px; width: 38px; height: 38px; flex: none;
  cursor: pointer; font-size: 17px; padding: 0; line-height: 1;
}
.ac-attach:hover { background: #e2e7ef; }
.ac-attach:disabled { opacity: .5; cursor: default; }
.ac-preview {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 6px;
  background: #f5f7fa; border: 1px solid #e3e8ef; border-radius: 10px;
}
.ac-preview[hidden] { display: none; }
.ac-preview img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; }
.ac-preview-info { flex: 1; font-size: 14px; color: #4a5568; }
.ac-preview-rm {
  background: transparent; border: 0; cursor: pointer; font-size: 20px; color: #6b7686;
  width: 28px; height: 28px; border-radius: 6px; padding: 0; line-height: 1;
}
.ac-preview-rm:hover { background: #e3e8ef; }

@media (max-width: 480px) {
  .fastchat.ac-open { inset: 0; bottom: 0; right: 0; left: 0; }
  .fastchat.ac-open .ac-launcher { display: none; }
  .fastchat.ac-open .ac-panel {
    position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0;
  }
}
.ac-bubble a.ac-link { color: inherit; text-decoration: underline; word-break: break-all; }
.ac-offline-note { background: #fff7e6; border: 1px solid #ffd591; color: #7a4b00; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; font-size: 15px; }
.ac-bubble img.ac-bot-img { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 6px 0; cursor: zoom-in; }

/* Transições suaves */
@keyframes ac-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ac-in-right { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes ac-opt-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ac-msg.ac-enter { animation: ac-in .38s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left bottom; }
.ac-msg.visitor.ac-enter { animation-name: ac-in-right; }
.ac-msg.system.ac-enter { animation-duration: .25s; }
.ac-opt.ac-enter-opt, .ac-hint.ac-enter-opt { animation: ac-opt-in .34s cubic-bezier(.2, .8, .2, 1) both; }
.ac-opt { transition: background .15s ease, color .15s ease, transform .12s ease, box-shadow .15s ease; }
.ac-opt:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0, 0, 0, .10); }
.ac-opt:active { transform: scale(.98); }
.ac-messages { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  .ac-msg.ac-enter, .ac-opt.ac-enter-opt, .ac-hint.ac-enter-opt { animation: none; }
  .ac-opt { transition: none; }
}

/* Hierarquia: botão pai → resposta → sub-opções */
.ac-msg.visitor.ac-choice { align-self: stretch; max-width: none; margin-left: calc(var(--d, 0) * 16px); }
.ac-msg.ac-choice .ac-meta { display: none; }
.ac-msg.ac-choice .ac-bubble {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-radius: 20px; font-weight: 600; padding: 8px 14px;
}
.ac-msg.ac-choice .ac-bubble::after { content: "▾"; font-size: 12px; opacity: .85; flex: none; }
.ac-msg.visitor.ac-choice.ac-enter { animation-name: ac-in; }
.ac-msg.bot.ac-answer, .ac-options.ac-nested {
  margin-left: calc(var(--d, 0) * 16px + 12px);
  padding-left: 10px;
  border-left: 2px solid #c9d1dc;
  border-left-color: color-mix(in srgb, var(--ac-color) 45%, #fff);
}
.ac-msg.bot.ac-answer { max-width: calc(100% - var(--d, 0) * 16px - 12px); }
.ac-options.ac-nested .ac-opt { font-size: 15px; padding: 7px 12px; }
.ac-messages { position: relative; overflow-anchor: none; }

/* Integração: campo de texto e "digitando…" */
.ac-ask .ac-compose input { flex: 1; border: 1px solid #cfd6e0; border-radius: 10px; padding: 9px 10px; font: inherit; outline: none; color: inherit; min-width: 0; }
.ac-ask .ac-compose input:focus { border-color: var(--ac-color); }
.ac-ask-back {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 10px; padding: 11px 14px; cursor: pointer;
  background: var(--ac-s-bg, var(--ac-color)); color: var(--ac-s-fg, #fff); border: 0; border-radius: 22px;
  font: inherit; font-size: 17px; font-weight: 700; text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.ac-ask-back:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }
.ac-ask-back:active { transform: scale(.98); }
.ac-ask-back:focus-visible { outline: 3px solid rgba(0, 0, 0, .25); outline-offset: 2px; }
.ac-typing .ac-bubble { display: inline-flex; gap: 4px; padding: 12px 14px; }
.ac-dot { width: 7px; height: 7px; border-radius: 50%; background: #9aa5b5; animation: ac-blink 1.2s infinite ease-in-out; }
.ac-dot:nth-child(2) { animation-delay: .18s; }
.ac-dot:nth-child(3) { animation-delay: .36s; }
@keyframes ac-blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ac-dot { animation: none; opacity: .6; } }
.ac-msg.system .ac-bubble { white-space: normal; }

.ac-preview-pdf { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: #eef2f7; border-radius: 6px; }
.ac-bubble.ac-has-file { padding: 6px; }
.ac-bubble.ac-has-file .ac-cap { padding: 6px 8px 4px; white-space: pre-wrap; }
.ac-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.06); color: inherit; text-decoration: none; }
.ac-file:hover { background: rgba(0,0,0,.1); }
.ac-file-ico { font-size: 26px; line-height: 1; }
.ac-file-txt { display: flex; flex-direction: column; min-width: 0; }
.ac-file-txt strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-file-txt small { font-size: 13px; opacity: .75; }
.ac-ident-intro { font-size: 15px; font-weight: 600; color: #1a202c; }
.ac-ident-known { font-size: 14.5px; color: #4a5568; background: #f1f5f9; border-radius: 8px; padding: 7px 10px; }
.ac-ident-known strong { color: #1a202c; }


/* ---- Barra de mensagem (estilo WhatsApp) ---- */
.ac-foot { padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: #f0f2f5; }
.ac-compose { gap: 6px; align-items: flex-end; }
.ac-compose textarea, .ac-ask .ac-compose input {
  border: 1px solid #d5dbe4; border-radius: 22px; background: #fff; padding: 10px 14px;
  min-height: 42px; font-size: 16px; line-height: 1.35; min-width: 0;
}
.ac-ask .ac-compose input { flex: 1; }
.ac-attach {
  width: 36px; height: 36px; margin-bottom: 3px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: #fff; color: var(--ac-color); border: 2px solid var(--ac-color);
  transition: background .12s, color .12s;
}
.ac-attach svg { width: 18px; height: 18px; display: block; }
.ac-attach:hover, .ac-attach:active { background: var(--ac-color); color: #fff; }
.ac-send.ac-send-round {
  width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ac-s-bg, var(--ac-color)); color: var(--ac-s-fg, #fff); box-shadow: 0 2px 6px rgba(0,0,0,.22);
  transition: transform .1s, filter .12s;
}
.ac-send.ac-send-round svg { width: 22px; height: 22px; display: block; margin-left: 2px; }
.ac-send.ac-send-round:active { transform: scale(.92); }
.ac-send.ac-send-round.ac-busy svg { animation: ac-pulse-send .8s ease-in-out infinite; }
@keyframes ac-pulse-send { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 480px) {
  .fastchat.ac-open .ac-panel { height: 100vh; height: 100dvh; max-height: 100dvh; }
}

/* ---- Emojis ---- */
.ac-foot { position: relative; }
.ac-emoji-btn { flex: none; width: 36px; height: 36px; margin-bottom: 3px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #6b7686; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ac-emoji-btn svg { width: 25px; height: 25px; display: block; }
.ac-emoji-btn:hover, .ac-emoji-btn[aria-expanded="true"] { color: var(--ac-color); background: rgba(0,0,0,.06); }
.ac-emoji-pop { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); max-width: 360px; background: #fff; border: 1px solid #d5dbe4; border-radius: 14px; box-shadow: 0 10px 30px rgba(15,23,42,.28); z-index: 5; overflow: hidden; }
.ac-emoji-pop[hidden] { display: none; }
.ac-emoji-tabs { display: flex; border-bottom: 1px solid #e3e8ef; background: #f5f7fa; }
.ac-emoji-tab { flex: 1; padding: 7px 0; font-size: 20px; line-height: 1; border: 0; border-bottom: 3px solid transparent; background: transparent; cursor: pointer; }
.ac-emoji-tab.on { border-bottom-color: var(--ac-color); background: #fff; }
.ac-emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; max-height: 190px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ac-emoji-item { font-size: 24px; line-height: 1; padding: 5px 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; }
.ac-emoji-item:hover, .ac-emoji-item:active { background: #eef1f6; }

/* ---- Atendimento finalizado ---- */
.ac-end-btn[hidden] { display: none; }
.ac-farewell {
  position: absolute; inset: 0; z-index: 20; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 24px;
  animation: ac-fw-in .3s ease both;
}
.ac-fw-check { width: 96px; height: 96px; margin-bottom: 10px; animation: ac-fw-pop .55s cubic-bezier(.2,.9,.3,1.3) .1s both; }
.ac-fw-check svg { width: 100%; height: 100%; display: block; }
.ac-fw-ring { stroke: var(--ac-color); stroke-width: 3.5; stroke-dasharray: 145; stroke-dashoffset: 145; animation: ac-fw-draw .6s ease .15s forwards; }
.ac-fw-tick { stroke: var(--ac-color); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: ac-fw-draw .4s ease .65s forwards; }
.ac-fw-title { font-size: 22px; font-weight: 800; color: #1c2330; animation: ac-fw-up .4s ease .8s both; }
.ac-fw-sub { font-size: 16px; color: #6b7686; animation: ac-fw-up .4s ease .95s both; }
@keyframes ac-fw-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ac-fw-pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ac-fw-draw { to { stroke-dashoffset: 0; } }
@keyframes ac-fw-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ac-farewell, .ac-fw-check, .ac-fw-title, .ac-fw-sub { animation: none; }
  .ac-fw-ring, .ac-fw-tick { animation: none; stroke-dashoffset: 0; }
}

/* ---- áudio ---- */
.ac-send.ac-mic-mode svg { width: 22px; height: 22px; }
.ac-bubble.ac-has-audio { padding: 6px; }
.ac-audio { display: block; width: 100%; min-width: 210px; max-width: 260px; height: 40px; }
.ac-recbar { display: flex; align-items: center; gap: 10px; padding: 4px 2px; }
.ac-rec-del { width: 38px; height: 38px; flex: 0 0 auto; border: 0; border-radius: 50%; background: #f1f3f5; color: #c62828; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.ac-rec-del svg { width: 20px; height: 20px; }
.ac-rec-dot { width: 11px; height: 11px; border-radius: 50%; background: #e53935; animation: ac-rec-pulse 1s ease-in-out infinite; flex: 0 0 auto; }
.ac-rec-time { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 36px; }
.ac-rec-hint { flex: 1; color: #6b7280; font-size: 14px; }
.ac-rec-send { flex: 0 0 auto; }
@keyframes ac-rec-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .ac-rec-dot { animation: none; } }

/* ---- responder mensagem (citação) ---- */
.ac-msg[data-mid] { cursor: default; }
.ac-can-reply .ac-msg[data-mid]:not(.system):not(.ac-choice) .ac-bubble { cursor: pointer; }
.ac-reply-btn {
  display: none; align-self: flex-start; margin: 3px 4px 0; padding: 4px 10px; border: 1px solid #d5dbe4; border-radius: 999px;
  background: #fff; color: #3b4658; font: inherit; font-size: 14px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.ac-msg.visitor .ac-reply-btn { align-self: flex-end; }
.ac-can-reply .ac-msg.ac-sel .ac-reply-btn { display: inline-block; }
.ac-msg.ac-choice .ac-reply-btn { display: none !important; }
.ac-msg.ac-sel .ac-bubble { box-shadow: 0 0 0 2px rgba(0,0,0,.12); }
.ac-quote {
  display: flex; flex-direction: column; gap: 1px; margin: 0 0 6px; padding: 5px 9px; border-left: 4px solid var(--ac-color);
  border-radius: 6px; background: rgba(0,0,0,.06); cursor: pointer; font-size: 14px; line-height: 1.3; text-align: left;
}
.ac-quote strong { font-size: 13px; color: var(--ac-color); }
.ac-quote span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; opacity: .85; }
.ac-msg.visitor .ac-quote { background: rgba(255,255,255,.2); border-left-color: #fff; }
.ac-msg.visitor .ac-quote strong { color: #fff; }
.ac-msg.ac-flash .ac-bubble { animation: ac-flash 1.5s ease; }
@keyframes ac-flash { 0%, 60% { box-shadow: 0 0 0 3px var(--ac-color); } 100% { box-shadow: 0 0 0 0 transparent; } }
.ac-replybar { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 6px 8px; border-left: 4px solid var(--ac-color); border-radius: 8px; background: #f1f4f8; }
.ac-replybar[hidden] { display: none; }
.ac-replybar-body { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.ac-replybar-body strong { font-size: 13px; color: var(--ac-color); }
.ac-replybar-body span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #4a5568; }
.ac-replybar-x { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: #6b7686; padding: 0 4px; }

/* ---- vistos: enviada / entregue / lida ---- */
.ac-tick { display: inline-block; margin-left: 4px; vertical-align: -2px; color: #8a94a3; line-height: 0; }
.ac-tick svg { width: 17px; height: 11px; overflow: visible; }
.ac-tick .c2 { display: none; }
.ac-tick-d .c2, .ac-tick-r .c2 { display: inline; }
.ac-tick-r { color: #34b7f1; }
.ac-tick .c1, .ac-tick .c2 { transition: stroke .25s; }

/* ---- Campo estilo WhatsApp (cliente) ---- */
.ac-compose { gap: 8px; }
.ac-pill { --h: 36px; flex: 1; min-width: 0; display: flex; align-items: flex-end; padding: 3px 6px; background: #fff; border: 1px solid #d5dbe4; border-radius: 24px; box-sizing: border-box; }
.ac-pill:focus-within { border-color: var(--ac-color); }
.ac-compose .ac-pill textarea { flex: 1; min-width: 0; box-sizing: border-box; border: 0; border-radius: 0; background: transparent; margin: 0; min-height: var(--h); padding: calc((var(--h) - 20px) / 2) 6px; font-size: 16px; line-height: 20px; resize: none; outline: none; }
.ac-pill .ac-emoji-btn, .ac-pill .ac-attach { box-sizing: border-box; flex: none; width: var(--h); height: var(--h); min-height: var(--h); margin: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: #6b7686; }
.ac-pill .ac-emoji-btn:hover, .ac-pill .ac-emoji-btn[aria-expanded="true"], .ac-pill .ac-attach:hover, .ac-pill .ac-attach:active { background: rgba(0,0,0,.07); color: var(--ac-color); }
.ac-pill .ac-emoji-btn svg, .ac-pill .ac-attach svg { width: 22px; height: 22px; display: block; margin: 0; }

/* ---- Botão enviar: movimento discreto e efeito ao clicar ---- */
@keyframes ac-nudge { 0%, 68%, 100% { transform: translateX(0); } 80% { transform: translateX(2.5px); } 90% { transform: translateX(0); } }
@keyframes ac-ripple { from { transform: scale(0); opacity: .75; } to { transform: scale(1.7); opacity: 0; } }
@keyframes ac-fly { 0% { transform: translate(0, 0); opacity: 1; } 42% { transform: translate(10px, -10px); opacity: 0; } 43% { transform: translate(-10px, 10px); opacity: 0; } 100% { transform: translate(0, 0); opacity: 1; } }
.ac-send.ac-send-round:not(.ac-mic-mode):not(:disabled) { position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent; transition: transform .12s ease, box-shadow .15s ease; }
.ac-send.ac-send-round:not(.ac-mic-mode):not(:disabled) svg { animation: ac-nudge 3.4s ease-in-out infinite; }
.ac-send.ac-send-round:active { transform: scale(.9); }
.ac-send.ac-send-round.ac-clicked::after { content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 50%; background: rgba(255,255,255,.6); animation: ac-ripple .5s ease-out; pointer-events: none; }
.ac-send.ac-send-round.ac-clicked.ac-clicked.ac-clicked svg { animation: ac-fly .5s ease-in; }
@media (prefers-reduced-motion: reduce) { .ac-send.ac-send-round svg, .ac-send.ac-send-round.ac-clicked.ac-clicked.ac-clicked svg { animation: none !important; } .ac-send.ac-send-round.ac-clicked::after { animation: none !important; } }

/* ---- Crédito ---- */
.ac-credit { flex: none; text-align: center; padding: 5px 10px calc(5px + env(safe-area-inset-bottom, 0px)); background: #f0f2f5; border-top: 1px solid #e3e8ef; font-size: 11.5px; line-height: 1.3; color: #7b8794; }
.ac-credit a { color: inherit; font-weight: 600; text-decoration: none; }
.ac-credit a:hover { text-decoration: underline; color: var(--ac-color); }
.ac-foot { padding-bottom: 8px !important; }

/* ---- imagem enviada pelo atendente dentro do texto ---- */
.ac-md-img { display: block; margin: 6px 0; }
.ac-md-img img { display: block; max-width: 100%; height: auto; border-radius: 10px; cursor: zoom-in; background: #eef1f6; }

/* ---- Blindagem contra CSS de temas (gerado por gen_css.py) ---- */
.fastchat button.ac-launcher.ac-launcher {height: var(--ac-l-h, 58px); min-width: var(--ac-l-h, 58px); padding: 0 var(--ac-l-px, 20px) 0 max(0px, calc(var(--ac-l-px, 20px) - 6px)); border-radius: var(--ac-l-radius, calc(var(--ac-l-h, 58px) / 2));
  background: var(--ac-l-bg, var(--ac-color)); color: var(--ac-l-fg, #fff); border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  font: inherit; font-size: var(--ac-l-fs, 17px); font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  position: relative;
  transition: transform .15s ease;}
.fastchat button.ac-launcher.ac-launcher.ac-icon-only {padding: 0; width: var(--ac-l-h, 58px); justify-content: center;}
.fastchat button.ac-launcher.ac-launcher:hover {transform: scale(1.05);}
.fastchat button.ac-launcher.ac-launcher {isolation: isolate;}
.fastchat button.ac-launcher.ac-launcher.ac-pulse {animation: none;}
.fastchat button.ac-launcher.ac-launcher.ac-pulse::after {content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 3px solid var(--ac-pulse); opacity: 0; pointer-events: none;
  animation: ac-ring 2s ease-out infinite; will-change: transform, opacity;}
@media (prefers-reduced-motion: reduce) {
.fastchat button.ac-launcher.ac-launcher.ac-pulse, .fastchat button.ac-launcher.ac-launcher.ac-pulse::after {animation: none;}
}
.fastchat.ac-hide-launcher button.ac-launcher.ac-launcher {display: none;}
.fastchat button.ac-icon-btn.ac-icon-btn {background: transparent; border: 0; color: var(--ac-h-fg, #fff); cursor: pointer; opacity: .85;
  width: 28px; height: 30px; flex: none; border-radius: 6px; font-size: 18px; line-height: 1; padding: 0;}
.fastchat button.ac-icon-btn.ac-icon-btn:hover {opacity: 1; background: rgba(255,255,255,.15);}
.fastchat button.ac-end-btn.ac-end-btn {background: rgba(255,255,255,.18); color: var(--ac-h-fg, #fff); border: 1.5px solid var(--ac-h-fg, rgba(255,255,255,.85));
  border-radius: 16px; padding: 5px 11px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700;
  white-space: nowrap; flex: none; line-height: 1.2;}
.fastchat button.ac-end-btn.ac-end-btn:hover {background: #fff; color: #c62828; border-color: #fff;}
.fastchat button.ac-lightbox-close.ac-lightbox-close {position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; border: 0; font-size: 22px; cursor: pointer; line-height: 1;}
.fastchat button.ac-lightbox-close.ac-lightbox-close:hover {background: rgba(255,255,255,.3);}
.fastchat button.ac-opt.ac-opt {text-align: left; background: #fff; color: var(--ac-o, var(--ac-color));
  border: 1.5px solid var(--ac-o, var(--ac-color)); border-radius: 20px; padding: 8px 14px;
  font: inherit; cursor: pointer; transition: background .12s, color .12s;}
.fastchat button.ac-opt.ac-opt:hover {background: var(--ac-o, var(--ac-color)); color: #fff;}
.fastchat button.ac-opt.ac-opt.ac-ghost {border-color: #c9d1dc; color: #4a5568;}
.fastchat button.ac-opt.ac-opt.ac-ghost:hover {background: #4a5568; border-color: #4a5568; color: #fff;}
.fastchat button.ac-opt.ac-opt.ac-human {border-style: dashed;}
.fastchat .ac-compose textarea {flex: 1; resize: none; border: 1px solid #cfd6e0; border-radius: 10px; padding: 9px 10px;
  font: inherit; max-height: 90px; min-height: 38px; outline: none; color: inherit;}
.fastchat .ac-compose textarea:focus, .fastchat .ac-form input:focus, .fastchat .ac-form textarea:focus {border-color: var(--ac-color);}
.fastchat button.ac-send.ac-send {background: var(--ac-s-bg, var(--ac-color)); color: var(--ac-s-fg, #fff); border: 0; border-radius: 10px; height: 38px; padding: 0 14px;
  cursor: pointer; font: inherit; font-weight: 600;}
.fastchat button.ac-send.ac-send:disabled {opacity: .5; cursor: default;}
.fastchat .ac-form label {font-size: 14px; color: #4a5568; display: flex; flex-direction: column; gap: 3px;}
.fastchat .ac-form input, .fastchat .ac-form textarea {border: 1px solid #cfd6e0; border-radius: 8px; padding: 8px 10px; font: inherit; outline: none; color: inherit; width: 100%;}
.fastchat .ac-form textarea {resize: none; height: 60px;}
.fastchat .ac-form-actions button.ac-send.ac-send {flex: 1;}
.fastchat .ac-form-actions button.ac-cancel.ac-cancel {background: #eef1f6; color: #4a5568; border: 0; border-radius: 10px; padding: 0 14px; cursor: pointer; font: inherit;}
.fastchat button.ac-attach.ac-attach {background: #eef1f6; border: 0; border-radius: 10px; width: 38px; height: 38px; flex: none;
  cursor: pointer; font-size: 17px; padding: 0; line-height: 1;}
.fastchat button.ac-attach.ac-attach:hover {background: #e2e7ef;}
.fastchat button.ac-attach.ac-attach:disabled {opacity: .5; cursor: default;}
.fastchat button.ac-preview-rm.ac-preview-rm {background: transparent; border: 0; cursor: pointer; font-size: 20px; color: #6b7686;
  width: 28px; height: 28px; border-radius: 6px; padding: 0; line-height: 1;}
.fastchat button.ac-preview-rm.ac-preview-rm:hover {background: #e3e8ef;}
@media (max-width: 480px) {
.fastchat.ac-open button.ac-launcher.ac-launcher {display: none;}
}
.fastchat button.ac-opt.ac-opt.ac-enter-opt {animation: ac-opt-in .34s cubic-bezier(.2, .8, .2, 1) both;}
.fastchat button.ac-opt.ac-opt {transition: background .15s ease, color .15s ease, transform .12s ease, box-shadow .15s ease;}
.fastchat button.ac-opt.ac-opt:hover {transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0, 0, 0, .10);}
.fastchat button.ac-opt.ac-opt:active {transform: scale(.98);}
@media (prefers-reduced-motion: reduce) {
.fastchat button.ac-opt.ac-opt.ac-enter-opt {animation: none;}
.fastchat button.ac-opt.ac-opt {transition: none;}
}
.fastchat .ac-options.ac-nested button.ac-opt.ac-opt {font-size: 15px; padding: 7px 12px;}
.fastchat button.ac-ask-back.ac-ask-back {display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 10px; padding: 11px 14px; cursor: pointer;
  background: var(--ac-s-bg, var(--ac-color)); color: var(--ac-s-fg, #fff); border: 0; border-radius: 22px;
  font: inherit; font-size: 17px; font-weight: 700; text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;}
.fastchat button.ac-ask-back.ac-ask-back:hover {filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .22);}
.fastchat button.ac-ask-back.ac-ask-back:active {transform: scale(.98);}
.fastchat button.ac-ask-back.ac-ask-back:focus-visible {outline: 3px solid rgba(0, 0, 0, .25); outline-offset: 2px;}
.fastchat .ac-compose textarea {border: 1px solid #d5dbe4; border-radius: 22px; background: #fff; padding: 10px 14px;
  min-height: 42px; font-size: 16px; line-height: 1.35; min-width: 0;}
.fastchat button.ac-attach.ac-attach {width: 36px; height: 36px; margin-bottom: 3px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: #fff; color: var(--ac-color); border: 2px solid var(--ac-color);
  transition: background .12s, color .12s;}
.fastchat button.ac-attach.ac-attach:hover, .fastchat button.ac-attach.ac-attach:active {background: var(--ac-color); color: #fff;}
.fastchat button.ac-send.ac-send.ac-send-round {width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ac-s-bg, var(--ac-color)); color: var(--ac-s-fg, #fff); box-shadow: 0 2px 6px rgba(0,0,0,.22);
  transition: transform .1s, filter .12s;}
.fastchat button.ac-send.ac-send.ac-send-round:active {transform: scale(.92);}
.fastchat button.ac-emoji-btn.ac-emoji-btn {flex: none; width: 36px; height: 36px; margin-bottom: 3px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #6b7686; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;}
.fastchat button.ac-emoji-btn.ac-emoji-btn:hover, .fastchat button.ac-emoji-btn.ac-emoji-btn[aria-expanded="true"] {color: var(--ac-color); background: rgba(0,0,0,.06);}
.fastchat button.ac-emoji-tab.ac-emoji-tab {flex: 1; padding: 7px 0; font-size: 20px; line-height: 1; border: 0; border-bottom: 3px solid transparent; background: transparent; cursor: pointer;}
.fastchat button.ac-emoji-tab.ac-emoji-tab.on {border-bottom-color: var(--ac-color); background: #fff;}
.fastchat button.ac-emoji-item.ac-emoji-item {font-size: 24px; line-height: 1; padding: 5px 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;}
.fastchat button.ac-emoji-item.ac-emoji-item:hover, .fastchat button.ac-emoji-item.ac-emoji-item:active {background: #eef1f6;}
.fastchat button.ac-end-btn.ac-end-btn[hidden] {display: none;}
.fastchat button.ac-rec-del.ac-rec-del {width: 38px; height: 38px; flex: 0 0 auto; border: 0; border-radius: 50%; background: #f1f3f5; color: #c62828; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;}
.fastchat button.ac-reply-btn.ac-reply-btn {display: none; align-self: flex-start; margin: 3px 4px 0; padding: 4px 10px; border: 1px solid #d5dbe4; border-radius: 999px;
  background: #fff; color: #3b4658; font: inherit; font-size: 14px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.08);}
.fastchat .ac-msg.visitor button.ac-reply-btn.ac-reply-btn {align-self: flex-end;}
.fastchat .ac-can-reply .ac-msg.ac-sel button.ac-reply-btn.ac-reply-btn {display: inline-block;}
.fastchat .ac-msg.ac-choice button.ac-reply-btn.ac-reply-btn {display: none !important;}
.fastchat button.ac-replybar-x.ac-replybar-x {border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: #6b7686; padding: 0 4px;}
.fastchat .ac-compose .ac-pill textarea {flex: 1; min-width: 0; box-sizing: border-box; border: 0; border-radius: 0; background: transparent; margin: 0; min-height: var(--h); padding: calc((var(--h) - 20px) / 2) 6px; font-size: 16px; line-height: 20px; resize: none; outline: none;}
.fastchat .ac-pill button.ac-emoji-btn.ac-emoji-btn, .fastchat .ac-pill button.ac-attach.ac-attach {box-sizing: border-box; flex: none; width: var(--h); height: var(--h); min-height: var(--h); margin: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: #6b7686;}
.fastchat .ac-pill button.ac-emoji-btn.ac-emoji-btn:hover, .fastchat .ac-pill button.ac-emoji-btn.ac-emoji-btn[aria-expanded="true"], .fastchat .ac-pill button.ac-attach.ac-attach:hover, .fastchat .ac-pill button.ac-attach.ac-attach:active {background: rgba(0,0,0,.07); color: var(--ac-color);}
.fastchat button.ac-send.ac-send.ac-send-round:not(.ac-mic-mode):not(:disabled) {position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent; transition: transform .12s ease, box-shadow .15s ease;}
.fastchat button.ac-send.ac-send.ac-send-round:active {transform: scale(.9);}
.fastchat button.ac-send.ac-send.ac-send-round.ac-clicked::after {content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 50%; background: rgba(255,255,255,.6); animation: ac-ripple .5s ease-out; pointer-events: none;}
@media (prefers-reduced-motion: reduce) {
.fastchat button.ac-send.ac-send.ac-send-round.ac-clicked::after {animation: none !important;}
}

/* Chat aberto: o botão flutuante some (em qualquer tamanho de tela) */
.fastchat.ac-open .ac-launcher,
.fastchat.ac-open button.ac-launcher.ac-launcher { display: none; }
@media (min-width: 481px) {
  .fastchat.ac-open .ac-panel { bottom: 0; max-height: calc(100vh - 40px); }
}

/* Botão redondo "minimizar" embaixo do chat aberto (telas maiores; no celular o chat é tela cheia e usa o do cabeçalho) */
.fastchat .ac-min-fab { display: none; }
.ac-minimize svg { width: 20px; height: 20px; display: block; margin: 0 auto; }
@media (min-width: 481px) {
  .fastchat.ac-open:not(.ac-hide-launcher) button.ac-min-fab.ac-min-fab {
    display: flex; align-items: center; justify-content: center;
    width: var(--ac-l-h, 58px); height: var(--ac-l-h, 58px); min-width: 0; min-height: 0; margin: 0; padding: 0;
    border: 0; border-radius: 50%; cursor: pointer;
    background: var(--ac-l-bg, var(--ac-color)); color: var(--ac-l-ic, var(--ac-l-fg, #fff));
    box-shadow: 0 6px 20px rgba(0,0,0,.22); transition: transform .15s ease;
  }
  .fastchat.ac-open:not(.ac-hide-launcher) button.ac-min-fab.ac-min-fab:hover { transform: scale(1.05); }
  .fastchat.ac-open:not(.ac-hide-launcher) button.ac-min-fab.ac-min-fab svg { width: 46%; height: 46%; display: block; }
  .fastchat.ac-open:not(.ac-hide-launcher) .ac-panel {
    bottom: calc(var(--ac-l-h, 58px) + 14px);
    max-height: calc(100vh - var(--ac-y, 20px) - var(--ac-l-h, 58px) - 34px);
  }
}

/* Computador: o chat aberto ocupa a lateral inteira (como um painel lateral), em vez de uma janela pequena */
@media (min-width: 900px) {
  .fastchat.ac-open .ac-panel:not(.ac-embedded) {
    position: fixed; top: 12px; bottom: 12px; height: auto; max-height: none;
    width: clamp(400px, 28vw, 480px); max-width: calc(100vw - 24px);
    border-radius: 16px;
  }
  .fastchat.ac-open.ac-right .ac-panel:not(.ac-embedded) { right: 12px; left: auto; }
  .fastchat.ac-open.ac-left .ac-panel:not(.ac-embedded) { left: 12px; right: auto; }
  .fastchat.ac-open:not(.ac-hide-launcher) button.ac-min-fab.ac-min-fab.ac-min-fab { display: none; }
  .fastchat.ac-open:not(.ac-hide-launcher) .ac-panel:not(.ac-embedded) { bottom: 12px; max-height: none; }
}

/* Pedido de atendente humano: deixa claro que o e-mail libera a conversa */
.ac-handoff-note { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; padding: 11px 13px; border-radius: 10px; background: var(--ac-color, #1f6feb); color: #fff; font-size: 14.5px; line-height: 1.4; }
.ac-handoff-note strong { font-size: 16px; font-weight: 800; }
.ac-handoff-note span { opacity: .96; }
.ac-field-key { font-weight: 800; color: var(--ac-color, #1f6feb); }
.ac-field-key input { border: 2px solid var(--ac-color, #1f6feb); box-shadow: 0 0 0 3px rgba(31, 111, 235, .15); font-size: 16px; }
.ac-field-bad input { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .18); }
.ac-field-bad { color: #e5484d; }
