/* Cybexis chat assistant widget */
.cx-chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 1050;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.1rem; border: 0; border-radius: 999px;
  background: var(--brand-accent); color: var(--brand-primary);
  font-weight: 700; box-shadow: 0 10px 28px rgba(11,31,58,.25);
}
.cx-chat-launcher:hover, .cx-chat-launcher:focus-visible { background: var(--brand-accent-dark); color: #fff; }
.cx-chat-launcher i { font-size: 1.2rem; }
.cx-chat-launcher.is-open span { display: none; }

.cx-chat-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 1050;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 48px rgba(11,31,58,.28);
}
.cx-chat-panel[hidden] { display: none; }
.cx-chat-head { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; background: var(--brand-primary); }
.cx-chat-close { background: none; border: 0; color: #fff; font-size: 1.1rem; }
.cx-chat-log { flex: 1; overflow-y: auto; padding: 1rem; background: var(--brand-light); display: flex; flex-direction: column; gap: .5rem; }
.cx-msg { max-width: 85%; padding: .6rem .85rem; border-radius: 1rem; line-height: 1.45; font-size: .95rem; white-space: pre-wrap; }
.cx-bot { align-self: flex-start; background: #fff; border: 1px solid #e3e9f1; border-bottom-left-radius: .3rem; }
.cx-user { align-self: flex-end; background: var(--brand-primary); color: #fff; border-bottom-right-radius: .3rem; }
.cx-typing { color: var(--brand-muted); font-style: italic; }
.cx-card { align-self: flex-start; display: flex; flex-wrap: wrap; gap: .4rem; max-width: 95%; }
.cx-card-title { width: 100%; font-size: .8rem; font-weight: 600; color: var(--brand-muted); }
.cx-chip { border: 1px solid var(--brand-accent); background: #fff; color: var(--brand-accent-dark); border-radius: 999px; padding: .35rem .8rem; font-size: .88rem; font-weight: 600; }
.cx-chip:hover, .cx-chip:focus-visible { background: var(--brand-accent); color: #fff; }
.cx-chat-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid #e3e9f1; }
.cx-chat-form input { flex: 1; border: 1px solid #d5dee9; border-radius: 999px; padding: .5rem .9rem; }
.cx-chat-form input:focus { outline: none; border-color: var(--brand-accent); box-shadow: 0 0 0 .2rem rgba(20,184,166,.2); }
.cx-chat-form button { border: 0; border-radius: 50%; width: 2.5rem; height: 2.5rem; background: var(--brand-accent); color: #fff; }
.cx-chat-note { margin: 0; padding: 0 .9rem .6rem; font-size: .72rem; color: var(--brand-muted); }
@media (max-width: 576px) {
  .cx-chat-launcher span { display: none; }
  .cx-chat-panel { right: 16px; bottom: 80px; }
}
.cx-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
