/* ============================================================
   Chatbot institucional Asocapitales - Propuesta C
   Estilos encapsulados con prefijo .asoc-chat-* para evitar
   colisiones con .pc-*. Reutiliza las variables --pc-* y la
   tipografia Manrope de assets/css/propuesta-c.css.
   ============================================================ */

.asoc-chat {
  --asoc-chat-navy: var(--pc-navy, #072f54);
  --asoc-chat-navy-dark: var(--pc-navy-dark, #051f39);
  --asoc-chat-blue: var(--pc-blue, #125783);
  --asoc-chat-yellow: var(--pc-yellow, #f5c400);
  --asoc-chat-red: var(--pc-red, #d8473d);
  --asoc-chat-white: var(--pc-white, #ffffff);
  --asoc-chat-surface: var(--pc-surface, #f1f3f4);
  --asoc-chat-ivory: var(--pc-ivory, #f5f1e7);
  --asoc-chat-text: var(--pc-text, #181c20);
  --asoc-chat-muted: var(--pc-muted, #64696e);
  --asoc-chat-border: var(--pc-border, #dadddf);
  --asoc-chat-line: rgba(7, 47, 84, 0.1);

  position: fixed;
  inset: auto 0 0 auto;
  z-index: 95;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--asoc-chat-text);
}

.asoc-chat *,
.asoc-chat *::before,
.asoc-chat *::after {
  box-sizing: border-box;
}

/* =====================================================================
   BOTON FLOTANTE / LAUNCHER
   El asset imagen_boton.png ya es un disco 3D con su propio color y
   sombreado: se usa tal cual, sin encerrarlo en otro circulo.
   ===================================================================== */
.asoc-chat__launcher {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 10px 22px rgba(5, 31, 57, 0.32))
    drop-shadow(0 3px 8px rgba(5, 31, 57, 0.24));
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease,
    opacity 0.22s ease;
  animation: asoc-chat-appear 0.4s ease both;
}

/* Anillo conico que gira: senala que el asistente esta activo. */
.asoc-chat__launcher::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(245, 196, 0, 0) 0deg,
    rgba(245, 196, 0, 0) 180deg,
    rgba(245, 196, 0, 0.55) 290deg,
    var(--asoc-chat-yellow) 344deg,
    rgba(245, 196, 0, 0) 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  animation: asoc-chat-spin 3.4s linear infinite;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.asoc-chat__launcher-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  animation: asoc-chat-float 3.8s ease-in-out infinite;
}

/* Halo de atencion: anillo que se expande de forma periodica y discreta
   mientras el chat NO se ha abierto en esta sesion. */
.asoc-chat__launcher::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--asoc-chat-yellow);
  opacity: 0;
  pointer-events: none;
  animation: asoc-chat-ping 3.6s cubic-bezier(0.2, 0.6, 0.3, 1) 3.5s infinite;
}

.asoc-chat__launcher:hover::before {
  animation-duration: 1.4s;
}

.asoc-chat__launcher:hover {
  transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 16px 30px rgba(5, 31, 57, 0.38))
    drop-shadow(0 4px 10px rgba(5, 31, 57, 0.26));
}

.asoc-chat__launcher:active {
  transform: translateY(-1px) scale(0.97);
}

.asoc-chat__launcher:focus-visible {
  outline: 3px solid var(--asoc-chat-yellow);
  outline-offset: 4px;
}

/* Al abrir (o tras la primera interaccion) se detiene la llamada de atencion. */
.asoc-chat.is-engaged .asoc-chat__launcher,
.asoc-chat.is-open .asoc-chat__launcher {
  animation: none;
}

.asoc-chat.is-engaged .asoc-chat__launcher::after,
.asoc-chat.is-open .asoc-chat__launcher::after {
  animation: none;
  opacity: 0;
}

.asoc-chat.is-open .asoc-chat__launcher::before {
  opacity: 0;
}

.asoc-chat.is-open .asoc-chat__launcher-img {
  animation: none;
}

.asoc-chat.is-open .asoc-chat__launcher {
  transform: scale(0.92);
  opacity: 0.9;
}

.asoc-chat.is-open .asoc-chat__launcher:hover {
  transform: scale(0.97);
  opacity: 1;
}

/* =====================================================================
   PANEL
   ===================================================================== */
.asoc-chat__panel {
  position: fixed;
  right: 26px;
  bottom: 104px;
  width: min(392px, calc(100vw - 32px));
  height: min(576px, calc(100vh - 148px));
  height: min(576px, calc(100dvh - 148px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--asoc-chat-white);
  border: 1px solid var(--asoc-chat-line);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(5, 31, 57, 0.26), 0 8px 24px rgba(5, 31, 57, 0.12);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.26s cubic-bezier(0.34, 1.4, 0.6, 1);
  pointer-events: none;
}

.asoc-chat.is-open .asoc-chat__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.asoc-chat__panel[hidden] {
  display: none;
}

html.asoc-chat-fullscreen,
html.asoc-chat-fullscreen body { overflow: hidden !important; }
.asoc-chat.is-fullscreen { z-index: 2147483000; }
.asoc-chat.is-fullscreen .asoc-chat__panel {
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.asoc-chat.is-fullscreen .asoc-chat__launcher { display: none; }
.asoc-chat.is-fullscreen .asoc-chat__body,
.asoc-chat.is-fullscreen .asoc-chat__footer {
  padding-left: max(16px, calc((100% - 1000px) / 2));
  padding-right: max(16px, calc((100% - 1000px) / 2));
}
.asoc-chat.is-fullscreen .asoc-chat__header { padding-top: max(13px, env(safe-area-inset-top)); }
.asoc-chat.is-fullscreen .asoc-chat__footer { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.asoc-chat.is-fullscreen .asoc-chat__msg { font-size: 16px; }
.asoc-chat__header-actions { flex-shrink: 0; }

/* =====================================================================
   ENCABEZADO  ·  izquierda: identidad (avatar + textos)  ·  derecha: acciones
   ===================================================================== */
.asoc-chat__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 12px 13px 15px;
  color: var(--asoc-chat-white);
  background: linear-gradient(135deg, var(--asoc-chat-navy) 0%, var(--asoc-chat-blue) 100%);
}

.asoc-chat__identity {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.asoc-chat__avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), 0 4px 10px rgba(5, 31, 57, 0.3);
}

.asoc-chat__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.asoc-chat__identity-text {
  display: block;
  min-width: 0;
}

.asoc-chat__title {
  display: block;
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asoc-chat__subtitle {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.asoc-chat__header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.asoc-chat__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.asoc-chat__icon-btn:hover {
  color: var(--asoc-chat-white);
  background: rgba(255, 255, 255, 0.16);
}

.asoc-chat__icon-btn:active {
  transform: scale(0.9);
}

.asoc-chat__icon-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* =====================================================================
   CUERPO / CONVERSACION
   ===================================================================== */
.asoc-chat__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--asoc-chat-surface);
  scroll-behavior: smooth;
  transition: opacity 0.18s ease;
}

.asoc-chat__body.is-refreshing {
  opacity: 0;
}

.asoc-chat__body::-webkit-scrollbar {
  width: 8px;
}

.asoc-chat__body::-webkit-scrollbar-thumb {
  background: rgba(7, 47, 84, 0.18);
  border-radius: 999px;
  border: 2px solid var(--asoc-chat-surface);
}

.asoc-chat__msg {
  max-width: 84%;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  animation: asoc-chat-in 0.26s ease both;
}

.asoc-chat__msg--user,
.asoc-chat__msg--error {
  white-space: pre-wrap;
}

.asoc-chat__msg p {
  margin: 0 0 8px;
}

.asoc-chat__msg > *:last-child {
  margin-bottom: 0;
}

.asoc-chat__msg ul,
.asoc-chat__msg ol {
  margin: 0 0 8px;
  padding-left: 20px;
}

.asoc-chat__msg li {
  margin: 3px 0;
}

.asoc-chat__msg li::marker {
  color: var(--asoc-chat-blue);
}

.asoc-chat__msg strong {
  font-weight: 800;
}

.asoc-chat__msg--bot :is(h1, h2, h3, h4, h5, h6) {
  color: var(--asoc-chat-navy, #193653);
  font-family: inherit;
  font-weight: 800;
  line-height: 1.35;
  margin: 16px 0 8px;
  letter-spacing: normal;
  text-transform: none;
}
.asoc-chat__msg--bot h1 { font-size: 1.3em; }
.asoc-chat__msg--bot h2 { font-size: 1.2em; }
.asoc-chat__msg--bot :is(h3, h4, h5, h6) { font-size: 1.08em; }
.asoc-chat__msg--bot > :first-child { margin-top: 0; }
.asoc-chat__msg--bot li > p { margin-bottom: 4px; }
.asoc-chat__msg--bot blockquote {
  margin: 10px 0;
  padding: 6px 12px;
  border-left: 3px solid #e9c441;
  background: #f2f6fa;
}
.asoc-chat__msg--bot hr { border: 0; border-top: 1px solid #d8e3ee; margin: 14px 0; }
.asoc-chat__msg--bot code { font-size: .9em; background: #edf2f7; border-radius: 4px; padding: 1px 4px; }
.asoc-chat__msg--bot pre { max-width: 100%; overflow: auto; padding: 10px; background: #edf2f7; border-radius: 8px; white-space: pre; }
.asoc-chat__msg--bot pre code { padding: 0; }
.asoc-chat__table { max-width: 100%; overflow-x: auto; margin: 10px 0; border: 1px solid #d8e3ee; border-radius: 8px; }
.asoc-chat__table table { width: 100%; border-collapse: collapse; font-size: .92em; }
.asoc-chat__table :is(th, td) { min-width: 100px; padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid #d8e3ee; }
.asoc-chat__table th { background: #f2f6fa; font-weight: 800; }
.asoc-chat__table tr:last-child td { border-bottom: 0; }
.asoc-chat__table:focus-visible { outline: 2px solid var(--asoc-chat-blue); outline-offset: 2px; }

.asoc-chat__msg a {
  color: var(--asoc-chat-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.asoc-chat__msg--user a {
  color: #ffe27a;
}

.asoc-chat__msg--bot a.asoc-chat__resource {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  box-sizing: border-box;
  margin: 6px 0;
  padding: 10px 13px;
  border: 1px solid #d8e3ee;
  border-left: 3px solid #f5c400;
  border-radius: 10px;
  background: #f2f6fa;
  color: #072f54;
  font-size: .94em;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background .15s ease, border-color .15s ease;
}
.asoc-chat__msg--bot a.asoc-chat__resource::after {
  content: "↗";
  flex: none;
  margin-left: auto;
  color: #125783;
  font-size: 1.2em;
}
.asoc-chat__msg--bot a.asoc-chat__resource:hover {
  background: #e7eff7;
  border-color: #a9bfd4;
  border-left-color: #f5c400;
}
.asoc-chat__msg--bot a.asoc-chat__resource:focus-visible {
  outline: 3px solid #125783;
  outline-offset: 3px;
}

.asoc-chat__msg--bot {
  align-self: flex-start;
  color: var(--asoc-chat-text);
  background: var(--asoc-chat-white);
  border: 1px solid var(--asoc-chat-line);
  border-radius: 16px 16px 16px 6px;
  box-shadow: 0 1px 2px rgba(5, 31, 57, 0.05);
}

.asoc-chat__portrait {
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  align-items:center;
  gap:14px;
  margin:0 0 16px;
  padding:10px;
  border:1px solid #d8e3ee;
  border-radius:12px;
  background:#f2f6fa;
}
.asoc-chat__portrait img{display:block;width:92px;height:116px;object-fit:cover;object-position:center 22%;border-radius:8px;background:#e3eaf0}
.asoc-chat__portrait figcaption{display:grid;gap:5px;min-width:0;color:#072f54}
.asoc-chat__portrait figcaption>span:first-child{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#526d84}
.asoc-chat__portrait strong{font-size:14px;line-height:1.35}
.asoc-chat__portrait figcaption>span:last-child{font-size:11px;line-height:1.4;color:#526d84}
@media(max-width:380px){.asoc-chat__portrait{grid-template-columns:72px minmax(0,1fr);gap:10px}.asoc-chat__portrait img{width:72px;height:100px}}

.asoc-chat__msg--user {
  align-self: flex-end;
  color: var(--asoc-chat-white);
  background: linear-gradient(135deg, var(--asoc-chat-navy), var(--asoc-chat-blue));
  border-radius: 16px 16px 6px 16px;
  box-shadow: 0 3px 10px rgba(5, 31, 57, 0.18);
}

.asoc-chat__msg--error {
  align-self: flex-start;
  color: #7a231c;
  background: #fbeae8;
  border: 1px solid rgba(216, 71, 61, 0.4);
  border-radius: 16px 16px 16px 6px;
}

/* =====================================================================
   PREGUNTAS SUGERIDAS
   ===================================================================== */
.asoc-chat__suggestions {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
  animation: asoc-chat-in 0.3s ease both;
}

.asoc-chat__chip {
  padding: 8px 14px;
  border: 1px solid rgba(7, 47, 84, 0.18);
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--asoc-chat-navy);
  background: var(--asoc-chat-white);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.asoc-chat__chip:hover {
  color: var(--asoc-chat-white);
  background: var(--asoc-chat-navy);
  border-color: var(--asoc-chat-navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 31, 57, 0.2);
}

.asoc-chat__chip:active {
  transform: translateY(0) scale(0.97);
}

.asoc-chat__chip[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* =====================================================================
   INDICADOR DE ESCRITURA
   ===================================================================== */
.asoc-chat__typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 15px;
  background: var(--asoc-chat-white);
  border: 1px solid var(--asoc-chat-line);
  border-radius: 16px 16px 16px 6px;
  box-shadow: 0 1px 2px rgba(5, 31, 57, 0.05);
  animation: asoc-chat-pop 0.22s ease both;
}

.asoc-chat__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--asoc-chat-blue);
  opacity: 0.55;
  animation: asoc-chat-bounce 1.25s infinite ease-in-out;
}

.asoc-chat__typing span:nth-child(2) {
  animation-delay: 0.16s;
}

.asoc-chat__typing span:nth-child(3) {
  animation-delay: 0.32s;
}

/* =====================================================================
   PIE / FORMULARIO
   ===================================================================== */
.asoc-chat__footer {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  background: var(--asoc-chat-white);
  border-top: 1px solid var(--asoc-chat-line);
}

.asoc-chat__input {
  flex: 1 1 auto;
  min-height: 44px;
  max-height: 120px;
  padding: 11px 14px;
  resize: none;
  font-family: inherit;
  color: var(--asoc-chat-text);
  background: var(--asoc-chat-surface);
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.4;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.asoc-chat__input::placeholder {
  color: var(--asoc-chat-muted);
}

.asoc-chat__input:focus {
  outline: none;
  border-color: var(--asoc-chat-blue);
  background: var(--asoc-chat-white);
  box-shadow: 0 0 0 3px rgba(18, 87, 131, 0.14);
}

.asoc-chat__send {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--asoc-chat-white);
  background: linear-gradient(135deg, var(--asoc-chat-navy), var(--asoc-chat-blue));
  box-shadow: 0 4px 12px rgba(5, 31, 57, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.asoc-chat__send:hover:not([disabled]) {
  transform: scale(1.07);
  box-shadow: 0 8px 18px rgba(5, 31, 57, 0.3);
}

.asoc-chat__send:active:not([disabled]) {
  transform: scale(0.94);
}

.asoc-chat__send[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.asoc-chat__send svg {
  width: 18px;
  height: 18px;
  display: block;
}

.asoc-chat__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================================
   ANIMACIONES
   ===================================================================== */
@keyframes asoc-chat-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
}

@keyframes asoc-chat-pop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.94);
  }
}

@keyframes asoc-chat-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@keyframes asoc-chat-appear {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

@keyframes asoc-chat-ping {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  60% {
    opacity: 0;
    transform: scale(1.85);
  }
  100% {
    opacity: 0;
    transform: scale(1.85);
  }
}

@keyframes asoc-chat-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes asoc-chat-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3.5px);
  }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 767px) {
  .asoc-chat__panel {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    height: min(78vh, calc(100vh - 24px));
    height: min(78dvh, calc(100dvh - 24px));
    border-radius: 20px;
    transform-origin: bottom center;
  }

  .asoc-chat__launcher {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }

  .asoc-chat.is-open .asoc-chat__launcher {
    opacity: 0;
    pointer-events: none;
  }
}

/* Rango de trabajo habitual de la Propuesta C (1200x600 - 1300x700):
   el panel nunca debe exceder el alto util del viewport. */
@media (min-width: 768px) and (max-height: 720px) {
  .asoc-chat__panel {
    bottom: 90px;
    height: calc(100vh - 116px);
    height: calc(100dvh - 116px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .asoc-chat__launcher,
  .asoc-chat__panel,
  .asoc-chat__icon-btn,
  .asoc-chat__chip,
  .asoc-chat__send,
  .asoc-chat__msg,
  .asoc-chat__suggestions,
  .asoc-chat__typing,
  .asoc-chat__body {
    animation: none !important;
    transition: none !important;
  }

  .asoc-chat__launcher::after,
  .asoc-chat__launcher::before {
    display: none;
  }

  .asoc-chat__launcher-img {
    animation: none !important;
  }

  .asoc-chat__typing span {
    animation: none;
  }

  .asoc-chat__body {
    scroll-behavior: auto;
  }
}


/* Aria identity */
.asoc-chat__launcher-img {
  border: 2px solid #fff;
  background: var(--asoc-chat-ivory);
  animation: none;
}
.asoc-chat__launcher-name {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 12px;
  background: var(--asoc-chat-navy);
  color: #fff;
  font: 800 11px/1.2 "Manrope", system-ui, sans-serif;
  letter-spacing: .02em;
  pointer-events: none;
}
.asoc-chat__title { font-size: 17px; }

/* Floating controls must not cover the dialog's close button or navigation. */
body:has(.asoc-chat.is-open) .pc-a11y { visibility: hidden; }
body:has(.pc-header.is-open) .asoc-chat:not(.is-open),
body:has(.pc-header.is-search-open) .asoc-chat:not(.is-open),
body.pc-lock .asoc-chat:not(.is-open) { visibility: hidden; }
@media (max-width: 1023px) {
  .asoc-chat__input { font-size: 16px; }
  .asoc-chat__launcher { bottom: max(16px, env(safe-area-inset-bottom)); }
  .asoc-chat__panel { bottom: max(12px, env(safe-area-inset-bottom)); }
}
