/* Khalifah chatbot. Every rule is scoped to #khf-root so page builders cannot restyle it. */
#khf-root{--khf-ink:#0f1b33;--khf-gold:#d4ad2f;--khf-gold-hi:#f3d65a;--khf-paper:#f5f6f8;--khf-line:#dde2ea;--khf-fg:#141b2b;--khf-muted:#5b6578;
  position:fixed;z-index:2147483000;right:calc(18px + env(safe-area-inset-right,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));
  font-family:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:15px;line-height:1.5;color:var(--khf-fg);text-align:left}
#khf-root *,#khf-root *::before,#khf-root *::after{box-sizing:border-box;letter-spacing:normal;text-transform:none;text-shadow:none;font-family:inherit}
#khf-root [hidden]{display:none!important}
#khf-root button{font:inherit;cursor:pointer;margin:0;line-height:1.3;box-shadow:none;text-decoration:none;width:auto;height:auto;min-height:0}
#khf-root .khf-fab{display:flex;align-items:center;gap:10px;padding:9px 18px 9px 9px;border-radius:999px;border:1px solid rgba(212,173,47,.7);background:var(--khf-ink);color:#fff;font-weight:600;font-size:15px;box-shadow:0 12px 30px rgba(0,0,0,.35)}
#khf-root .khf-fab:hover{background:#16264a}
#khf-root .khf-fab img{width:36px;height:36px;object-fit:contain;border-radius:50%;background:rgba(255,255,255,.08);padding:4px;margin:0}
#khf-root .khf-dot{width:9px;height:9px;border-radius:50%;background:#3ad07a;box-shadow:0 0 0 3px rgba(58,208,122,.25)}
#khf-root .khf-win{position:absolute;right:0;bottom:0;width:min(400px,calc(100vw - 32px));height:min(620px,calc(100vh - 100px));display:flex;flex-direction:column;background:#fff;border:1px solid var(--khf-line);border-radius:16px;overflow:hidden;box-shadow:0 30px 70px rgba(0,0,0,.35)}
#khf-root .khf-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--khf-ink);color:#fff}
#khf-root .khf-head img{width:38px;height:38px;object-fit:contain;margin:0}
#khf-root .khf-head div{flex:1;min-width:0}
#khf-root .khf-head b{display:block;font-size:16px;color:#fff}
#khf-root .khf-head small{color:#a8b2c6;font-size:12px}
#khf-root .khf-lang{width:auto;height:32px;margin:0;padding:0 6px;border-radius:8px;border:1px solid rgba(255,255,255,.3);background:#16264a;color:#fff;font-size:12.5px;font-weight:600}
#khf-root .khf-x{width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:transparent;color:#fff;font-size:18px;padding:0}
#khf-root .khf-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:var(--khf-paper)}
#khf-root .khf-msg{max-width:86%;padding:10px 13px;border-radius:14px;font-size:14.5px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
#khf-root .khf-bot{background:#fff;border:1px solid var(--khf-line);border-bottom-left-radius:4px;align-self:flex-start;color:var(--khf-fg)}
#khf-root .khf-me{background:var(--khf-ink);color:#fff;border-bottom-right-radius:4px;align-self:flex-end}
#khf-root .khf-wait{color:var(--khf-muted);font-style:italic}
#khf-root .khf-quick{display:flex;flex-wrap:wrap;gap:6px}
#khf-root .khf-quick button{font-size:13px;padding:7px 12px;border-radius:999px;border:1px solid var(--khf-gold);background:#fff;color:var(--khf-fg)}
#khf-root .khf-quick button:hover{background:#f6edcf}
#khf-root .khf-form{display:grid;gap:9px;padding:14px;border:1px solid var(--khf-gold);border-radius:12px;background:#fff}
#khf-root .khf-form b{font-size:15px}
#khf-root .khf-form label{display:grid;gap:4px;font-size:13px;font-weight:500;color:var(--khf-fg);margin:0}
#khf-root .khf-form input,#khf-root .khf-form select{width:100%;font:inherit;font-size:14px;padding:8px 10px;border:1px solid var(--khf-line);border-radius:8px;background:var(--khf-paper);color:var(--khf-fg);height:auto;margin:0}
#khf-root .khf-form .khf-check{display:flex;gap:8px;align-items:flex-start;font-weight:400;font-size:12px;color:var(--khf-muted)}
#khf-root .khf-form .khf-check input{width:auto;margin-top:3px}
#khf-root .khf-btn{display:inline-flex;justify-content:center;align-items:center;padding:11px 18px;border-radius:9px;border:0;background:linear-gradient(180deg,var(--khf-gold-hi),var(--khf-gold));color:#1a1405;font-weight:700;font-size:14px}
#khf-root .khf-btn:disabled{opacity:.55;cursor:default}
#khf-root .khf-note{font-size:12.5px;color:var(--khf-muted);margin:0}
#khf-root .khf-ok{background:#f6edcf;color:var(--khf-fg);padding:10px 12px;border-radius:8px;font-size:13.5px;margin:0}
#khf-root .khf-in{display:flex;gap:8px;padding:12px;border-top:1px solid var(--khf-line);background:#fff;margin:0}
#khf-root .khf-in textarea{flex:1;min-width:0;height:44px;min-height:44px;resize:none;font:inherit;font-size:14.5px;padding:10px 12px;border:1px solid var(--khf-line);border-radius:10px;background:var(--khf-paper);color:var(--khf-fg);margin:0}
#khf-root .khf-foot{font-size:11px;color:var(--khf-muted);padding:0 12px 10px;background:#fff}
#khf-root .khf-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
@media (max-width:480px){#khf-root .khf-fab .khf-t{display:none}#khf-root .khf-fab{padding:9px}}
/* Hide the KPIU theme's built-in chat while this plugin is active. */
#chatFab,#chat{display:none!important}
