/* ============================================================
   BITS Chat Widget
   Scoped to .bch-* — matches the live BITS design language:
   white surfaces, #4d84bb primary, #edeff2 lines, system font.
   ============================================================ */

.bch-root,
.bch-field {
  --bch-bg: #ffffff;
  --bch-surface: #f5f6f8;
  --bch-line: #edeff2;
  --bch-line-strong: #dfe3e8;
  --bch-ink: #1f2328;
  --bch-heading: #000000;
  --bch-text: #5a5a5a;
  --bch-dim: #8a8f98;
  --bch-blue: #4d84bb;
  --bch-blue-dark: #3f6f9f;
  --bch-focus: rgba(77, 132, 187, 0.16);
  --bch-ease: cubic-bezier(0.4, 0, 0.2, 1);
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bch-root,
.bch-root *,
.bch-field,
.bch-field * {
  box-sizing: border-box;
}

/* ---------- Header field ---------- */

.bch-slot {
  position: relative;
  display: flex;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  min-width: 0;
  height: 44px;
  margin: 0 18px 0 0;
  padding: 0;
}

.bch-cta-anchor {
  display: flex;
  align-items: center;
}

.bch-slot--compact {
  position: relative;
  width: var(--bch-rest-w, 160px);
  max-width: var(--bch-rest-w, 160px);
  height: 44px;
  margin: 0 8px 0 0;
  transition: width 0.22s var(--bch-ease), max-width 0.22s var(--bch-ease);
}

.bch-slot--mini {
  width: 40px;
  max-width: 40px;
  margin: 0 8px 0 0;
}

.bch-slot .bch-mini-btn {
  display: none;
}

.bch-slot--mini .bch-field:not(.bch-mini-btn) {
  display: none;
}

.bch-slot.bch-slot--mini .bch-mini-btn {
  display: grid;
  width: 40px;
  height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
}

.bch-slot--mini .bch-mini-btn .bch-field__mark {
  width: 14px;
  height: 14px;
}

.bch-slot--mini .bch-mini-btn .bch-field__mark svg {
  width: 14px;
  height: 14px;
}

.bch-slot--compact .bch-field {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 4;
  width: 100%;
  max-width: var(--bch-rest-w, 160px);
  height: 44px;
  padding: 0 2px 0 3px;
  gap: 2px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%);
  border-color: var(--bch-line);
  background: var(--bch-bg);
  box-shadow: none;
  transition: width 0.22s var(--bch-ease), max-width 0.22s var(--bch-ease),
    border-color 0.18s var(--bch-ease), background 0.18s var(--bch-ease),
    box-shadow 0.22s var(--bch-ease);
}

.bch-slot--compact .bch-field__mark {
  width: 14px;
  height: 14px;
}

.bch-slot--compact .bch-field__mark svg {
  width: 14px;
  height: 14px;
}

.bch-slot--compact .bch-field .bch-field__send {
  display: none;
}

.bch-slot--compact:hover .bch-field {
  width: min(380px, calc(100vw - 32px));
  max-width: min(380px, calc(100vw - 32px));
  padding: 0 7px 0 12px;
  gap: 7px;
  background: var(--bch-bg);
  border-color: var(--bch-line-strong);
  box-shadow: 0 14px 36px -24px rgba(0, 0, 0, 0.18);
}

.bch-slot--compact:focus-within .bch-field {
  width: min(380px, calc(100vw - 32px));
  max-width: min(380px, calc(100vw - 32px));
  padding: 0 7px 0 12px;
  gap: 7px;
  background: var(--bch-bg);
  border-color: var(--bch-blue);
  box-shadow: 0 0 0 3px var(--bch-focus),
    0 14px 36px -24px rgba(0, 0, 0, 0.18);
}

.bch-slot--compact:hover .bch-field__send,
.bch-slot--compact:focus-within .bch-field__send {
  display: grid;
}

.bch-slot--fixed {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 99987;
  height: auto;
  max-width: calc(100vw - 28px);
  margin: 0;
}

.bch-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  width: clamp(240px, 23vw, 360px);
  max-width: 360px;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 7px 0 13px;
  border: 1px solid var(--bch-line);
  border-radius: 999px;
  background: var(--bch-bg);
  color: var(--bch-ink);
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  transition: border-color 0.18s var(--bch-ease),
    background 0.18s var(--bch-ease), box-shadow 0.22s var(--bch-ease);
  animation: bch-fade-in 0.22s var(--bch-ease) 0.05s both;
}

