/* First-party chat launcher. Widget vendor CSS is inside the custom element. */
#site-chat-launcher {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  min-height: 44px;
  min-width: 44px;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
#site-chat-launcher.theme-oksa {
  background: #0a2540; /* existing OKSA .btn uses --ink */
}
#site-chat-launcher.theme-oksa:hover,
#site-chat-launcher.theme-oksa:focus-visible {
  background: #083a66;
}
#site-chat-launcher.theme-abner {
  background: #8B0000; /* existing Callabner .btn uses --crimson */
}
#site-chat-launcher.theme-abner:hover,
#site-chat-launcher.theme-abner:focus-visible {
  background: #6B0000;
}
#site-chat-launcher:focus-visible {
  outline: 3px solid #0B57D0;
  outline-offset: 3px;
}
#site-chat-launcher:disabled {
  opacity: 0.7;
  cursor: wait;
}
#site-chat-status {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(4.2rem, calc(env(safe-area-inset-bottom, 0px) + 3.2rem));
  z-index: 60;
  max-width: min(20rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  background: #1A1A1A;
  color: #fff;
  font-size: 0.9rem;
}
#site-chat-status[hidden] { display: none; }
elevenlabs-convai {
  z-index: 60;
}
@media (prefers-reduced-motion: reduce) {
  #site-chat-launcher,
  #site-chat-status {
    transition: none;
  }
}

@media (max-width: 40rem) {
  /* Keep the approved wording, but wrap it so the pill stays in the
     lower-right gutter instead of covering full-width hero CTAs. */
  #site-chat-launcher {
    max-width: 6.75rem;
    white-space: normal;
    line-height: 1.15;
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
    text-wrap: balance;
  }
  /* Let page content, including footers and in-flow buttons, scroll clear
     of the fixed launcher. */
  body {
    padding-bottom: 5.25rem;
  }
}
