/* Visitor AI chat — white + sky, matches theme-2026 */
.has-si-chat .whatsapp { display: none !important; }
.si-chat { --c-sky: #1cb8ee; --c-sky-d: #0786bd; --c-soft: #e3f6fd; --c-ink: #0c2d40; --c-muted: #5b7585; --c-line: #e1eff6;
  position: fixed; z-index: 90; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; color: var(--c-ink); }
.si-chat-launcher { display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #27bff1, #0a8fcc); color: #fff; font: 600 15px/1 inherit; font-family: inherit;
  box-shadow: 0 12px 28px -10px rgba(10, 143, 204, .7); transition: transform .15s, box-shadow .15s; }
.si-chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(10, 143, 204, .8); }
.si-chat-launcher svg { width: 24px; height: 24px; }
.si-chat.is-open .si-chat-launcher { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .si-chat-launcher { animation: si-pop .5s ease-out 1s both; }
  @keyframes si-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
}

.si-chat-panel { width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px -18px rgba(12, 45, 64, .35); }
.si-chat-panel[hidden] { display: none !important; }
.si-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(120deg, #35c6f4, #0a8fcc); color: #fff; }
.si-chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-family: "Readex Pro", inherit; font-weight: 700; }
.si-chat-title { display: flex; flex-direction: column; line-height: 1.35; flex: 1; min-width: 0; }
.si-chat-title strong { font-family: "Readex Pro", inherit; font-size: 15px; }
.si-chat-status { font-size: 12px; opacity: .9; }
.si-chat-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer; display: grid; place-items: center; }
.si-chat-close svg { width: 18px; height: 18px; }

.si-chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #fcfeff; overscroll-behavior: contain; }
.si-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.75; word-wrap: break-word; }
.si-msg-assistant { align-self: flex-start; background: var(--c-soft); color: var(--c-ink); border-start-start-radius: 4px; }
.si-msg-user { align-self: flex-end; background: var(--c-ink); color: #fff; border-start-end-radius: 4px; }
.si-typing { letter-spacing: 3px; color: var(--c-muted); }
@media (prefers-reduced-motion: no-preference) { .si-typing { animation: si-blink 1s infinite; } @keyframes si-blink { 50% { opacity: .4; } } }

.si-chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: #fcfeff; }
.si-chat-quick[hidden] { display: none; }
.si-chip { border: 1px solid var(--c-line); background: #fff; color: var(--c-sky-d); border-radius: 999px; padding: 6px 12px; font: 500 13px/1.3 inherit; font-family: inherit; cursor: pointer; }
.si-chip:hover { border-color: var(--c-sky); background: var(--c-soft); }

.si-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--c-line); background: #fff; }
.si-chat-form textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 12px; font: 400 14.5px/1.5 inherit; font-family: inherit; color: var(--c-ink); background: #fcfeff; }
.si-chat-form textarea:focus { outline: 2px solid var(--c-sky); outline-offset: 0; border-color: transparent; }
.si-chat-send { width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 12px; background: linear-gradient(135deg, #27bff1, #0a8fcc); color: #fff; cursor: pointer; display: grid; place-items: center; }
.si-chat-send svg { width: 20px; height: 20px; transform: scaleX(-1); }

.si-chat-foot { display: flex; flex-direction: column; gap: 4px; padding: 8px 14px 12px; background: #fff; }
.si-chat-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border-radius: 10px; background: #e7f8ee; color: #128c4a; font-weight: 600; font-size: 13.5px; text-decoration: none; }
.si-chat-wa svg { width: 18px; height: 18px; }
.si-chat-note { font-size: 11.5px; color: var(--c-muted); text-align: center; }
.si-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.si-chat :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.si-chat-panel :focus-visible { outline-color: var(--c-sky); }

@media (max-width: 520px) {
  .si-chat { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .si-chat-launcher-label { display: none; }
  .si-chat-launcher { width: 56px; padding: 0; justify-content: center; }
  .si-chat.is-open { left: 0; right: 0; bottom: 0; }
  .si-chat-panel { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
