.wah {
  --wah-accent: #3157a4;
  --wah-text: #202938;
  --wah-surface: #fff;
  --wah-focus: #a34b00;
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 99990;
  color: var(--wah-text);
  font: 13px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.wah * { box-sizing: border-box; }
.wah__launcher {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: var(--wah-accent);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(25, 35, 55, .25);
  cursor: pointer;
}
.wah button:focus-visible,
.wah textarea:focus-visible,
.wah a:focus-visible {
  outline: 3px solid var(--wah-focus);
  outline-offset: 3px;
}
.wah__panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(380px, calc(100vw - 28px));
  max-height: min(650px, calc(100vh - 110px));
  overflow: hidden;
  border: 1px solid #ddd4e9;
  border-radius: 18px;
  background: var(--wah-surface);
  box-shadow: 0 20px 60px rgba(25, 35, 55, .2);
}
.wah__panel[hidden] { display: none; }
.wah__panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 10px 14px 10px 16px;
  border-bottom: 0;
  background: var(--wah-accent);
  color: #fff;
}
.wah__panel header strong { color: inherit; }
.wah__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.wah__panel header .wah__close:focus-visible {
  outline-color: #fff;
  outline-offset: 0;
}
.wah__messages {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 220px;
  max-height: 350px;
  padding: 14px;
  overflow: auto;
  transition: min-height .18s ease;
}
.wah__messages--welcome { min-height: 330px; }
.wah__message {
  max-width: 86%;
  padding: 9px 11px;
  border-radius: 13px;
  background: #f2ecf8;
  color: #30283a;
  font-size: 11.5px;
  line-height: 1.42;
}
.wah__message--assistant { align-self: flex-start; }
.wah__message--user {
  align-self: flex-end;
  background: var(--wah-accent);
  color: #fff !important;
}
.wah__message--loading {
  color: #675d72;
  font-style: italic;
}
.wah .wah__message-copy {
  margin: 0;
  color: inherit;
  font: inherit;
  white-space: pre-wrap;
}
.wah .wah__message--user .wah__message-copy {
  color: #fff !important;
}
.wah .wah__message-copy p {
  margin: 0 0 7px;
  color: inherit;
  font: inherit;
}
.wah .wah__message-copy p:last-child { margin-bottom: 0; }
.wah .wah__message-copy ul,
.wah .wah__message-copy ol {
  margin: 6px 0 8px;
  padding-left: 19px;
}
.wah .wah__message-copy li {
  margin: 2px 0;
  color: inherit;
  font: inherit;
}
.wah .wah__message-copy h3,
.wah .wah__message-copy h4 {
  margin: 9px 0 4px;
  color: inherit;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
}
.wah .wah__message-copy h3:first-child,
.wah .wah__message-copy h4:first-child { margin-top: 0; }
.wah .wah__message-copy strong,
.wah .wah__message-copy b { font-weight: 700; }
.wah .wah__message-copy em,
.wah .wah__message-copy i { font-style: italic; }
.wah__message a {
  display: inline-block;
  margin-top: 8px;
  color: inherit;
  font-weight: 700;
}
.wah__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 11px 14px 14px;
  border-top: 1px solid #eee9f3;
}
.wah__form textarea {
  min-height: 46px;
  max-height: 120px;
  resize: vertical;
  padding: 10px;
  border: 1px solid #cbc3d5;
  border-radius: 10px;
  font: inherit;
}
.wah__form textarea:focus,
.wah__form textarea:focus-visible {
  border-color: var(--wah-focus);
}
.wah__form button {
  display: grid;
  place-items: center;
  align-self: end;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--wah-accent);
  color: #fff;
  cursor: pointer;
}
.wah__form button:disabled {
  cursor: wait;
  opacity: .62;
}
.wah__form button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wah__privacy {
  margin: 0;
  padding: 0 16px 14px;
  color: #667085;
  font-size: 11px;
}
.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: 480px) {
  .wah {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
  .wah__panel {
    position: fixed;
    right: 14px;
    bottom: 82px;
    left: 14px;
    width: auto;
    max-height: calc(100vh - 100px);
  }
  .wah__messages--welcome {
    min-height: min(330px, calc(100vh - 245px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .wah * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
