/* Somente adaptacoes de comportamento necessarias na conversao React -> HTML. */
.mobile-nav[hidden] { display: none !important; }
.mobile-agent-link {
  justify-content: center !important;
  min-height: 42px;
  margin-top: 8px;
  border-radius: 9px;
  background: var(--teal);
  color: #fff !important;
}

/* Decisao funcional mantida: o painel da calculadora nao acompanha o scroll. */
.calc-panel { position: static; }
.roi-modal-primary,
.roi-modal-secondary {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}
.roi-modal-primary { background: var(--teal); color: #fff; }
.roi-modal-primary:hover { background: var(--teal-dark); }
.roi-modal-secondary { border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.78); }
.roi-modal-primary svg { width: 15px; }

.ai-chat-window { display: block; }
.ai-chat-feed { overflow-y: auto; }
.ai-chat-composer label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.chat-composer textarea {
  flex: 1;
  height: 50px;
  min-height: 50px;
  max-height: 120px;
  resize: none;
  border: 1px solid #dce3e5;
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--ink);
  outline: none;
  font-size: .88rem;
  line-height: 1.45;
}
.chat-composer textarea:focus {
  border-color: #71bab6;
  box-shadow: 0 0 0 3px #e1f3f2;
}
.chat-composer button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 0;
  background: var(--teal);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.25rem;
  cursor: pointer;
}
.chat-composer button:hover { background: var(--teal-dark); }
.chat-composer button:disabled { opacity: .5; cursor: not-allowed; }
.chat-composer button svg { width: 16px; height: 16px; }

.ai-chat-message-user {
  margin-left: auto;
  justify-content: flex-end;
}
.ai-chat-message-user .ai-chat-bubble {
  background: var(--teal);
  border-color: var(--teal);
  border-radius: 13px 4px 13px 13px;
  color: #fff;
}
.ai-chat-message-bot .ai-chat-bubble {
  padding: 13px 16px;
  background: #fff;
  border: 1px solid #e0e5e7;
  border-radius: 4px 13px 13px 13px;
  box-shadow: 0 4px 13px rgba(44,65,74,.05);
  color: #46545c;
  font-size: .83rem;
}
.ai-chat-message:not(.chat-message) {
  display: flex;
  gap: 11px;
  max-width: 74%;
  margin-bottom: 15px;
}
.ai-chat-message:not(.chat-message) .ai-chat-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-size: .67rem;
  font-weight: 700;
}
.ai-chat-message p { margin: 0 0 7px; }
.ai-chat-message p:last-child { margin-bottom: 0; }
.ai-chat-message-user p { color: #fff; }
.ai-chat-typing {
  align-items: center;
  gap: 4px;
  width: max-content;
  margin-left: 45px;
  padding: 12px 15px;
  border: 1px solid #e0e5e7;
  border-radius: 4px 13px 13px;
  background: #fff;
}
.ai-chat-typing:not([hidden]) { display: flex; }
.ai-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8aa3a1;
  animation: chat-dot 1.2s infinite;
}
.ai-chat-typing span:nth-child(2) { animation-delay: .15s; }
.ai-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 620px) {
  .ai-chat-message:not(.chat-message) { max-width: 92%; }
}
