#salis-bot {
  --sb-ink: #17153d; --sb-muted: #625f84; --sb-brand: #261e89; --sb-soft: #f3f2fb; --sb-line: #e6e4f2; --sb-accent: #f7931e;
  position: fixed; left: 20px; bottom: 20px; z-index: 99990;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; color: var(--sb-ink); direction: rtl; text-align: right;
}
#salis-bot *, #salis-bot *::before, #salis-bot *::after { box-sizing: border-box; font-family: inherit; }
#salis-bot [hidden] { display: none !important; }

#salis-bot .sb-launcher {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: var(--sb-brand); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(38, 30, 137, .6); transition: transform .15s;
}
#salis-bot .sb-launcher:hover { transform: scale(1.06); }
#salis-bot .sb-launcher:focus-visible, #salis-bot button:focus-visible, #salis-bot a:focus-visible, #salis-bot textarea:focus-visible, #salis-bot input:focus-visible {
  outline: 3px solid var(--sb-accent); outline-offset: 2px;
}
#salis-bot.sb-open .sb-launcher { display: none; }

#salis-bot .sb-panel {
  width: 370px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 40px);
  background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px -20px rgba(23, 21, 61, .45), 0 0 0 1px rgba(23, 21, 61, .06);
}
#salis-bot .sb-head { background: var(--sb-brand); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
#salis-bot .sb-mark svg { display: block; border-radius: 9px; }
#salis-bot .sb-title { font-weight: 700; font-size: 16px; line-height: 1.3; }
#salis-bot .sb-sub { font-size: 12.5px; color: #c9c6ee; }
#salis-bot .sb-close { margin-inline-start: auto; background: transparent; border: 0; color: #fff; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
#salis-bot .sb-close:hover { background: rgba(255, 255, 255, .12); }

#salis-bot .sb-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #fafaff; }
#salis-bot .sb-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.65; word-wrap: break-word; }
#salis-bot .sb-msg p { margin: 0 0 4px; } #salis-bot .sb-msg p:last-child { margin-bottom: 0; }
#salis-bot .sb-msg ul, #salis-bot .sb-msg ol { margin: 4px 0; padding-inline-start: 20px; }
#salis-bot .sb-msg a { color: inherit; text-decoration: underline; }
#salis-bot .sb-bot { align-self: flex-start; background: #fff; border: 1px solid var(--sb-line); border-start-start-radius: 4px; }
#salis-bot .sb-user { align-self: flex-end; background: var(--sb-brand); color: #fff; border-start-end-radius: 4px; }
#salis-bot .sb-typing { display: flex; gap: 4px; padding: 14px; }
#salis-bot .sb-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b9b5e6; animation: sb-dot 1s infinite ease-in-out; }
#salis-bot .sb-typing span:nth-child(2) { animation-delay: .15s; } #salis-bot .sb-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes sb-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5 } 40% { transform: translateY(-4px); opacity: 1 } }

#salis-bot .sb-reset { margin-inline-start: auto; }
#salis-bot .sb-reset + .sb-close { margin-inline-start: 0; }
#salis-bot .sb-menu { align-self: flex-start; margin: 0 16px 8px; border: 0; background: none; color: var(--sb-brand); font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 2px; min-height: 32px; text-decoration: underline; }
#salis-bot .sb-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: #fafaff; }
#salis-bot .sb-chip { border: 1px solid #d6d3f3; background: #fff; color: var(--sb-brand); border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; min-height: 36px; }
#salis-bot .sb-chip:hover { background: var(--sb-soft); }

#salis-bot .sb-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--sb-line); align-items: flex-end; }
#salis-bot .sb-input { flex: 1; resize: none; border: 1px solid var(--sb-line); border-radius: 14px; padding: 10px 12px; font-size: 14.5px; line-height: 1.5; max-height: 120px; color: var(--sb-ink); background: #fff; overflow-y: auto; scrollbar-width: none; min-height: 44px; margin: 0; }
#salis-bot .sb-input::-webkit-scrollbar { display: none; }
#salis-bot .sb-send { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 12px; background: var(--sb-brand); color: #fff; cursor: pointer; display: grid; place-items: center; }
#salis-bot .sb-send svg { transform: scaleX(-1); }

#salis-bot .sb-acts { display: flex; gap: 8px; padding: 0 12px 12px; }
#salis-bot .sb-act { flex: 1; text-align: center; border: 1px solid var(--sb-line); background: var(--sb-soft); color: var(--sb-brand); border-radius: 12px; padding: 9px 8px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
#salis-bot .sb-act:hover { background: #e9e7fa; }
#salis-bot .sb-wa { background: #e7f7ee; color: #0b6b3a; border-color: #c8ecd7; }
#salis-bot .sb-primary { background: var(--sb-brand); color: #fff; border-color: var(--sb-brand); margin-top: 6px; width: 100%; }
#salis-bot .sb-pulse .sb-act { animation: sb-pulse .8s 2; }
@keyframes sb-pulse { 50% { box-shadow: 0 0 0 4px rgba(247, 147, 30, .35); } }

#salis-bot .sb-lead { display: flex; flex-direction: column; gap: 4px; width: 88%; }
#salis-bot .sb-lead label { font-size: 12.5px; color: var(--sb-muted); margin-top: 4px; }
#salis-bot .sb-lead input, #salis-bot .sb-lead textarea { border: 1px solid var(--sb-line); border-radius: 10px; padding: 8px 10px; font-size: 14px; width: 100%; background: #fff; color: var(--sb-ink); }
#salis-bot .sb-lead textarea { min-height: 60px; resize: vertical; }
#salis-bot .sb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
#salis-bot .sb-status { font-size: 12.5px; color: var(--sb-muted); margin: 4px 0 0; min-height: 1em; }

@media (max-width: 480px) {
  #salis-bot { left: 12px; bottom: 12px; }
  #salis-bot.sb-open { left: 0; right: 0; bottom: 0; }
  #salis-bot .sb-panel { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { #salis-bot * { animation: none !important; transition: none !important; } }
