.website-chatbot {
  --chat-ink: #173e52;
  --chat-brand: var(--primary, #043d5d);
  --chat-teal: #10aeb8;
  --chat-muted: #5e7786;
  --chat-pale: #edf6fa;
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 999;
  color: var(--chat-ink);
  font-size: 14px;
  line-height: 1.55;
}
.website-chatbot [hidden] { display: none !important; }
.website-chatbot *, .website-chatbot *::before, .website-chatbot *::after { box-sizing: border-box; }
.website-chatbot button, .website-chatbot textarea { font: inherit; }
.website-chatbot button { cursor: pointer; }
.website-chatbot :is(button, textarea):focus-visible { outline: 2px solid var(--chat-teal); outline-offset: 3px; }
.website-chatbot__launcher { position: relative; display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: var(--chat-brand); color: #fff; box-shadow: 0 5px 18px #123c502b; }
.website-chatbot__launcher:hover { filter: brightness(1.1); }
.website-chatbot__launcher img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.website-chatbot__badge { position: absolute; right: -2px; bottom: -2px; padding: 1px 6px; border-radius: 6px; background: #fff; color: var(--chat-ink); font-size: 11px; font-weight: 700; }
.website-chatbot__launcher--attention { transform-origin: 50% 75%; animation: website-chatbot-wiggle .8s ease-in-out .7s 1; }
@keyframes website-chatbot-wiggle {
  0%, 50%, 100% { transform: rotate(0); }
  12.5%, 62.5% { transform: rotate(-3deg); }
  25%, 75% { transform: rotate(3deg); }
  37.5%, 87.5% { transform: rotate(-1deg); }
}
.website-chatbot__panel { position: fixed; right: 120px; bottom: 40px; display: flex; flex-direction: column; width: 420px; max-width: calc(100vw - 32px); height: 620px; max-height: calc(100dvh - 32px); overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 16px 56px #123c5033; font-size: 14px; }
.website-chatbot__header { position: relative; isolation: isolate; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: start; column-gap: 14px; flex-shrink: 0; padding: 24px 18px 34px; background: linear-gradient(120deg, #13aeb9 -20%, var(--chat-brand) 68%); color: #fff; }
.website-chatbot__header::before, .website-chatbot__header::after { content: ''; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; }
.website-chatbot__header::before { width: 310px; height: 170px; right: -100px; bottom: -96px; border: 28px solid #ffffff0c; transform: rotate(-20deg); }
.website-chatbot__header::after { width: 280px; height: 150px; left: -140px; bottom: -100px; background: #12b3bd20; }
.website-chatbot__portrait { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-top: 1px; border: 2px solid #ffffffb3; border-radius: 50%; background: #d4edf4; color: var(--chat-brand); }
.website-chatbot__portrait img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.website-chatbot__portrait-dot { position: absolute; right: -1px; bottom: 0; width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; background: #2cd67b; }
.website-chatbot__identity { min-width: 0; }
.website-chatbot__header h2 { margin: 0; color: inherit; font-family: inherit; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.website-chatbot__header p { margin: 5px 0 0; color: #e3f1f5; font-size: 14px; line-height: 1.4; }
.website-chatbot__welcome { display: inline-flex; align-items: center; gap: 7px; margin: 10px 0 0; padding: 4px 9px; border: 1px solid #ffffff40; border-radius: 999px; color: #eaf9fb; font-size: 11px; line-height: 1.3; white-space: nowrap; }
.website-chatbot__welcome > span { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #38de92; }
.website-chatbot__actions { display: flex; align-items: center; gap: 1px; margin: -7px -7px 0 0; }
.website-chatbot__close { display: grid; place-items: center; width: 32px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #fff; }
.website-chatbot__close:hover { background: #ffffff18; }
.website-chatbot__messages { position: relative; display: flex; flex-direction: column; gap: 16px; flex: 1; min-height: 0; margin-top: -16px; padding: 16px 18px; border-radius: 24px 24px 0 0; overflow: auto; background: #fff; overscroll-behavior: contain; scrollbar-color: #a1bdc9 #f4f9fb; scrollbar-width: thin; }
.website-chatbot__day { align-self: center; flex-shrink: 0; padding: 4px 15px; border-radius: 999px; background: #f0f8fb; color: var(--chat-muted); font-size: 11px; line-height: 1.4; }
.website-chatbot__message { position: relative; display: flex; flex-direction: column; align-self: flex-start; flex-shrink: 0; max-width: calc(100% - 44px); margin: 0 0 0 44px; }
.website-chatbot__bubble { min-width: 0; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: var(--chat-pale); color: var(--chat-ink); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.website-chatbot__message--user { align-self: flex-end; margin: 0 44px 0 0; }
.website-chatbot__message--user .website-chatbot__bubble { border-radius: 18px 18px 6px 18px; background: var(--chat-brand); color: #fff; }
.website-chatbot__avatar { position: absolute; left: -44px; top: 3px; display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: var(--chat-brand); color: #fff; pointer-events: none; }
.website-chatbot__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.website-chatbot__avatar svg { width: 18px; height: 18px; }
.website-chatbot__message--user .website-chatbot__avatar { left: auto; right: -44px; background: #e1f3f9; color: #107b9e; font-size: 19px; }
.website-chatbot__meta { display: flex; align-items: center; gap: 5px; margin: 4px 5px 0; color: var(--chat-muted); font-size: 10px; line-height: 1.4; }
.website-chatbot__message--user .website-chatbot__meta { align-self: flex-end; }
.website-chatbot__delivery { color: #1788a7; font-size: 12px; }
.website-chatbot__typing .website-chatbot__bubble { display: flex; align-items: center; gap: 9px; font-size: 12px; white-space: normal; }
.website-chatbot__typing-dots { display: flex; gap: 4px; }
.website-chatbot__typing-dots span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: website-chatbot-typing 1.2s ease-in-out infinite; }
.website-chatbot__typing-dots span:nth-child(2) { animation-delay: .15s; }
.website-chatbot__typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes website-chatbot-typing { 0%, 60%, 100% { opacity: .4; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .website-chatbot__typing-dots span, .website-chatbot__launcher--attention { animation: none; } }
.website-chatbot__sources { display: grid; gap: 8px; margin-top: 12px; white-space: normal; }
.website-chatbot__sources a { color: var(--chat-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.website-chatbot__sources a:hover { text-decoration-thickness: 2px; }
.website-chatbot__sources a:focus-visible { outline: 2px solid var(--chat-teal); outline-offset: 3px; }
.website-chatbot__status { margin: 0; padding: 0 18px 10px; background: #fff; color: #315769; font-size: 12px; }
.website-chatbot__status:empty { display: none; }
.website-chatbot__suggestions { display: flex; flex-shrink: 0; gap: 6px; padding: 8px 14px 12px; background: #fff; }
.website-chatbot__suggestions button { display: inline-flex; align-items: center; justify-content: center; flex: 1; gap: 6px; min-width: 0; min-height: 44px; padding: 8px; border: 0; border-radius: 999px; background: #eaf6fa; color: #174d67; font-size: 12px; line-height: 1.4; }
.website-chatbot__suggestions button i { color: #1186a1; font-size: 16px; }
.website-chatbot__suggestions button:hover { background: #d9f0f5; }
.website-chatbot__suggestions button:active { background: #cce8f1; }
.website-chatbot__form { position: relative; flex-shrink: 0; padding: 12px 14px 16px; border-top: 1px solid #e8f0f4; background: #fff; }
.website-chatbot__form label { display: block; margin: 0 0 8px 4px; color: #194d65; font-size: 12px; font-weight: 600; }
.website-chatbot__compose { display: flex; align-items: flex-end; gap: 8px; }
.website-chatbot__input { display: flex; align-items: flex-end; flex: 1; min-width: 0; padding: 3px; border: 1px solid #c5d7df; border-radius: 20px; background: #fff; }
.website-chatbot__input:focus-within { border-color: #16899f; box-shadow: 0 0 0 2px #14899e13; }
.website-chatbot__compose textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 90px; padding: 10px 12px 8px; resize: none; border: 0; border-radius: 16px; background: #fff; color: var(--chat-ink); font-size: 13px; line-height: 1.5; caret-color: var(--chat-brand); }
.website-chatbot__compose textarea:focus-visible { outline: 0; }
.website-chatbot__compose textarea::placeholder { color: var(--chat-muted); opacity: 1; }
.website-chatbot__compose button[type="submit"] { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, #0b829d, var(--chat-brand)); color: #fff; box-shadow: 0 4px 10px #05435a1a; }
.website-chatbot__compose button[type="submit"] svg { width: 23px; height: 23px; }
.website-chatbot button:disabled { cursor: wait; opacity: .6; }
.website-chatbot__resize { position: absolute; z-index: 3; display: grid; place-items: center; touch-action: none; }
.website-chatbot__resize::after { content: ''; border-radius: 3px; background: currentColor; }
.website-chatbot__resize--height { top: 0; left: calc(50% - 32px); width: 64px; height: 12px; cursor: ns-resize; color: #ffffff80; }
.website-chatbot__resize--height::after { width: 28px; height: 2px; }
.website-chatbot__resize--width { top: calc(50% - 32px); left: 0; width: 12px; height: 64px; cursor: ew-resize; color: #9db9c6; }
.website-chatbot__resize--width::after { width: 2px; height: 28px; }
.website-chatbot__panel[data-side="left"] .website-chatbot__resize--width { left: auto; right: 0; }
.website-chatbot__resize:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.website-chatbot__panel--resizing { user-select: none; }
.website-chatbot ::selection { background: #d1e8ef; color: #123c50; }
@media (max-width: 575px) {
  .website-chatbot { right: 20px; bottom: 20px; }
  .website-chatbot__panel { right: 16px; bottom: 16px; max-height: calc(100dvh - 32px); }
  .website-chatbot__resize--width { display: none; }
  .website-chatbot__header { grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 10px; padding: 20px 14px 30px; }
  .website-chatbot__portrait { width: 48px; height: 48px; }
  .website-chatbot__header h2 { font-size: 20px; }
  .website-chatbot__header p { font-size: 13px; }
  .website-chatbot__welcome { font-size: 10px; padding: 4px 6px; gap: 5px; }
  .website-chatbot__messages { padding: 14px 12px; }
  .website-chatbot__suggestions { padding-right: 10px; padding-left: 10px; }
  .website-chatbot__suggestions button { gap: 4px; padding: 7px 5px; font-size: 11px; }
  .website-chatbot__suggestions button i { font-size: 14px; }
}
@media (max-height: 650px) {
  .website-chatbot__header { padding-top: 16px; padding-bottom: 26px; }
  .website-chatbot__welcome { display: none; }
  .website-chatbot__form { padding-top: 8px; padding-bottom: 10px; }
}
.website-chatbot__panel--compact .website-chatbot__header { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 14px 12px 26px; column-gap: 9px; }
.website-chatbot__panel--compact .website-chatbot__portrait { width: 40px; height: 40px; }
.website-chatbot__panel--compact .website-chatbot__header h2 { font-size: 17px; }
.website-chatbot__panel--compact .website-chatbot__header p { font-size: 11px; margin-top: 3px; }
.website-chatbot__panel--compact .website-chatbot__welcome { display: none; }
.website-chatbot__panel--compact .website-chatbot__form { padding: 8px 12px 10px; }
