/* Chat com IA (mesmo visual da Black Friday, copiado de renata-estefan-site/css/black-friday.css).
   As variáveis ficam no .chat para não depender do resto da página. */
.chat { --osso: #f3f3f2; --laranja: #ff7a1f; --laranja-esc: #e8600c; --titulo: "Archivo Black", "DM Sans", Helvetica, Arial, sans-serif; --texto: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.chat, .chat * { box-sizing: border-box; }
/* ---------- chat com IA ---------- */
.chat { position: fixed; bottom: 24px; right: 24px; z-index: 300; font-family: var(--texto); }
.chat__fab { position: relative; width: 60px; height: 60px; border-radius: 50%; background: var(--laranja); color: #0a0a0a; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(255, 122, 31, .4); transition: transform .25s, background .25s; }
.chat__fab:hover { transform: scale(1.06); background: #fff; }
.chat__fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--laranja); animation: bfPulso 2.6s ease-out infinite; pointer-events: none; }
.chat.open .chat__fab::after { display: none; }
@keyframes bfPulso { 0% { transform: scale(1); opacity: .6; } 70% { transform: scale(1.55); opacity: 0; } 100% { opacity: 0; } }
.chat__icon-close { display: none; }
.chat.open .chat__icon-open { display: none; }
.chat.open .chat__icon-close { display: block; }
.chat__panel { position: absolute; bottom: 76px; right: 0; width: 380px; display: none; flex-direction: column; overflow: hidden; background: #fff; color: #0a0a0a; border-radius: 6px; box-shadow: 0 28px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); transform-origin: bottom right; }
.chat.open .chat__panel { display: flex; animation: bfChatIn .34s cubic-bezier(.16, 1, .3, 1); }
@keyframes bfChatIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.chat__header { display: flex; align-items: center; gap: 13px; padding: 16px 18px; background: #0a0a0a; color: #fff; border-bottom: 3px solid var(--laranja); }
.chat__mark { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--laranja); color: #0a0a0a; font: 400 14px/1 var(--titulo); letter-spacing: -.02em; }
.chat__ident { flex: 1; min-width: 0; }
.chat__title { margin: 0; font: 700 11px/1.2 var(--texto); letter-spacing: .16em; text-transform: uppercase; }
.chat__status { display: flex; align-items: center; gap: 6px; margin: 5px 0 0; font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.chat__status i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: bfPonto 2s ease-out infinite; }
@keyframes bfPonto { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.chat__min { background: none; border: 0; padding: 6px; cursor: pointer; color: rgba(255, 255, 255, .6); display: flex; }
.chat__min:hover { color: #fff; }
.chat__messages { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-height: 200px; max-height: 340px; overflow-y: auto; background: var(--osso); scrollbar-width: thin; }
.msg { max-width: 86%; padding: 11px 15px; font-size: 14px; line-height: 1.58; animation: bfMsg .3s cubic-bezier(.16, 1, .3, 1); overflow-wrap: anywhere; }
@keyframes bfMsg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg--bot { align-self: flex-start; background: #fff; border: 1px solid #e2e2e0; border-radius: 3px 14px 14px 14px; }
.msg--user { align-self: flex-end; background: #0a0a0a; color: #fff; border-radius: 14px 3px 14px 14px; }
.msg strong { font-weight: 700; }
.msg__btn { display: block; margin: 10px 0 2px; padding: 12px 16px; background: var(--laranja); color: #0a0a0a; border-radius: 999px; text-align: center; font: 800 12.5px/1.2 var(--texto); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; }
.msg__btn:hover { background: #0a0a0a; color: #fff; }
.msg--typing { display: flex; gap: 5px; align-items: center; padding: 15px 16px; }
.msg--typing span { width: 6px; height: 6px; border-radius: 50%; background: #55555a; animation: bfSalta 1.3s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .16s; }
.msg--typing span:nth-child(3) { animation-delay: .32s; }
@keyframes bfSalta { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat__chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 16px; background: var(--osso); }
.chat__chips:empty { display: none; }
.chat__chips button { background: #fff; border: 1px solid #d6d6d3; border-radius: 20px; padding: 8px 14px; font: 500 12.5px/1.2 var(--texto); color: #3a3a3c; cursor: pointer; transition: border-color .2s, color .2s, transform .2s; }
.chat__chips button:hover { border-color: var(--laranja-esc); color: var(--laranja-esc); transform: translateY(-1px); }
.chat__input { display: flex; align-items: center; gap: 8px; padding: 9px 9px 9px 18px; background: #fff; border-top: 1px solid #e2e2e0; }
.chat__input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 11px 0; font: 400 16px/1.3 var(--texto); color: #0a0a0a; }
.chat__input input::placeholder { color: #8a8a8e; }
.chat__input button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #0a0a0a; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.chat__input button:hover { background: var(--laranja); color: #0a0a0a; transform: rotate(45deg); }
.chat__input.is-busy button { opacity: .5; pointer-events: none; }
@media (max-width: 600px) {
  .chat { bottom: 84px; right: 14px; }
  .chat__fab { width: 54px; height: 54px; }
  .chat__panel { position: fixed; left: 12px; right: 12px; bottom: 150px; width: auto; }
  .chat__messages { max-height: 46vh; }
}
@media (prefers-reduced-motion: reduce) { .chat__fab::after, .chat__status i { animation: none; } }


/* botão secundário do chat: leva a uma seção da página (ex.: "Ver os cases") */
.msg__btn--ancora { background: transparent; border: 1.5px solid #0a0a0a; color: #0a0a0a; }
.msg__btn--ancora:hover { background: #0a0a0a; color: #fff; }
