/* Assistente BH (demonstração) */
.ia-fab { position: fixed; right: 20px; bottom: 20px; z-index: 85; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border: 0; border-radius: 30px; background: var(--navy); color: #fff; font: 650 .95rem var(--sans); box-shadow: 0 14px 30px -10px rgba(28,47,94,.55); cursor: pointer; transition: transform .2s, opacity .2s; }
.ia-fab svg { width: 24px; height: 24px; color: var(--orange); }
.ia-fab:hover { transform: translateY(-2px); }
.ia-fab::after { content: ""; position: absolute; top: 9px; left: 34px; width: 10px; height: 10px; border-radius: 50%; background: #22B07D; box-shadow: 0 0 0 2px var(--navy); }
.ia-fab.oculto { opacity: 0; pointer-events: none; transform: translateY(10px); }

.ia-chat { padding: 0; margin: 0; position: fixed; right: 20px; bottom: 20px; z-index: 86; width: min(410px, calc(100vw - 40px)); height: min(640px, calc(100vh - 40px)); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(22,33,62,.45); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1); }
.ia-chat.open { opacity: 1; transform: none; pointer-events: auto; }
.ia-chat header { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: linear-gradient(135deg, var(--navy), #24407A); color: #fff; }
.ia-av { width: 40px; height: 40px; border-radius: 12px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 .9rem var(--sans); flex: none; }
.ia-chat header b { display: block; font-size: 1rem; }
.ia-chat header span { font-size: .8rem; color: #C3CDE2; }
.ia-x { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.ia-demo { margin: 0; padding: 7px 14px; background: var(--orange-soft); color: var(--orange-ink); font-size: .74rem; line-height: 1.35; border-bottom: 1px solid #FBE3C4; }
.ia-msgs { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 8px; background: var(--steel-2); }
.ia-m { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: .9rem; line-height: 1.45; animation: ia-in .25s ease; }
@keyframes ia-in { from { opacity: 0; transform: translateY(6px); } }
.ia-m.ia { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.ia-m.eu { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.ia-m.digitando { display: flex; gap: 4px; padding: 14px 16px; }
.ia-m.digitando i { width: 7px; height: 7px; border-radius: 50%; background: #AEB9CF; animation: ia-pulo 1s infinite; }
.ia-m.digitando i:nth-child(2) { animation-delay: .15s; }
.ia-m.digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes ia-pulo { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.ia-m .mono { font-family: var(--mono); font-size: .85em; }
.ia-m .link { color: var(--navy-2); }
.ia-prod { display: grid; grid-template-columns: 44px minmax(0, 1fr) 34px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--steel); }
.ia-prod:first-child { border-top: 0; padding-top: 0; }
.ia-prod:last-child { padding-bottom: 0; }
.ia-prod img, .ia-prod .ph { width: 44px; height: 44px; object-fit: contain; background: var(--steel-2); border-radius: 8px; }
.ia-prod b { display: block; font-size: .84rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--navy); }
.ia-prod small { display: block; font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ia-prod button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font-size: 1.15rem; font-weight: 600; cursor: pointer; }
.ia-prod button:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.ia-prod button:disabled { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok); }
.ia-aviso { display: block; font-style: normal; font-size: .72rem; color: var(--orange-ink); margin-top: 2px; }
.ia-tab { display: grid; gap: 4px; font-size: .8rem; }
.ia-tab div { display: grid; grid-template-columns: 118px minmax(0, 1fr) 30px; gap: 8px; align-items: center; padding: 5px 0; border-top: 1px solid var(--steel); }
.ia-tab div:first-child { border-top: 0; }
.ia-tab .mono { font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; }
.ia-tab span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.ia-tab em { color: var(--orange-ink); font-style: normal; }
.ia-tab b { text-align: right; }
.ia-doc { display: grid; gap: 2px; }
.ia-doc small { color: #C3CDE2; font-size: .75rem; }
.ia-foto { display: block; max-width: 220px; border-radius: 10px; }
.ia-atalhos { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 4px; background: var(--steel-2); }
.ia-atalhos:empty { display: none; }
.ia-atalhos button { border: 1px solid var(--navy-2); background: #fff; color: var(--navy); border-radius: 30px; padding: 7px 12px; font: 600 .82rem var(--sans); cursor: pointer; }
.ia-atalhos button:hover { background: var(--navy); color: #fff; }
.ia-form { display: flex; gap: 8px; align-items: center; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: #fff; }
.ia-anexo { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--muted); cursor: pointer; }
.ia-anexo:hover { background: var(--steel); color: var(--navy); }
.ia-anexo svg, .ia-form button svg { width: 20px; height: 20px; }
.ia-form input[type=text], .ia-form #ia-txt { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 22px; padding: 0 16px; font-size: .95rem; background: var(--steel-2); }
.ia-form #ia-txt:focus { outline: 0; border-color: var(--navy-2); background: #fff; }
.ia-form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 560px) {
  .ia-fab { right: 14px; bottom: 14px; height: 50px; padding: 0 16px 0 14px; }
  .ia-chat { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .ia-m, .ia-chat, .ia-fab { animation: none; transition: none; } }
.ia-prod b a { color: inherit; text-decoration: none; }
.ia-prod b a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
