/* Website chat (assets/js/chat.js). Brand: #3058a6 blue, #0b132b navy. */
.nxc-launch {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: 0; border-radius: 999px;
  background: #3058a6; color: #fff; font: 600 15px/1 'Plus Jakarta Sans', system-ui, sans-serif;
  box-shadow: 0 6px 20px rgba(11, 19, 43, .22); cursor: pointer;
}
.nxc-launch:hover { background: #1e3a8a; }
.nxc-launch:focus-visible, .nxc-chip:focus-visible, .nxc-icon:focus-visible, .nxc-send:focus-visible { outline: 3px solid #93b4f0; outline-offset: 2px; }
.nxc-launch svg { width: 20px; height: 20px; }
.nxc-launch.is-open { display: none; }

.nxc-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 61;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 32px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  box-shadow: 0 18px 50px rgba(11, 19, 43, .25);
  font: 400 15px/1.5 'Plus Jakarta Sans', system-ui, sans-serif; color: #0f172a;
}
.nxc-panel[hidden] { display: none; }
.nxc-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #0b132b; color: #fff; }
.nxc-title { margin: 0; font: 700 15px/1.2 Montserrat, system-ui, sans-serif; }
.nxc-sub { margin: 2px 0 0; font-size: 14px; color: #cbd5e1; }
.nxc-head-actions { display: flex; gap: 4px; }
.nxc-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; }
.nxc-icon:hover { background: rgba(255, 255, 255, .12); }
.nxc-icon svg { width: 18px; height: 18px; }

.nxc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f8fafc; }
.nxc-msg { max-width: 85%; padding: 10px 13px; border-radius: 8px; white-space: pre-line; word-wrap: break-word; }
.nxc-bot { align-self: flex-start; background: #fff; border: 1px solid #e2e8f0; }
.nxc-you { align-self: flex-end; background: #3058a6; color: #fff; }
.nxc-link { color: #1e3a8a; font-weight: 600; text-decoration: underline; }

.nxc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; background: #f8fafc; }
.nxc-chips:not(:empty) { padding-bottom: 12px; }
.nxc-chip { padding: 7px 12px; border: 1px solid #3058a6; border-radius: 999px; background: #fff; color: #1e3a8a; font: 600 14px/1.2 inherit; font-family: inherit; cursor: pointer; }
.nxc-chip:hover { background: #f0f4fc; }

.nxc-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e2e8f0; }
.nxc-input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; font-size: 16px; color: #0f172a; }
.nxc-input:focus { outline: 2px solid #3058a6; outline-offset: 0; border-color: #3058a6; }
.nxc-input:disabled { background: #f1f5f9; }
.nxc-send { display: grid; place-items: center; width: 44px; border: 0; border-radius: 6px; background: #3058a6; color: #fff; cursor: pointer; }
.nxc-send:hover { background: #1e3a8a; }
.nxc-send svg { width: 20px; height: 20px; }
.nxc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media print { .nxc-launch, .nxc-panel { display: none !important; } }