.bch-slot--fixed .bch-field {
  position: relative;
  top: auto;
  right: auto;
  width: min(340px, calc(100vw - 28px));
  background: var(--bch-bg);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.22);
}

.bch-field:hover {
  border-color: var(--bch-line-strong);
  background: #f9fafb;
}

.bch-field:focus-within {
  border-color: var(--bch-blue);
  background: var(--bch-bg);
  box-shadow: 0 0 0 3px var(--bch-focus);
}

.bch-field__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--bch-blue);
  transition: color 0.18s var(--bch-ease);
}

.bch-field:focus-within .bch-field__mark {
  color: var(--bch-blue-dark);
}

.bch-field__mark svg {
  width: 14px;
  height: 14px;
}

.bch-field__text {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
}

.bch-slot .bch-field .bch-field__input {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--bch-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  caret-color: var(--bch-blue);
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.bch-field__input::-webkit-search-cancel-button {
  display: none;
}

.bch-field__ghost {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  color: var(--bch-dim);
  opacity: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 42px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: opacity 0.18s var(--bch-ease);
}

.bch-field__ghost.is-out,
.bch-field__ghost.is-hold {
  opacity: 0;
}

.bch-field .bch-field__send {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  min-width: 0;
  min-height: 0;
  max-height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bch-blue);
  color: #ffffff;
  font: inherit;
  font-size: 0;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.18s var(--bch-ease);
}

.bch-field .bch-field__send:hover {
  background: var(--bch-blue-dark);
}

.bch-field .bch-field__send:focus-visible {
  outline: 2px solid var(--bch-blue);
  outline-offset: 2px;
}

.bch-field .bch-field__send .bch-ic svg {
  width: 15px;
  height: 15px;
}

/* Compact mobile header entry */

.bch-field--icon {
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: 0 8px 0 0;
  padding: 0;
  border-color: var(--bch-line);
  background: var(--bch-bg);
  color: var(--bch-blue);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.18s var(--bch-ease),
    border-color 0.18s var(--bch-ease), color 0.18s var(--bch-ease);
}

.bch-field--icon:hover {
  border-color: var(--bch-line-strong);
  background: var(--bch-surface);
  color: var(--bch-blue-dark);
}

.bch-field--icon:focus-visible {
  outline: 2px solid var(--bch-blue);
  outline-offset: 2px;
}

.bch-field--icon .bch-field__mark {
  width: 20px;
  height: 20px;
  color: var(--bch-blue);
}

.bch-field--icon:hover .bch-field__mark {
  color: var(--bch-blue-dark);
}

.bch-field--icon .bch-field__mark svg {
  width: 19px;
  height: 19px;
}

/* ---------- Floating button & panel ---------- */

.bch-root {
  position: fixed;
  inset: 0;
  z-index: 99990;
  pointer-events: none;
}

.bch-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99992;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bch-blue);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  transition: background 0.18s var(--bch-ease), opacity 0.2s var(--bch-ease),
    visibility 0.2s;
  animation: bch-fade-in 0.22s var(--bch-ease) 0.12s both;
}

.bch-fab:hover {
  background: var(--bch-blue-dark);
}

.bch-fab:focus-visible {
  outline: 2px solid var(--bch-blue);
  outline-offset: 3px;
}

.bch-fab__ico {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: opacity 0.18s var(--bch-ease);
}

.bch-fab__ico svg {
  width: 24px;
  height: 24px;
}

.bch-fab__ico--open {
  opacity: 0;
}

.bch-fab.is-open .bch-fab__ico--chat {
  opacity: 0;
}

.bch-fab.is-open .bch-fab__ico--open {
  opacity: 1;
}

.bch-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 99991;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100dvh - 116px));
  overflow: hidden;
  border: 1px solid var(--bch-line);
  border-radius: 22px;
  background: var(--bch-bg);
  color: var(--bch-ink);
  font-size: 14px;
  line-height: 1.5;
  pointer-events: auto;
  box-shadow: 0 28px 70px -28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--bch-ease),
    visibility 0s linear 0.2s;
}

