/* OInsulano — estilos do widget de chat (F3). */

.chat-btn {
  position: fixed;
  right: 18px;
  bottom: 140px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: #0F766E;
  color: #fff;
  font: 600 15px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 118, 110, .32);
}
.chat-btn:hover { background: #115E59; }
.chat-btn__tx { display: inline-block; }

.chat-win {
  position: fixed;
  right: 18px;
  bottom: 200px;
  z-index: 9001;
  width: min(380px, calc(100vw - 36px));
  max-height: min(520px, calc(100vh - 260px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, .18);
  overflow: hidden;
}
.chat-win[hidden] { display: none; }

.chat-win__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #0F766E;
  color: #fff;
}
.chat-win__tit strong { display: block; font-size: 15px; }
.chat-win__tit small { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.chat-win__x {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.chat-win__msgs {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px;
  background: #F9FAFB;
}

.chat-msg { margin: 0 0 10px; }
.chat-msg p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-msg--bot p { background: #fff; border: 1px solid #E5E7EB; border-top-left-radius: 4px; }
.chat-msg p a { color: #0F766E; text-decoration: underline; word-break: break-all; }
.chat-msg--me p a { color: #fff; }
.chat-msg--me { text-align: right; }
.chat-msg--me p { background: #0F766E; color: #fff; border-top-right-radius: 4px; display: inline-block; text-align: left; }

.chat-fontes { margin: -4px 0 10px; font-size: 12px; }
.chat-fontes__t { color: #6B7280; margin-right: 6px; }
.chat-fontes a {
  display: inline-block;
  margin: 2px 6px 2px 0;
  color: #0F766E;
  text-decoration: underline;
}

.chat-fb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6B7280; margin-bottom: 10px; }
.chat-fb button {
  border: 1px solid #E5E7EB;
  background: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
}
.chat-fb button:hover { border-color: #0F766E; color: #0F766E; }

.chat-win__form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #E5E7EB;
  background: #fff;
}
.chat-win__form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font: 400 14px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.chat-win__form input:focus { outline: 2px solid #0F766E; outline-offset: 1px; }
.chat-win__send {
  border: 0;
  border-radius: 10px;
  background: #0F766E;
  color: #fff;
  padding: 10px 14px;
  font: 600 14px/1 system-ui, sans-serif;
  cursor: pointer;
}
.chat-win__send:hover { background: #115E59; }

.chat-win__aviso {
  margin: 0;
  padding: 0 12px 10px;
  font-size: 11px;
  color: #9CA3AF;
  background: #fff;
}

@media (max-width: 480px) {
  .chat-btn { right: 12px; bottom: 140px; padding: 11px 13px; }
  .chat-btn__tx { display: none; }
  .chat-win { right: 10px; bottom: 200px; width: calc(100vw - 20px); }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

}
