/* Original IBM Plex Sans, scoped to the assistant to preserve the storefront. */
@font-face { font-family:'Novatel Assistant'; src:url('assets/optimized/IBMPlexSans-Latin.woff2') format('woff2'); font-weight:100 900; font-style:normal; font-display:swap; }
.assistant-launcher { position:fixed; right:24px; bottom:68px; z-index:35; display:flex; align-items:center; gap:10px; min-height:50px; padding:0 20px 0 16px; border:1px solid #426383; border-radius:28px; color:#fff; background:#182a46; box-shadow:0 6px 24px #182a4620; font:500 15px 'Novatel Assistant',Arial,sans-serif; transition:transform .2s ease,box-shadow .2s ease,background .2s; }
.assistant-launcher svg { width:22px; height:22px; color:#9bdbed; }
.assistant-launcher:hover { transform:translateY(-3px); background:#213d60; box-shadow:0 10px 26px #182a4630; }
.assistant-launcher:active { transform:translateY(0); }
body:has(dialog[open]) .assistant-launcher, body:has(#mobile-menu:not([hidden])) .assistant-launcher { visibility:hidden; }
dialog.novatel-assistant { position:fixed; inset:auto 24px 24px auto; margin:0; padding:0; width:430px; max-width:calc(100vw - 32px); height:min(730px,calc(100dvh - 48px)); max-height:calc(100dvh - 48px); border:1px solid #d5e0ee; border-radius:22px; box-shadow:0 24px 90px #06162b33; background:#f7f9fc; color:#182a46; font:400 15px/1.5 'Novatel Assistant',Arial,sans-serif; overflow:hidden; }
dialog.novatel-assistant[open] { display:flex; flex-direction:column; animation:assistant-enter .22s ease-out both; }
dialog.novatel-assistant::backdrop { background:#06162b26; backdrop-filter:none; }
.assistant-header { display:flex; align-items:center; gap:12px; flex:none; padding:20px; border-bottom:1px solid #e2e8f0; background:white; }
.assistant-symbol { width:42px; height:42px; flex:none; display:grid; place-items:center; border-radius:13px; background:#e9eff7; color:#155caa; }
.assistant-heading { flex:1; min-width:0; }
.assistant-heading h2 { font-size:18px; line-height:1.3; letter-spacing:-.25px; margin:0; font-weight:600; }
.assistant-heading p { margin:3px 0 0; font-size:12px; color:#506887; }
.assistant-icon-button { display:grid; place-items:center; width:44px; height:44px; flex:none; border-radius:8px; background:transparent; color:#506887; padding:0; }
.assistant-icon-button:hover { background:#e9eff7; color:#182a46; }
.assistant-icon-button svg { width:19px; height:19px; }
.assistant-thread { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#bacbdd transparent; padding:24px 20px 16px; }
.assistant-welcome h3 { font-size:30px; font-weight:500; letter-spacing:-1px; line-height:1.15; margin:12px 0 12px; }
.assistant-welcome > p { color:#506887; max-width:310px; }
.assistant-prompts { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:24px 0 18px; }
.assistant-prompts button { min-height:78px; display:flex; justify-content:space-between; align-items:flex-start; gap:8px; padding:14px 12px; text-align:start; border-radius:12px; border:1px solid #d5e0ee; background:white; color:#182a46; font-size:14px; font-weight:500; line-height:1.4; transition:border-color .2s,transform .2s; }
.assistant-prompts button:hover { border-color:#7294b8; transform:translateY(-2px); }
.assistant-prompts svg { width:16px; height:16px; margin-top:3px; flex:none; color:#7294b8; }
.assistant-privacy { font-size:12px; color:#506887; line-height:1.55; }
.assistant-message { margin:0 0 20px; overflow-wrap:anywhere; }
.assistant-message-label { font-size:11px; font-weight:500; color:#506887; margin-bottom:6px; }
.assistant-source { padding:8px 10px; margin:0 0 10px; border:1px solid #d5e0ee; border-radius:8px; color:#355c80; background:#edf4fa; font-size:11px; line-height:1.5; }
.assistant-message-text { white-space:pre-wrap; font-size:14px; line-height:1.65; }
.assistant-message-text:dir(rtl) { font-family:Tahoma,Arial,sans-serif; font-size:16px; line-height:1.85; }
.assistant-followups button:dir(rtl) { font-family:Tahoma,Arial,sans-serif; font-size:14px; line-height:1.6; }
.assistant-message[data-role="user"] { margin-inline-start:44px; }
.assistant-message[data-role="user"] .assistant-message-label { text-align:end; }
.assistant-message[data-role="user"] .assistant-message-text { padding:11px 15px; border-radius:16px 16px 3px 16px; color:white; background:#203a59; }
.assistant-message[data-role="error"] .assistant-message-text { border-inline-start:2px solid #7294b8; padding-inline-start:12px; color:#506887; }
.assistant-products { display:grid; gap:8px; margin-top:14px; }
.assistant-product { display:flex; align-items:center; width:100%; gap:12px; padding:10px; text-align:start; border:1px solid #d5e0ee; border-radius:12px; background:white; transition:border-color .2s; }
.assistant-product:hover { border-color:#7294b8; }
.assistant-product img { width:54px; height:65px; object-fit:contain; border-radius:5px; flex:none; background:#fff; }
.assistant-product span { flex:1; min-width:0; }
.assistant-product strong { display:block; font-size:13px; font-weight:500; }
.assistant-product small { display:block; font-size:12px; color:#506887; margin-top:3px; }
.assistant-product svg { width:17px; height:17px; }
.assistant-followups { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 0; }
.assistant-followups button, .assistant-retry { border:1px solid #d5e0ee; border-radius:16px; padding:7px 11px; font-size:12px; color:#355c80; background:white; text-align:start; }
.assistant-retry { margin-top:10px; }
.assistant-thinking { display:flex; gap:5px; align-items:center; font-size:13px; color:#506887; margin:12px 0; }
.assistant-thinking span { width:4px; height:4px; border-radius:100%; background:#7294b8; animation:assistant-dot 1.2s ease-in-out infinite alternate; }
.assistant-thinking span:nth-child(2) { animation-delay:.2s; }.assistant-thinking span:nth-child(3) { animation-delay:.4s; }
.assistant-bottom { flex:none; padding:14px 18px 16px; background:#fff; border-top:1px solid #e2e8f0; }
.assistant-composer { display:flex; align-items:flex-end; gap:8px; padding:7px; border:1px solid #bacbdd; border-radius:15px; background:white; }
.assistant-composer:focus-within { border-color:#155caa; box-shadow:0 0 0 2px #155caa12; }
.assistant-composer textarea { flex:1; min-width:0; width:100%; resize:none; height:44px; max-height:100px; border:0; outline:0; background:transparent; padding:10px 6px; color:#182a46; font:400 14px/24px 'Novatel Assistant',Arial,sans-serif; }
.assistant-composer textarea::placeholder { color:#657d94; }
.assistant-send { flex:none; width:42px; height:42px; border-radius:10px; display:grid; place-items:center; background:#182a46; color:white; }
.assistant-send:hover { background:#155caa; }.assistant-send:disabled { opacity:.45; cursor:default; }
.assistant-send svg { width:20px; height:20px; }
.assistant-bottom-note { margin:8px 0 10px; text-align:center; font-size:10px; line-height:1.4; color:#61758c; }
.assistant-human { display:flex; justify-content:center; align-items:center; gap:8px; min-height:34px; color:#355c80; font-size:12px; }
.assistant-human svg { width:15px; height:15px; }
.assistant-empty-status { margin-top:14px; padding:10px 12px; border-radius:8px; background:#e9eff7; font-size:12px; }
.novatel-assistant :focus-visible { outline:2px solid #155caa; outline-offset:3px; }
.novatel-assistant textarea:focus-visible { outline:none; }
@keyframes assistant-enter { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
@keyframes assistant-dot { from { opacity:.35; transform:translateY(0); } to { opacity:1; transform:translateY(-3px); } }
@media(max-width:600px) {
  .assistant-launcher { right:16px; bottom:64px; min-height:46px; padding:0 15px 0 12px; font-size:13px; }
  dialog.novatel-assistant { inset:auto 8px max(8px,env(safe-area-inset-bottom)) 8px; width:auto; max-width:none; height:calc(100dvh - 24px); max-height:calc(100dvh - 24px); border-radius:19px; }
  .assistant-header { padding:14px; gap:9px; }.assistant-thread { padding:18px 16px 12px; }.assistant-bottom { padding:12px 12px 10px; }
  .assistant-heading h2 { font-size:17px; }.assistant-heading p { font-size:11px; }.assistant-symbol { width:36px; height:38px; }
  .assistant-composer textarea { font-size:16px; }.assistant-welcome h3 { font-size:28px; }
}
@media(prefers-reduced-motion:reduce) { .assistant-launcher,.novatel-assistant[open],.assistant-thinking span,.assistant-prompts button { animation:none!important; transition:none; } }
@media print { .assistant-launcher,dialog.novatel-assistant { display:none!important; } }

.novatel-assistant button { font-family:inherit; }
