.clp-chatbot {
  --clp-accent: #cf2e2e; --clp-bg: #fff; --clp-text: #182923;
  --clp-muted: #53655d; --clp-border: #dce5df; --clp-radius: 20px;
  --clp-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --clp-width: 380px; --clp-z-index: 99990;
  font: 15px/1.5 var(--clp-font); color: var(--clp-text); text-align: left;
}
.clp-chatbot *, .clp-chatbot *::before, .clp-chatbot *::after { box-sizing: border-box; }
.clp-chatbot [hidden] { display: none !important; }
.clp-chatbot button, .clp-chatbot input { font: inherit; letter-spacing: normal; text-transform: none; margin: 0; }
.clp-chatbot button { appearance: none; border: 0; cursor: pointer; line-height: 1.4; }
.clp-chatbot button:disabled { cursor: wait; opacity: .65; }
.clp-chatbot button:focus-visible, .clp-chatbot input:focus-visible, .clp-chatbot a:focus-visible { outline: 3px solid var(--clp-accent); outline-offset: 3px; }
.clp-chatbot--floating { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); z-index: var(--clp-z-index); width: min(var(--clp-width), calc(100vw - 32px)); pointer-events: none; }
.clp-chatbot--right { right: 20px; }
.clp-chatbot--left { left: 20px; }
.clp-chatbot--inline { position: relative; width: min(100%, var(--clp-width)); margin: 24px auto; }
.clp-chatbot__launcher { display: block; margin-left: auto !important; padding: 14px 20px; border-radius: 999px; background: var(--clp-accent); color: #fff; box-shadow: 0 6px 25px #0002; pointer-events: auto; }
.clp-chatbot--left .clp-chatbot__launcher { margin-left: 0 !important; }
.clp-chatbot__panel { display: flex; flex-direction: column; height: min(560px, calc(100dvh - 40px)); min-height: 280px; background: var(--clp-bg); color: var(--clp-text); border: 1px solid var(--clp-border); border-radius: var(--clp-radius); box-shadow: 0 12px 50px #0003; overflow: hidden; pointer-events: auto; }
.clp-chatbot__header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px; background: var(--clp-accent); color: #fff; }
.clp-chatbot__header strong { font-size: 17px; font-weight: 700; color: inherit; }
.clp-chatbot__header small { display: block; font-size: 12px; color: inherit; opacity: .85; }
.clp-chatbot__actions { display: flex; align-items: center; gap: 8px; }
.clp-chatbot__reset, .clp-chatbot__close { padding: 7px; border-radius: 8px; background: #ffffff20; color: #fff; }
.clp-chatbot__close { font-size: 24px !important; width: 36px; }
.clp-chatbot__messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.clp-chatbot__message { width: fit-content; max-width: 92%; margin: 0 0 12px; padding: 11px 13px; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 14px; background: #eef3f0; color: var(--clp-text); }
.clp-chatbot__message--user { margin-left: auto; background: var(--clp-accent); color: #fff; }
.clp-chatbot__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.clp-chatbot__links a { color: var(--clp-accent); border: 1px solid var(--clp-border); padding: 6px 10px; border-radius: 8px; font-size: 13px; text-decoration: underline; }
.clp-chatbot__status { min-height: 22px; margin: 0; padding: 0 16px; font-size: 12px; color: var(--clp-muted); }
.clp-chatbot__form { display: flex; gap: 8px; margin: 0; padding: 12px 14px; border-top: 1px solid var(--clp-border); }
.clp-chatbot__input { appearance: none; flex: 1; min-width: 0; width: auto; height: auto; padding: 10px; border: 1px solid var(--clp-border); border-radius: 10px; background: var(--clp-bg); color: var(--clp-text); box-shadow: none; }
.clp-chatbot__send { padding: 10px 12px; border-radius: 10px; background: var(--clp-accent); color: #fff; }
.clp-chatbot__privacy { margin: 0; padding: 0 14px 12px; color: var(--clp-muted); font-size: 11px; line-height: 1.5; }
.clp-chatbot__privacy a { color: inherit; text-decoration: underline; }
.clp-chatbot__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 480px) { .clp-chatbot--floating { right: 16px; left: 16px; width: auto; } .clp-chatbot__input { font-size: 16px; } }
