#affronter-chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  font-family: system-ui, sans-serif;
}

#affronter-chat-toggle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg,#8b5cf6,#06b6d4);
  color: white;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

#affronter-chat-panel {
  width: min(360px, calc(100vw - 32px));
  height: 520px;
  background: #0f172a;
  color: white;
  border: 1px solid #334155;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
}

.affronter-chat-header {
  padding: 14px;
  background: #111827;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid #334155;
}

#affronter-chat-close {
  background: transparent;
  color: white;
  border: 0;
  font-size: 24px;
  cursor:pointer;
}

#affronter-chat-messages {
  flex:1;
  padding: 14px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.affronter-message {
  padding: 10px 12px;
  border-radius: 14px;
  max-width: 86%;
  font-size: 14px;
  line-height:1.35;
}

.affronter-message.assistant {
  background: #1e293b;
  align-self:flex-start;
}

.affronter-message.visitor {
  background: #7c3aed;
  align-self:flex-end;
}

#affronter-chat-form {
  display:flex;
  gap:8px;
  padding: 12px;
  border-top:1px solid #334155;
}

#affronter-chat-input {
  flex:1;
  border-radius: 12px;
  border:1px solid #334155;
  background:#020617;
  color:white;
  padding: 10px;
}

#affronter-chat-form button {
  border:0;
  border-radius: 12px;
  background:#8b5cf6;
  color:white;
  padding: 10px 12px;
  cursor:pointer;
}

.affronter-chat-panel.is-closed {
  display: none !important;
}
