/* Bruna, assistente virtual do RH (chat do site publico, 03/12/2026). Mobile primeiro; usa as variaveis do site.css. */
.bru, .bru * { box-sizing: border-box; }
.bru { font-family: var(--fonte, 'Plus Jakarta Sans', system-ui, sans-serif); color: var(--tinta, #121A33); }
.bru button { font-family: inherit; }
.bru-av { position: relative; width: 48px; height: 48px; flex: none; }
.bru-av .bru-face { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--roxo, #7A44F1); }
.bru-av svg { display: block; width: 100%; height: 100%; }
.bru-av .bru-on { position: absolute; right: 0; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--verde, #20BE57); border: 2px solid #fff; }

/* botao no canto */
.bru-lan { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 85; display: flex; align-items: center; gap: 10px;
  min-height: 60px; padding: 6px 20px 6px 6px; border-radius: 999px; border: 1px solid var(--linha, #E3E7F0); background: #fff; color: var(--tinta, #121A33);
  box-shadow: 0 14px 34px rgba(18, 26, 51, .22); cursor: pointer; text-align: left; transition: padding .2s ease, transform .2s ease; }
.bru-lan:hover { transform: translateY(-2px); }
.bru-lan b { display: block; font-size: 15px; line-height: 1.2; font-weight: 700; }
.bru-lan small { display: block; font-size: 13px; line-height: 1.3; color: var(--suave, #67718A); white-space: nowrap; font-weight: 500; }
.bru-lan.bru-compacto { padding: 6px; }
.bru-lan.bru-compacto .bru-ltx { display: none; }
.bru-com-barra .bru-lan { bottom: calc(92px + env(safe-area-inset-bottom)); }

.bru-balao { position: fixed; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 85; max-width: 250px; display: flex; align-items: flex-start; gap: 4px;
  background: #fff; color: var(--tinta, #121A33); border: 1px solid var(--linha, #E3E7F0); border-radius: 16px 16px 4px 16px; padding: 12px 6px 12px 14px;
  box-shadow: 0 10px 26px rgba(18, 26, 51, .18); font-size: 14px; line-height: 1.4; font-weight: 600; animation: bru-entra .3s ease both; }
.bru-balao span { cursor: pointer; }
.bru-balao button { flex: none; width: 32px; height: 32px; margin: -6px 0 -6px 0; border: 0; background: transparent; color: var(--suave, #67718A); border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.bru-balao button svg { width: 16px; height: 16px; }
.bru-com-barra .bru-balao { bottom: calc(164px + env(safe-area-inset-bottom)); }

/* janela */
.bru-jan { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; background: var(--fundo, #F5F7FB); height: 100vh; height: 100dvh; }
.bru-top { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); background: #fff; border-bottom: 1px solid var(--linha, #E3E7F0); }
.bru-top .bru-av { width: 44px; height: 44px; }
.bru-quem { flex: 1; min-width: 0; }
.bru-quem b { display: block; font-size: 17px; line-height: 1.2; font-weight: 700; color: var(--tinta, #121A33); }
.bru-quem small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--suave, #67718A); line-height: 1.3; margin-top: 2px; font-weight: 500; }
.bru-quem small i { width: 8px; height: 8px; border-radius: 50%; background: var(--verde, #20BE57); flex: none; }
.bru-ico { width: 44px; height: 44px; flex: none; border: 0; background: transparent; border-radius: 50%; color: var(--suave, #67718A); display: grid; place-items: center; cursor: pointer; }
.bru-ico:hover { background: var(--fundo, #F5F7FB); color: var(--tinta, #121A33); }
.bru-ico svg { width: 21px; height: 21px; }

.bru-msgs { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 20px; display: flex; flex-direction: column; gap: 6px; }
.bru-msgs > * { animation: bru-entra .28s ease both; }
@keyframes bru-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bru-b { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.bru-b p { margin: 0; }
.bru-b p + p, .bru-b p + ul, .bru-b p + ol, .bru-b ul + p, .bru-b ol + p { margin-top: 8px; }
.bru-b ul, .bru-b ol { margin: 6px 0 0; padding-left: 20px; }
.bru-b li + li { margin-top: 3px; }
.bru-u { align-self: flex-end; background: var(--azul, #1B378B); color: #fff; border-bottom-right-radius: 6px; margin-top: 10px; white-space: pre-line; }
.bru-r { align-self: flex-start; background: #fff; color: var(--tinta, #121A33); border: 1px solid var(--linha, #E3E7F0); border-bottom-left-radius: 6px; }
.bru-r strong { font-weight: 700; color: var(--azul, #1B378B); }
.bru-erro { align-self: flex-start; font-size: 14px; color: #A3201A; background: #FDE7E5; border-radius: 12px; padding: 8px 12px; }
.bru-digitando { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: #fff; border: 1px solid var(--linha, #E3E7F0); border-radius: 18px 18px 18px 6px; }
.bru-digitando i { width: 7px; height: 7px; border-radius: 50%; background: #A3ABC0; animation: bru-pula 1s infinite ease-in-out; }
.bru-digitando i:nth-child(2) { animation-delay: .15s; } .bru-digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes bru-pula { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.bru-sug { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.bru-sug button { min-height: 44px; padding: 8px 14px; border-radius: 14px; border: 1.5px solid var(--roxo, #7A44F1); background: #fff; color: var(--roxo-escuro, #6532D8);
  font-size: 14px; font-weight: 600; line-height: 1.3; text-align: left; cursor: pointer; }
.bru-sug button:hover { background: var(--roxo-claro, #F1EBFF); }

.bru-cards { align-self: stretch; display: grid; gap: 8px; margin-top: 6px; }
.bru-card { background: #fff; border: 1px solid var(--linha, #E3E7F0); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; }
.bru-card-nm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--tinta, #121A33); }
.bru-pro { font-size: 12px; font-weight: 700; color: #fff; background: var(--roxo, #7A44F1); border-radius: 6px; padding: 1px 7px; line-height: 1.6; }
.bru-ver { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--verde-escuro, #179A45); font-weight: 600; }
.bru-ver svg { width: 14px; height: 14px; }
.bru-card p { margin: 0; font-size: 14px; color: var(--texto, #3A4560); line-height: 1.45; }
.bru-card .bru-loc { font-size: 13px; color: var(--suave, #67718A); }
.bru-card-bts { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.bru-card-bts a { flex: 1 1 130px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 14px; font-weight: 700; text-decoration: none; padding: 0 12px; }
.bru-card-bts .bru-orc { background: var(--roxo, #7A44F1); color: #fff; }
.bru-card-bts .bru-orc:hover { background: var(--roxo-escuro, #6532D8); text-decoration: none; }
.bru-card-bts .bru-perfil { border: 1.5px solid var(--linha, #E3E7F0); color: var(--tinta, #121A33); background: #fff; }
.bru-todas { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--azul, #1B378B); }

.bru-pe { background: #fff; border-top: 1px solid var(--linha, #E3E7F0); padding: 10px 12px calc(8px + env(safe-area-inset-bottom)); }
.bru-form { display: flex; gap: 8px; align-items: flex-end; }
.bru-form textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 128px; resize: none; border: 1.5px solid var(--linha, #E3E7F0); border-radius: 16px; padding: 12px 14px;
  font: 16px/1.4 var(--fonte, sans-serif); color: var(--tinta, #121A33); background: var(--fundo, #F5F7FB); outline: none; }
.bru-form textarea:focus { border-color: var(--roxo, #7A44F1); background: #fff; }
.bru-env { width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: var(--roxo, #7A44F1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.bru-env:disabled { background: #C9CEDC; cursor: default; }
.bru-env svg { width: 22px; height: 22px; }
.bru-aviso { margin: 6px 4px 0; font-size: 13px; line-height: 1.4; color: var(--suave, #67718A); text-align: center; }

@media (min-width: 720px) {
  .bru-lan { right: 24px; bottom: 24px; }
  .bru-balao { right: 24px; bottom: 96px; }
  .bru-com-barra .bru-lan { bottom: 24px; } .bru-com-barra .bru-balao { bottom: 96px; }
  .bru-jan { inset: auto 24px 24px auto; width: 400px; height: min(660px, calc(100vh - 48px)); border-radius: 22px; overflow: hidden;
    box-shadow: 0 30px 70px rgba(18, 26, 51, .32); border: 1px solid var(--linha, #E3E7F0); }
}
@media (prefers-reduced-motion: reduce) { .bru-msgs > *, .bru-balao { animation: none; } .bru-digitando i { animation: none; } .bru-lan { transition: none; } }
