/* زر الدردشة العائم ولوحته: مكوّن واحد يُحمّل في كل واجهات المنصة بلا استثناء (الصفحة العامة،
   الاستفسارات، إضافة الفعاليات، سياسة الخصوصية، اللوحة الداخلية، وصفحات بوابة الفعاليات).
   الألوان مكتوبة صريحة لا بمتغيّرات الصفحة، كي يكون شكل المكوّن واحداً في كل صفحة يُحمّل فيها. */
.floating-assistant { position:fixed; z-index:2200; left:22px; bottom:22px; border:0; background:#0f766e; color:#fff; border-radius:999px; padding:8px 15px 8px 8px; box-shadow:0 16px 42px rgba(15,118,110,.28); display:flex; align-items:center; gap:9px; cursor:pointer; font-weight:800; font-family:Cairo,system-ui,sans-serif; font-size:1rem; text-decoration:none; }
.floating-assistant img { width:44px; height:44px; border-radius:50%; background:#fff; padding:4px; object-fit:contain; }
.guided-chat { position:fixed; z-index:2201; left:22px; bottom:88px; width:min(390px,calc(100vw - 28px)); max-height:min(610px,calc(100vh - 110px)); background:#fff; border:1px solid #d5efeb; border-radius:24px; box-shadow:0 24px 80px rgba(15,118,110,.25); overflow:hidden; color:#0f172a; font-family:Cairo,system-ui,sans-serif; text-align:start; }
.guided-chat[hidden] { display:none!important; }
.guided-chat header { display:flex; justify-content:space-between; align-items:center; padding:15px; background:#0f766e; color:#fff; }
.guided-chat header>div { display:flex; align-items:center; gap:9px; }
.guided-chat header img { width:42px; height:42px; border-radius:13px; background:#fff; padding:4px; object-fit:contain; }
.guided-chat header span { display:grid; }
.guided-chat header strong { font-size:1rem; }
.guided-chat header small { opacity:.78; }
.guided-chat header button { border:0; background:rgba(255,255,255,.12); color:#fff; border-radius:50%; width:34px; height:34px; font-size:1.4rem; line-height:1; cursor:pointer; }
.guided-chat__messages { min-height:170px; max-height:330px; overflow:auto; padding:16px; background:#f7fdfc; display:grid; align-content:start; gap:10px; }
.guided-line { max-width:88%; border-radius:16px 16px 5px 16px; background:#e6f7f4; padding:10px 12px; line-height:1.65; }
.guided-line--user { justify-self:end; background:#0f766e; color:#fff; border-radius:16px 16px 16px 5px; }
.guided-chat__actions { display:flex; flex-wrap:wrap; gap:8px; padding:12px 16px; }
.guided-chat__actions button { border:1px solid #14b8a6; background:#fff; color:#0f766e; border-radius:999px; padding:8px 11px; cursor:pointer; font-weight:700; font-family:inherit; }
.guided-chat__form { display:flex; gap:8px; padding:12px 16px 16px; border-top:1px solid #d5efeb; }
.guided-chat__form input { flex:1; min-width:0; border:1px solid #d5efeb; border-radius:13px; padding:11px; font-family:inherit; background:#fff; color:inherit; }
.guided-chat__form button { border:0; border-radius:12px; background:#0f766e; color:#fff; padding:10px 14px; font-weight:800; font-family:inherit; cursor:pointer; }
.guided-chat .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
@media(max-width:780px){ .floating-assistant{left:12px;bottom:12px} .guided-chat{left:14px;bottom:78px} }
@media print { .floating-assistant,.guided-chat { display:none!important; } }
