/* Core-LX website chatbot widget (matches css/site.css tokens) */
.cxchat-launcher {
  position: fixed; right: 92px; bottom: 22px; z-index: 9990;
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 0.98rem "Archivo", Arial, sans-serif; color: #fff; background: #13222d;
  border: 2px solid #13222d; border-radius: 28px; padding: 12px 18px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(19, 34, 45, .28);
}
.cxchat-launcher svg { width: 20px; height: 20px; }
.cxchat-launcher:hover { background: #0f3550; }
.cxchat-launcher:focus-visible, .cxchat-panel button:focus-visible, .cxchat-panel textarea:focus-visible {
  outline: 3px solid #f5c518; outline-offset: 2px;
}
.cxchat-panel {
  position: fixed; right: 20px; bottom: 92px; z-index: 9991; width: min(400px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 112px)); display: flex; flex-direction: column;
  background: #fff; border: 2px solid #13222d; border-radius: 6px; box-shadow: 0 16px 40px rgba(19, 34, 45, .3);
  font-family: "Source Serif 4", Georgia, serif; color: #13222d;
}
.cxchat-panel[hidden] { display: none; }
.cxchat-head { display: flex; align-items: center; gap: 6px; padding: 12px 12px 12px 16px; background: #13222d; color: #fff; }
.cxchat-head > div { flex: 1; }
.cxchat-head h2 { font: 800 1.1rem "Archivo", Arial, sans-serif; margin: 0; color: #fff; }
.cxchat-head p { font: 500 .82rem "Archivo", Arial, sans-serif; margin: 2px 0 0; color: #b5c6d3; }
.cxchat-icon { background: transparent; border: 0; color: inherit; font-size: 1.1rem; width: 40px; height: 40px; border-radius: 4px; cursor: pointer; }
.cxchat-head .cxchat-icon:hover { background: rgba(255, 255, 255, .12); }
.cxchat-log { flex: 1; overflow-y: auto; padding: 16px; background: #f5f7f8; display: flex; flex-direction: column; gap: 10px; }
.cxchat-msg { max-width: 88%; padding: 10px 12px; border-radius: 6px; font-size: 1rem; line-height: 1.45; position: relative; }
.cxchat-msg p { margin: 0 0 .5em; }
.cxchat-msg p:last-of-type { margin-bottom: 0; }
.cxchat-msg ul { margin: .3em 0 .5em; padding-left: 1.2em; }
.cxchat-msg a { color: #1a5276; font-weight: 600; word-break: break-word; }
.cxchat-bot { align-self: flex-start; background: #fff; border: 1px solid #cad5dd; padding-right: 40px; }
.cxchat-user { align-self: flex-end; background: #1a5276; color: #fff; }
.cxchat-typing { color: #4c6170; font-size: 1.4rem; letter-spacing: 2px; padding-right: 12px; }
.cxchat-replay { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; font-size: .95rem; border-radius: 4px; }
.cxchat-replay:hover { background: #f5f7f8; }
.cxchat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: #f5f7f8; }
.cxchat-suggest:empty { display: none; }
.cxchat-suggest button { font: 600 .88rem "Archivo", Arial, sans-serif; background: #fff; border: 1px solid #13222d; border-radius: 16px; padding: 8px 12px; cursor: pointer; color: #13222d; }
.cxchat-suggest button:hover { background: #fdf3c4; }
.cxchat-form { display: flex; align-items: flex-end; gap: 6px; padding: 10px 10px 4px; border-top: 1px solid #cad5dd; }
.cxchat-form textarea { flex: 1; resize: none; font: 1rem "Source Serif 4", Georgia, serif; border: 2px solid #13222d; border-radius: 4px; padding: 9px 10px; min-height: 44px; max-height: 120px; }
.cxchat-mic { color: #13222d; width: 44px; height: 44px; }
.cxchat-mic.cxchat-listening { background: #fdf3c4; outline: 2px solid #8a6d00; }
.cxchat-send { font: 700 .95rem "Archivo", Arial, sans-serif; background: #13222d; color: #fff; border: 0; border-radius: 4px; height: 44px; padding: 0 16px; cursor: pointer; }
.cxchat-send:hover { background: #0f3550; }
.cxchat-note { font: .76rem "Archivo", Arial, sans-serif; color: #4c6170; margin: 4px 12px 10px; }
.cxchat-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 560px) {
  .cxchat-launcher span { display: none; }
  .cxchat-launcher { padding: 14px; right: 88px; }
  .cxchat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; z-index: 2147483000; }
}
@media (prefers-reduced-motion: reduce) { .cxchat-log { scroll-behavior: auto; } }
