#rr-chat, #rr-chat * { box-sizing: border-box; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
#rr-chat { --rr-c: #1d4f7a; position: fixed; right: 20px; bottom: 20px; z-index: 99999; line-height: 1.4; }
#rr-chat #rr-bouton { display: flex; align-items: center; gap: 8px; background: var(--rr-c); color: #fff; border: 0; border-radius: 999px; padding: 14px 20px; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
#rr-chat #rr-bouton:hover { filter: brightness(1.1); }
#rr-chat #rr-fenetre { display: none; position: absolute; right: 0; bottom: 64px; width: 390px; max-width: calc(100vw - 24px); height: 620px; max-height: calc(100vh - 110px); background: #fff; border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.3); flex-direction: column; overflow: hidden; }
#rr-chat.rr-ouverte #rr-fenetre { display: flex; }
#rr-chat #rr-entete { background: var(--rr-c); color: #fff; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#rr-chat #rr-titre { display: block; font-size: 15px; font-weight: 600; }
#rr-chat #rr-sous-titre { display: block; font-size: 12px; opacity: .85; }
#rr-chat #rr-fermer { background: transparent; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
#rr-chat #rr-messages { position: relative; flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f3f4f6; }
#rr-chat .rr-msg { max-width: 90%; padding: 9px 12px; border-radius: 12px; font-size: 14.5px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
#rr-chat .rr-bot { background: #fff; align-self: flex-start; border-bottom-left-radius: 3px; color: #222; }
#rr-chat .rr-bot a { color: var(--rr-c); font-weight: 600; text-decoration: underline; }
#rr-chat .rr-user { background: var(--rr-c); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
#rr-chat .rr-attente { color: #777; font-style: italic; }
#rr-chat .rr-actions { display: flex; flex-wrap: wrap; gap: 6px; }
#rr-chat .rr-action { display: inline-block; text-decoration: none; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 18px; border: 1px solid var(--rr-c); color: var(--rr-c); background: #fff; }
#rr-chat .rr-action.rr-primaire { background: var(--rr-c); color: #fff; }
#rr-chat .rr-action:hover { filter: brightness(.93); }
#rr-chat #rr-chips { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; background: #f3f4f6; border-top: 1px solid #e5e7eb; }
#rr-chat .rr-chip { flex: 0 0 auto; border: 1px solid var(--rr-c); color: var(--rr-c); background: #fff; border-radius: 16px; padding: 5px 11px; font-size: 13px; cursor: pointer; white-space: nowrap; }
#rr-chat .rr-chip:hover { background: var(--rr-c); color: #fff; }
#rr-chat #rr-note { font-size: 11px; color: #667; padding: 4px 12px 6px; background: #f3f4f6; }
#rr-chat #rr-form { display: flex; border-top: 1px solid #e5e7eb; background: #fff; }
#rr-chat #rr-saisie { flex: 1; border: 0; padding: 14px; font-size: 15px; outline: none; background: #fff; color: #222; min-width: 0; }
#rr-chat #rr-envoyer { border: 0; background: transparent; color: var(--rr-c); font-weight: 700; padding: 0 16px; cursor: pointer; font-size: 15px; }
#rr-chat #rr-envoyer[disabled] { opacity: .5; cursor: default; }
@media (max-width: 480px) {
  #rr-chat { right: 12px; bottom: 12px; }
  #rr-chat #rr-fenetre { position: fixed; right: 12px; left: 12px; bottom: 76px; width: auto; max-width: none; height: calc(100vh - 100px); }
}
