/* IS&S smart assistant — sits next to the WhatsApp float. Identity colors. */
.floats .wa-float{position:static;inset:auto;z-index:auto}
.floats .wa-menu{inset-inline-end:20px}
.floats{position:fixed;bottom:20px;inset-inline-end:20px;z-index:40;display:flex;flex-direction:row-reverse;align-items:flex-end;gap:12px}
[dir=rtl] .floats{flex-direction:row}
.chat-btn{width:56px;height:56px;border-radius:50%;border:0;cursor:pointer;display:grid;place-items:center;background:linear-gradient(135deg,#2356FF,#173CB5);color:#fff;box-shadow:0 10px 26px -6px rgba(35,86,255,.6);transition:transform .25s,box-shadow .25s;position:relative}
.chat-btn:hover{transform:scale(1.08);box-shadow:0 14px 32px -6px rgba(35,86,255,.75)}
.chat-btn[aria-expanded=true]{transform:none}
.chat-btn .chat-ic-close{display:none}
.chat-btn[aria-expanded=true] .chat-ic{display:none}
.chat-btn[aria-expanded=true] .chat-ic-close{display:block}
.chat-btn .dot-live{position:absolute;top:6px;inset-inline-end:6px;width:10px;height:10px;border-radius:50%;background:#5be3a8;border:2px solid #fff;box-shadow:0 0 0 0 rgba(91,227,168,.7);animation:chatpulse 2s infinite}
@keyframes chatpulse{50%{box-shadow:0 0 0 6px rgba(91,227,168,0)}}
.chat-panel{position:fixed;bottom:88px;inset-inline-end:20px;z-index:42;width:min(380px,calc(100vw - 24px));height:min(540px,calc(100svh - 120px));background:#fff;border:1px solid rgba(8,29,73,.1);border-radius:22px;box-shadow:0 28px 70px -24px rgba(8,29,73,.45);display:flex;flex-direction:column;overflow:hidden;transform-origin:bottom right;animation:chatfi .28s ease}
[dir=rtl] .chat-panel{transform-origin:bottom left}
.chat-panel[hidden]{display:none}
@keyframes chatfi{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
.chat-hd{display:flex;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(135deg,#173CB5,#2356FF);color:#fff;flex:none}
.chat-hd .mark{width:36px;height:36px;border-radius:11px;background:rgba(255,255,255,.18);display:grid;place-items:center;flex:none}
.chat-hd .mark img{width:22px;height:22px;display:block}
.chat-hd h2{font:600 15px var(--fh,Inter,system-ui,sans-serif);margin:0;line-height:1.2}
.chat-hd p{margin:2px 0 0;font-size:12px;opacity:.85}
.chat-hd .x{margin-inline-start:auto;background:transparent;border:0;color:#fff;width:36px;height:36px;border-radius:10px;cursor:pointer;font-size:20px;line-height:1}
.chat-hd .x:hover{background:rgba(255,255,255,.12)}
.chat-log{flex:1;overflow-y:auto;padding:16px 14px;background:#F4F5F1;display:flex;flex-direction:column;gap:10px}
.chat-msg{max-width:86%;padding:11px 14px;border-radius:16px;font-size:14px;line-height:1.55;white-space:pre-wrap}
.chat-msg.bot{background:#fff;color:#05070D;border:1px solid rgba(8,29,73,.08);border-start-start-radius:6px;align-self:flex-start;box-shadow:0 6px 16px -10px rgba(8,29,73,.3)}
.chat-msg.me{background:linear-gradient(135deg,#2356FF,#173CB5);color:#fff;border-start-end-radius:6px;align-self:flex-end}
[dir=rtl] .chat-msg.bot{border-start-start-radius:16px;border-start-end-radius:6px}
[dir=rtl] .chat-msg.me{border-start-end-radius:16px;border-start-start-radius:6px}
.chat-msg a,.chat-msg .chat-cta{display:inline-flex;align-items:center;margin-top:8px;margin-inline-end:6px;padding:7px 12px;border-radius:999px;background:linear-gradient(135deg,#2356FF,#173CB5);color:#fff!important;font:600 12.5px var(--fb,Inter,system-ui,sans-serif);text-decoration:none}
.chat-msg a.alt,.chat-msg .chat-cta.alt{background:#fff;color:#173CB5!important;border:1px solid rgba(23,60,181,.25)}
.chat-sugs{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 10px;background:#F4F5F1;flex:none}
.chat-sugs button{border:1px solid rgba(35,86,255,.25);background:#fff;color:#173CB5;border-radius:999px;padding:7px 12px;font:500 12.5px var(--fb,Inter,system-ui,sans-serif);cursor:pointer;transition:.2s}
.chat-sugs button:hover{background:rgba(35,86,255,.08);border-color:#2356FF}
.chat-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid rgba(8,29,73,.08);background:#fff;flex:none}
.chat-form input{flex:1;border:1px solid rgba(8,29,73,.16);border-radius:999px;padding:11px 14px;font:15px var(--fb,Inter,system-ui,sans-serif);background:#fff;color:#05070D;outline:none}
.chat-form input:focus{border-color:#2356FF;box-shadow:0 0 0 4px rgba(35,86,255,.15)}
.chat-form button{width:42px;height:42px;border:0;border-radius:50%;background:linear-gradient(135deg,#2356FF,#173CB5);color:#fff;cursor:pointer;display:grid;place-items:center;flex:none}
.chat-form button:hover{filter:brightness(1.06)}
.chat-form button:disabled{opacity:.45;cursor:default}
.chat-typing{align-self:flex-start;display:flex;gap:4px;padding:12px 16px;background:#fff;border-radius:16px;border:1px solid rgba(8,29,73,.08)}
.chat-typing i{width:6px;height:6px;border-radius:50%;background:#2356FF;opacity:.4;animation:ctyp 1s infinite}
.chat-typing i:nth-child(2){animation-delay:.15s}.chat-typing i:nth-child(3){animation-delay:.3s}
@keyframes ctyp{50%{opacity:1;transform:translateY(-2px)}}
body.lock>.chat-btn,body.lock>.chat-panel,body.lock>.floats{display:none}
@media (prefers-reduced-motion:reduce){
  .chat-panel,.chat-btn,.chat-btn .dot-live{animation:none;transition:none}
}

/* Highlight the section the assistant scrolled to */
.sec, section[id], #toolsGrid, #svcGrid .card, #prodGrid .card, #faqList .qa, #howList li, #toolsGrid .card {
  scroll-margin-top: 0;
}
.chat-focus {
  box-shadow: 0 0 0 3px #2356FF, 0 0 0 10px rgba(35,86,255,.22) !important;
  border-radius: 24px;
  transition: box-shadow .45s ease;
}
.chat-scroll-note {
  margin-top: 8px;
  font-size: 12.5px;
  color: #173CB5;
  opacity: .9;
}
@media (prefers-reduced-motion: reduce) {
  .chat-focus { transition: none; }
}
