/* O widget injeta esses estilos, mas a CSP do site só aceita folhas locais. */
.ipvia {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  color: #2c2e31;
  font: 15px/1.45 Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ipvia * { box-sizing: border-box; }
.ipvia-bot {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #e3ecfb 0, #86a2d6 34%, #46679f 72%, #233a66 100%);
  box-shadow: inset -5px -6px 12px rgb(14 22 36 / 32%), 0 10px 24px -8px rgb(65 97 155 / 60%);
  cursor: pointer;
  transition: transform .2s;
}
.ipvia-bot:hover { transform: scale(1.06); }
.ipvia-bot:focus-visible { outline: 3px solid rgb(82 120 188 / 55%); outline-offset: 3px; }
.ipvia-bot i { position: absolute; top: 22px; width: 10px; height: 18px; border-radius: 9px; background: #fff; }
.ipvia-bot i:first-child { left: 20px; }
.ipvia-bot i:last-child { right: 20px; }
.ipvia-caixa {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(92vw, 360px);
  height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8ecf2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px -20px rgb(30 40 70 / 45%);
}
.ipvia-caixa[hidden] { display: none; }
.ipvia-topo { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 12px 16px; border-bottom: 1px solid #e8ecf2; }
.ipvia-topo b { font-weight: 600; }
.ipvia-topo small { display: block; color: #6b7280; font-size: 12px; }
.ipvia-x { width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: #6b7280; font-size: 22px; cursor: pointer; }
.ipvia-x:hover { background: #f7f9fc; }
.ipvia-lista { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 14px; list-style: none; }
.ipvia-lista li { max-width: 86%; padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ipvia-lista .ipvia-p { align-self: flex-end; border-bottom-right-radius: 5px; background: #5278bc; color: #fff; }
.ipvia-lista .ipvia-i { align-self: flex-start; border: 1px solid #e8ecf2; border-bottom-left-radius: 5px; background: #f7f9fc; }
.ipvia-e { color: #6b7280; font-style: normal; }
.ipvia-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e8ecf2; }
.ipvia-form input { flex: 1; min-width: 0; padding: 11px 13px; border: 1.5px solid #e8ecf2; border-radius: 14px; font: inherit; font-size: 16px; }
.ipvia-form input:focus { outline: none; border-color: #5278bc; }
.ipvia-form button { border: 0; border-radius: 14px; padding: 0 16px; background: #5278bc; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ipvia-form button[disabled] { opacity: .6; cursor: default; }