.bch-panel.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s var(--bch-ease), visibility 0s;
}

/* Head */

.bch-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 16px 14px 15px 17px;
  border-bottom: 1px solid var(--bch-line);
  background: var(--bch-bg);
}

.bch-id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bch-id__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--bch-line);
  border-radius: 50%;
  background: var(--bch-bg);
  color: var(--bch-blue);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: none;
}

.bch-id__text {
  min-width: 0;
}

.bch-id__title {
  margin: 0;
  color: var(--bch-heading);
  font: inherit;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.bch-id__status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0 0;
  color: var(--bch-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.bch-online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bch-blue);
  box-shadow: none;
}

.bch-iconbtn {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--bch-dim);
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.18s var(--bch-ease), color 0.18s var(--bch-ease);
}

.bch-iconbtn:hover {
  background: var(--bch-surface);
  color: var(--bch-ink);
}

.bch-iconbtn:focus-visible {
  outline: 2px solid var(--bch-blue);
  outline-offset: 2px;
}

.bch-iconbtn .bch-ic svg {
  width: 16px;
  height: 16px;
}

/* Scroll area */

.bch-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 17px 8px;
  background: var(--bch-bg);
  scrollbar-width: thin;
  scrollbar-color: #d9dde3 transparent;
}

.bch-scroll::-webkit-scrollbar {
  width: 6px;
}

.bch-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d9dde3;
}

.bch-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* Welcome */

.bch-welcome {
  padding: 5px 2px 6px;
  animation: bch-fade-in 0.22s var(--bch-ease) both;
}

.bch-welcome[hidden] {
  display: none;
}

.bch-welcome__eyebrow {
  margin: 0 0 8px;
  color: var(--bch-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bch-welcome__title {
  margin: 0 0 7px;
  color: var(--bch-heading);
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.bch-welcome__text {
  max-width: 31ch;
  margin: 0 0 16px;
  color: var(--bch-text);
  font-size: 13.5px;
  line-height: 1.6;
}

.bch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bch-chip {
  max-width: 100%;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid var(--bch-line);
  border-radius: 999px;
  background: var(--bch-surface);
  color: #3d434b;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.18s var(--bch-ease),
    color 0.18s var(--bch-ease), background 0.18s var(--bch-ease);
}

.bch-chip:hover {
  border-color: var(--bch-blue);
  background: var(--bch-bg);
  color: var(--bch-blue);
}

.bch-chip:focus-visible {
  outline: 2px solid var(--bch-blue);
  outline-offset: 2px;
}

/* Message log */

.bch-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bch-msg {
  display: flex;
  max-width: 100%;
  animation: bch-fade-in 0.22s var(--bch-ease) both;
}

.bch-msg[hidden] {
  display: none;
}

.bch-msg--user {
  justify-content: flex-end;
}

.bch-bubble {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.bch-msg--bot .bch-bubble {
  border: 0;
  border-bottom-left-radius: 5px;
  background: var(--bch-surface);
  color: var(--bch-ink);
  /* markdown renderer inserts explicit <br> and blocks */
  white-space: normal;
}

/* Markdown in bot replies */

.bch-msg .bch-bubble a {
  color: #4d84bb;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.bch-msg .bch-bubble strong {
  font-weight: 600;
  color: #1f2328;
}

.bch-msg .bch-bubble em {
  font-style: italic;
}

.bch-msg .bch-bubble code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #f2f4f7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.bch-msg .bch-bubble ul,
.bch-msg .bch-bubble ol {
  margin: 6px 0 6px 18px;
  padding: 0;
}

.bch-msg .bch-bubble li {
  margin: 2px 0;
}

.bch-msg .bch-bubble > :first-child {
  margin-top: 0;
}

.bch-msg .bch-bubble > :last-child {
  margin-bottom: 0;
}

/* Rich reply blocks: inline map + action buttons */

.bch-msg .bch-bubble .bch-md-block {
  max-width: 100%;
  margin: 8px 0 0;
}

.bch-msg .bch-bubble .bch-md-map iframe {
  display: block;
  width: 100%;
  height: 180px;
  border: 1px solid #edeff2;
  border-radius: 12px;
  background: #f5f6f8;
}

.bch-md-map__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
  color: #8a8f98;
  font-size: 12px;
  line-height: 1.4;
}

.bch-md-map__meta span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bch-md-map__meta a {
  flex: 0 0 auto;
  white-space: nowrap;
}

.bch-msg .bch-bubble .bch-md-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bch-msg .bch-bubble a.bch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.bch-msg .bch-bubble a.bch-btn--primary {
  border-color: #4d84bb;
  background: #4d84bb;
  color: #ffffff;
}

.bch-msg .bch-bubble a.bch-btn--secondary {
  border-color: #d8dde4;
  background: #ffffff;
  color: #1f2328;
}

.bch-msg .bch-bubble a.bch-btn:focus-visible {
  outline: 2px solid #4d84bb;
  outline-offset: 2px;
}

.bch-msg--user .bch-bubble {
  border-bottom-right-radius: 5px;
  background: var(--bch-blue);
  color: #ffffff;
  box-shadow: none;
}

/* Typing indicator */

.bch-typing .bch-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px;
}

.bch-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bch-dim);
  animation: bch-dot 1.2s infinite ease-in-out;
}

