#evx-ai, #evx-ai * { box-sizing: border-box; }
#evx-ai { --evx-blue:#093d66; --evx-bright:#04b6d9; --evx-ink:#183247; font-family: Inter, Arial, sans-serif; font-size: 14px; line-height: 1.45; color:var(--evx-ink); position:fixed; z-index:2147483000; right:24px; bottom:24px; }
#evx-ai [hidden] { display:none !important; }
#evx-ai button { font-family:inherit; cursor:pointer; }
#evx-ai .evx-ai-launcher { display:flex; align-items:center; gap:10px; padding:11px 18px 11px 11px; border:0; border-radius:50px; box-shadow:0 12px 32px rgba(2,34,60,.30); background:linear-gradient(135deg,#063657,#086692); color:#fff; font-size:14px; font-weight:750; letter-spacing:.1px; transition:transform .15s, box-shadow .15s; }
#evx-ai .evx-ai-launcher:hover { transform:translateY(-2px); box-shadow:0 15px 36px rgba(2,34,60,.38); }
#evx-ai .evx-ai-launch-icon { display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:50%; background:var(--evx-bright); color:#fff; font-size:25px; line-height:1; }
#evx-ai.evx-ai-is-open .evx-ai-launcher { display:none; }
#evx-ai .evx-ai-panel { position:absolute; bottom:0; right:0; display:flex; flex-direction:column; width:min(380px, calc(100vw - 28px)); height:min(610px, calc(100dvh - 46px)); min-height:340px; background:#fff; border:1px solid #e1eaf0; box-shadow:0 16px 55px rgba(7,31,56,.28); border-radius:17px; overflow:hidden; text-align:left; }
#evx-ai .evx-ai-head { display:flex; align-items:center; justify-content:space-between; flex:none; gap:12px; background:linear-gradient(120deg,#083a62,#075680); color:#fff; min-height:78px; padding:15px 17px; }
#evx-ai .evx-ai-head-brand { display:flex; gap:11px; align-items:center; min-width:0; }
#evx-ai .evx-ai-avatar { width:39px; height:39px; display:grid; place-items:center; flex:none; border:1px solid rgba(255,255,255,.45); border-radius:12px; background:rgba(255,255,255,.14); font-size:25px; }
#evx-ai .evx-ai-head-brand strong { display:block; font-size:16px; font-weight:800; letter-spacing:.3px; color:#fff; }
#evx-ai .evx-ai-head-brand small { display:block; font-size:11px; font-weight:400; color:#caecfa; white-space:normal; }
#evx-ai .evx-ai-head-actions { display:flex; align-items:center; gap:8px; flex:none; }
#evx-ai .evx-ai-head-actions button { border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.12); color:#fff; width:31px; height:30px; display:grid; place-items:center; border-radius:8px; font-weight:700; }
#evx-ai .evx-ai-head-actions button:hover { background:rgba(255,255,255,.24); }
#evx-ai .evx-ai-head-actions .evx-ai-close { font-size:24px; line-height:1; font-weight:350; }
#evx-ai .evx-ai-main { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; overflow:hidden; background:linear-gradient(180deg,#f5fbff,#fff 40%); }
#evx-ai .evx-ai-messages { display:flex; flex-direction:column; gap:13px; flex:1 1 auto; min-height:0; overflow-y:auto; padding:20px 16px 12px; overscroll-behavior:contain; scroll-behavior:smooth; }
#evx-ai .evx-ai-message { display:flex; max-width:100%; }
#evx-ai .evx-ai-message-assistant { justify-content:flex-start; }
#evx-ai .evx-ai-message-user { justify-content:flex-end; }
#evx-ai .evx-ai-bubble { width:fit-content; max-width:89%; background:#ecf4fa; border-radius:14px 14px 14px 3px; padding:11px 13px; font-size:13.5px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; color:#17374c; box-shadow:0 1px 2px rgba(22,49,71,.03); }
#evx-ai .evx-ai-message-user .evx-ai-bubble { background:#096a96; color:#fff; border-radius:14px 14px 3px 14px; }
#evx-ai .evx-ai-loading .evx-ai-bubble { opacity:.7; font-style:italic; }
#evx-ai .evx-ai-chips { padding:5px 14px 12px; display:flex; flex-wrap:wrap; gap:6px; flex:0 0 auto; background:#fff; }
#evx-ai .evx-ai-chip { display:inline-flex; align-items:center; border:1px solid #cce3ee; border-radius:20px; background:#f3faff; color:#165479; padding:7px 9px; font-size:11.5px; line-height:1.3; white-space:normal; text-align:start; }
#evx-ai .evx-ai-chip:hover { background:#e8f6fc; border-color:#75cce6; }
#evx-ai .evx-ai-chip:disabled { cursor:not-allowed; opacity:.6; }
#evx-ai .evx-ai-form { display:flex; flex:none; gap:10px; padding:11px 14px; border-top:1px solid #e7edf1; background:#fff; align-items:center; }
#evx-ai .evx-ai-input { flex:1 1 auto; width:10px; min-width:0; border:1px solid #d3e0e7; border-radius:12px; padding:11px 12px; background:#fff; color:#1b374a; font:inherit; font-size:13px; min-height:44px; box-shadow:none; outline:none; }
#evx-ai .evx-ai-input:focus { border-color:#0b92c0; box-shadow:0 0 0 3px rgba(12,168,208,.12); }
#evx-ai .evx-ai-input::placeholder { color:#859ba7; }
#evx-ai .evx-ai-send { display:grid; place-items:center; flex:none; height:42px; width:42px; border:0; border-radius:12px; background:#0a79a7; color:#fff; }
#evx-ai .evx-ai-send:hover { background:#06638c; }
#evx-ai .evx-ai-send:disabled { background:#9cb8c6; cursor:default; }
#evx-ai .evx-ai-foot { flex:none; display:flex; gap:5px; justify-content:space-between; align-items:center; border-top:1px solid #f0f2f3; padding:9px 12px 11px; font-size:10px; color:#6e8693; background:#fff; }
#evx-ai .evx-ai-disclaimer { max-width:70%; }
#evx-ai .evx-ai-contact { color:#11648e; text-decoration:none; white-space:nowrap; font-weight:700; }
#evx-ai .evx-ai-contact:hover { text-decoration:underline; }
#evx-ai.evx-ai-persian .evx-ai-chips { direction:rtl; }
#evx-ai.evx-ai-persian .evx-ai-input { direction:rtl; text-align:right; }
#evx-ai.evx-ai-persian .evx-ai-foot { direction:rtl; }
#evx-ai .evx-ai-launcher:focus-visible, #evx-ai button:focus-visible { outline:3px solid #77d2ef; outline-offset:2px; }
@media (max-width:600px) {
  #evx-ai { right:12px; bottom:calc(12px + env(safe-area-inset-bottom, 0px)); }
  #evx-ai .evx-ai-panel { right:0; width:calc(100vw - 24px); height:min(630px, calc(100dvh - 30px - env(safe-area-inset-bottom, 0px))); border-radius:16px; }
  #evx-ai .evx-ai-launcher { padding-right:14px; }
}
@media (prefers-reduced-motion:reduce) {
  #evx-ai * { scroll-behavior:auto !important; transition:none !important; }
}
