.av-chatbot {
  --av-accent: #0b63ce;
  --av-ink: #10243e;
  box-sizing: border-box;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.av-chatbot *, .av-chatbot *::before, .av-chatbot *::after { box-sizing: inherit; }
.av-chatbot--floating { position: fixed; right: 22px; bottom: 22px; z-index: 99999; }
.av-chatbot__launcher {
  display: flex; align-items: center; gap: 9px; border: 0; border-radius: 999px;
  padding: 13px 18px; color: #fff; background: var(--av-accent); font-weight: 700;
  font-size: 15px; line-height: 1.2; box-shadow: 0 10px 30px rgba(16, 36, 62, .24); cursor: pointer;
}
.av-chatbot__launcher:focus-visible, .av-chatbot button:focus-visible, .av-chatbot textarea:focus-visible { outline: 3px solid #ffcc4d; outline-offset: 2px; }
.av-chatbot__panel {
  width: min(390px, calc(100vw - 28px)); height: min(610px, calc(100vh - 100px));
  background: #fff; border: 1px solid #dce5ef; border-radius: 20px; overflow: hidden;
  box-shadow: 0 18px 60px rgba(16, 36, 62, .25); color: var(--av-ink);
}
.av-chatbot--floating .av-chatbot__panel { position: absolute; right: 0; bottom: 62px; }
.av-chatbot--inline .av-chatbot__panel { width: 100%; max-width: 760px; height: 620px; margin: 24px auto; }
.av-chatbot__panel[hidden] { display: none; }
.av-chatbot__header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--av-accent); color: #fff; }
.av-chatbot__header strong, .av-chatbot__header small { display: block; }
.av-chatbot__header strong { font-size: 16px; }
.av-chatbot__header small { margin-top: 2px; opacity: .86; font-size: 12px; }
.av-chatbot__close { border: 0; background: transparent; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.av-chatbot__messages { height: calc(100% - 190px); padding: 18px; overflow-y: auto; background: #f5f8fc; }
.av-chatbot__message { max-width: 88%; margin: 0 0 12px; padding: 11px 13px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.av-chatbot__message--assistant { background: #fff; border: 1px solid #dde6f0; border-bottom-left-radius: 4px; }
.av-chatbot__message--user { margin-left: auto; background: var(--av-accent); color: #fff; border-bottom-right-radius: 4px; }
.av-chatbot__message a { color: var(--av-accent); text-decoration: underline; }
.av-chatbot__form { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 12px; background: #fff; border-top: 1px solid #e3eaf2; }
.av-chatbot__form textarea { width: 100%; min-height: 48px; max-height: 110px; resize: vertical; border: 1px solid #bdcad8; border-radius: 12px; padding: 10px 12px; color: var(--av-ink); font: inherit; font-size: 14px; }
.av-chatbot__form button { align-self: stretch; border: 0; border-radius: 12px; padding: 0 16px; background: var(--av-accent); color: #fff; font-weight: 700; cursor: pointer; }
.av-chatbot__form button:disabled { opacity: .55; cursor: wait; }
.av-chatbot__privacy { margin: 0; padding: 0 14px 12px; background: #fff; color: #607085; font-size: 11px; line-height: 1.35; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 540px) {
  .av-chatbot--floating { right: 12px; bottom: 12px; }
  .av-chatbot--floating .av-chatbot__panel { position: fixed; inset: 10px; width: auto; height: auto; border-radius: 16px; }
  .av-chatbot__messages { height: calc(100% - 190px); }
}

@media (prefers-reduced-motion: reduce) {
  .av-chatbot * { scroll-behavior: auto !important; }
}

