#adage-chatbot-ia.adage-chatbot-ia {
  position: fixed;
  right: 32px;
  bottom: 24px;
  z-index: 2147483647;
  width: min(420px, calc(100vw - 24px));
  font-family: Inter, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  --adage-status-color: #13945b;
  --adage-bot-text-color: #fff;
  --adage-bot-background-color: #2d1c45;
  --adage-user-text-color: #2b2826;
  --adage-user-background-color: #e7e3dc;
}

#adage-chatbot-ia .adage-chatbot-ia__toggle {
  width: 68px;
  height: 68px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


#adage-chatbot-ia .adage-chatbot-ia__toggle {
  display: block;
  margin-left: auto;
}

@media (max-width: 640px) {
  #adage-chatbot-ia.adage-chatbot-ia {
    right: 16px;
    bottom: 16px;
  }
}

#adage-chatbot-ia .adage-chatbot-ia__panel { margin-top: 0; background: #f7f7f7; border: 1px solid #e5e7eb; border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.16); overflow: hidden; }
#adage-chatbot-ia .adage-chatbot-ia__header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px; border-bottom:1px solid #e6e4e0; background:#f7f7f7; }
#adage-chatbot-ia .adage-chatbot-ia__header-main { display:flex; align-items:center; gap:12px; }
#adage-chatbot-ia .adage-chatbot-ia__avatar { width:44px; height:44px; border-radius:50%; object-fit:cover; background:#ddd; }
#adage-chatbot-ia .adage-chatbot-ia__avatar--toggle { width:100%; height:100%; }
#adage-chatbot-ia .adage-chatbot-ia__bot-name { font-size:15px; }
#adage-chatbot-ia .adage-chatbot-ia__bot-status { margin:0; color:var(--adage-status-color); font-size:small; }
#adage-chatbot-ia .adage-chatbot-ia__close { border:0; background:transparent; font-size:24px; line-height:1; cursor:pointer; color:#4b5563; }
#adage-chatbot-ia .adage-chatbot-ia__messages { max-height:360px; overflow-y:auto; padding:16px 18px; }
#adage-chatbot-ia .adage-chatbot-ia__message-row { display:flex; margin:0 0 12px; gap:10px; }
#adage-chatbot-ia .adage-chatbot-ia__message-row--user { justify-content:flex-end; }

#adage-chatbot-ia .adage-chatbot-ia__message {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 80%;
}

#adage-chatbot-ia .adage-chatbot-ia__message p { margin: 0 0 10px; }
#adage-chatbot-ia .adage-chatbot-ia__message p:last-child { margin-bottom: 0; }
#adage-chatbot-ia .adage-chatbot-ia__message ul { margin: 0 0 10px 18px; padding: 0; }
#adage-chatbot-ia .adage-chatbot-ia__message li { margin-bottom: 6px; }

#adage-chatbot-ia .adage-chatbot-ia__message--user { background:var(--adage-user-background-color); color:var(--adage-user-text-color); }
#adage-chatbot-ia .adage-chatbot-ia__message--bot { background:var(--adage-bot-background-color); color:var(--adage-bot-text-color); }

#adage-chatbot-ia .adage-chatbot-ia__form { display:flex; align-items:flex-end; gap:10px; border-top:0; padding:12px 18px 18px; }
#adage-chatbot-ia .adage-chatbot-ia__form textarea { flex:1; border:1px solid #d8d4ce; border-radius:22px; padding:14px 16px; background:var(--adage-user-background-color); font-family:inherit; font-size:14px; line-height:1.4; resize:none; overflow-y:auto; max-height:120px; box-sizing:border-box; }
#adage-chatbot-ia .adage-chatbot-ia__message--user { white-space:pre-wrap; }

#adage-chatbot-ia .adage-chatbot-ia__send {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--adage-bot-background-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#adage-chatbot-ia .adage-chatbot-ia__loader {
  background: var(--adage-bot-background-color);
  border-radius: 16px;
  padding: 14px 16px;
  display: inline-flex;
  gap: 6px;
}

#adage-chatbot-ia .adage-chatbot-ia__loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8f8b85;
  animation: adage-chatbot-ia-blink 1.3s infinite;
}

#adage-chatbot-ia .adage-chatbot-ia__loader span:nth-child(2) { animation-delay: .2s; }
#adage-chatbot-ia .adage-chatbot-ia__loader span:nth-child(3) { animation-delay: .4s; }

@keyframes adage-chatbot-ia-blink {
  0%, 80%, 100% { opacity: .4; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

#adage-chatbot-ia .adage-chatbot-ia__send { transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease; }
#adage-chatbot-ia .adage-chatbot-ia__send:hover { background:var(--adage-status-color); box-shadow:0 8px 18px rgba(91,58,141,.35); transform: translateY(-1px); }
#adage-chatbot-ia .adage-chatbot-ia__send:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 3px #5b3a8d; }

#adage-chatbot-ia [hidden] {
  display: none !important;
}