.bch-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.bch-dot:nth-child(3) {
  animation-delay: 0.3s;
}

/* Composer */

.bch-composer {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--bch-line);
  background: var(--bch-bg);
}

.bch-composer__box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--bch-line);
  border-radius: 15px;
  background: var(--bch-bg);
  transition: border-color 0.18s var(--bch-ease),
    box-shadow 0.18s var(--bch-ease);
}

.bch-composer__box:focus-within {
  border-color: var(--bch-blue);
  box-shadow: 0 0 0 3px var(--bch-focus);
}

.bch-panel .bch-input {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 28px;
  min-height: 28px;
  max-height: 68px;
  margin: 0;
  padding: 3px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--bch-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  caret-color: var(--bch-blue);
  resize: none;
  overflow-y: auto;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.bch-panel .bch-input::placeholder {
  color: var(--bch-dim);
  opacity: 1;
}

.bch-panel .bch-send {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  min-width: 0;
  min-height: 0;
  max-height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bch-blue);
  color: #ffffff;
  font: inherit;
  font-size: 0;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.18s var(--bch-ease),
    opacity 0.18s var(--bch-ease);
}

.bch-panel .bch-send:hover:not(:disabled) {
  background: var(--bch-blue-dark);
}

.bch-panel .bch-send:focus-visible {
  outline: 2px solid var(--bch-blue);
  outline-offset: 2px;
}

.bch-panel .bch-send:disabled {
  background: var(--bch-surface);
  color: #b3bac4;
  cursor: default;
}

.bch-panel .bch-send .bch-ic svg {
  width: 15px;
  height: 15px;
}

.bch-note {
  margin: 8px 0 0;
  color: var(--bch-dim);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

/* Shared icon wrapper */

.bch-ic {
  display: grid;
  place-items: center;
  line-height: 0;
}

.bch-ic svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Screen-reader only */

.bch-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* Scroll lock while the mobile sheet is open */

html.bch-lock,
html.bch-lock body {
  overflow: hidden;
  overscroll-behavior: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 999.98px) {
  .bch-slot {
    display: none;
  }

  .bch-slot--fixed {
    display: none;
  }
}

@media (max-width: 719.98px) {
  .bch-root.is-open .bch-fab {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .bch-panel {
    top: max(var(--bch-head-h, 0px), env(safe-area-inset-top, 0px));
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, 0.2);
  }

  .bch-panel__head {
    padding: 16px 14px 14px 16px;
  }

  .bch-scroll {
    padding: 16px 16px 6px;
  }

  .bch-composer {
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .bch-bubble {
    max-width: 90%;
    font-size: 14px;
  }

  .bch-fab {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bch-field,
  .bch-field__ghost,
  .bch-field__send,
  .bch-fab,
  .bch-fab__ico,
  .bch-panel,
  .bch-welcome,
  .bch-msg,
  .bch-dot,
  .bch-chip,
  .bch-iconbtn,
  .bch-send,
  .bch-composer__box,
  .bch-slot--compact,
  .bch-slot--compact .bch-field {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Keyframes ---------- */

@keyframes bch-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bch-dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
  }
  30% {
    opacity: 1;
  }
}
