/* Widget de chat — visual estilo WhatsApp, sem ícones de chamada, pronto pro site */
#aj-chat-bubble {
  position: fixed; bottom: 100px; right: 22px; z-index: 999999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; cursor: pointer; border: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
#aj-chat-window {
  position: fixed; bottom: 168px; right: 22px; z-index: 999999;
  width: 360px; max-width: 92vw; height: 500px;
  background: #0B141A; border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  display: none; flex-direction: column;
  font-family: 'Segoe UI', Arial, sans-serif;
}
#aj-chat-window.open { display: flex; }
#aj-chat-header {
  background: linear-gradient(90deg, #075E54, #128C7E);
  padding: 12px 14px; display: flex; align-items: center; gap: 10px;
}
#aj-chat-header .aj-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #C9A24B;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #2A1B12; font-size: 13px;
}
#aj-chat-header .aj-title { color: #fff; font-size: 14px; font-weight: 600; }
#aj-chat-header .aj-status { color: #CFE9E4; font-size: 11px; }
#aj-chat-header .aj-close { margin-left: auto; color: #fff; cursor: pointer; font-size: 18px; }

#aj-chat-thread {
  flex: 1; overflow-y: auto; padding: 12px 8px;
  background-color: #E5DDD5;
  display: flex; flex-direction: column; gap: 2px;
}
.aj-row { display: flex; margin: 3px 6px; }
.aj-row.in { justify-content: flex-start; }
.aj-row.out { justify-content: flex-end; }
.aj-bubble {
  max-width: 80%; padding: 7px 10px 8px; border-radius: 8px;
  font-size: 13.5px; line-height: 1.45; color: #111B21;
  white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0,0,0,.12);
  word-break: break-word; overflow-wrap: anywhere;
}
.aj-bubble.in { background: #fff; border-top-left-radius: 2px; }
.aj-bubble.out { background: #DCF8C6; border-top-right-radius: 2px; }

.aj-typing {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; padding: 11px 14px; border-radius: 8px;
  border-top-left-radius: 2px; margin: 3px 6px;
}
.aj-typing .aj-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #93A29C;
  animation: aj-bounce 1.2s infinite ease-in-out;
}
.aj-typing .aj-dot:nth-child(2) { animation-delay: .15s; }
.aj-typing .aj-dot:nth-child(3) { animation-delay: .3s; }
@keyframes aj-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

#aj-chat-input {
  background: #F0F0F0; padding: 8px; display: flex; gap: 8px; align-items: center;
}
#aj-attach {
  cursor: pointer; font-size: 20px; padding: 4px 6px; flex-shrink: 0;
}
#aj-chat-input input {
  flex: 1; padding: 10px 14px; border-radius: 22px; border: none; font-size: 13.5px;
}
#aj-chat-input button {
  width: 38px; height: 38px; border-radius: 50%; background: #128C7E;
  border: none; color: #fff; font-size: 16px; cursor: pointer;
}
#aj-chat-footer {
  background: #F0F0F0; text-align: center; padding: 4px 0 8px;
}
.aj-insta-btn {
  font-size: 11.5px; color: #8696A0; text-decoration: none;
}
.aj-insta-btn:hover { text-decoration: underline; }
