/* ============ Ahmed's AI — floating cloud widget (rebuilt v2) ============
   Design rules: compact floating panel, never full-screen, never blocks the
   page. Starts CLOSED. No auto-open. No navigation side effects. */
:root{
  --gi-green:#1D5C38; --gi-green2:#2E7D4F; --gi-gold:#D9A021;
  --gi-ink:#2b2f28; --gi-cream:#FDFBF5;
}

/* ---- launcher button (only thing visible on load) ---- */
#gi-chat-btn{
  position:fixed; left:18px; bottom:18px; z-index:2147483000;
  width:64px; height:64px; border-radius:50%;
  background:var(--gi-green); border:0; cursor:pointer; padding:0;
  box-shadow:0 8px 24px rgba(29,92,56,.4), 0 2px 6px rgba(0,0,0,.15);
  transition:transform .18s ease;
}
#gi-chat-btn:hover{ transform:scale(1.06); }
#gi-chat-btn img{ width:100%; height:100%; object-fit:cover; object-position:50% 22%;
  border-radius:50%; display:block; }

/* ---- floating panel: compact, bottom-left, never full-screen ---- */
#gi-chat-panel{
  position:fixed; left:18px; bottom:94px; z-index:2147483001;
  width:min(392px, calc(100vw - 36px));
  height:min(620px, calc(100dvh - 130px)); max-height:620px;
  display:flex; flex-direction:column; overflow:hidden;
  background:rgba(253,251,245,.97);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  border-radius:28px;
  box-shadow:0 24px 60px rgba(20,40,25,.28), 0 4px 14px rgba(0,0,0,.1);
  font-family:-apple-system,system-ui,"Segoe UI",sans-serif;
  transform-origin:bottom left;
  animation:gi-pop .25s ease;
}
#gi-chat-panel[hidden]{ display:none; }
@keyframes gi-pop{ from{ opacity:0; transform:scale(.94) translateY(10px);} to{ opacity:1; transform:none;} }
.gi-head{ display:flex; align-items:center; gap:10px; padding:12px 12px 12px 14px;
  background:linear-gradient(135deg,#f4efe0,#faf7ee); }
.gi-head .gi-av{ width:40px; height:40px; border-radius:50%; overflow:hidden; flex-shrink:0;
  box-shadow:0 3px 8px rgba(29,92,56,.3); background:#fff; }
.gi-head .gi-av img{ width:100%; height:100%; object-fit:cover; object-position:50% 22%; display:block; }
.gi-head .gi-tt{ font-weight:800; font-size:15.5px; color:var(--gi-green); }
.gi-head .gi-ss{ font-size:11.5px; color:#8a8f7d; }
.gi-head .gi-x{ margin-left:auto; width:32px; height:32px; border-radius:50%; border:0;
  background:rgba(29,92,56,.08); color:#5b6472; font-size:18px; cursor:pointer; line-height:1; }
.gi-head .gi-x:hover{ background:rgba(29,92,56,.16); }
#gi-chat-msgs{ flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch;
  display:flex; flex-direction:column; gap:12px; padding:16px 14px 8px; scrollbar-width:thin; }
.gi-msg{ max-width:86%; padding:11px 16px; font-size:14.5px; line-height:1.55; color:var(--gi-ink);
  animation:gi-in .3s cubic-bezier(.2,.9,.3,1.12) backwards; }
@keyframes gi-in{ from{ opacity:0; transform:translateY(10px) scale(.97);} to{ opacity:1; transform:none;} }
.gi-msg.bot{ background:#fff; align-self:flex-start; border-radius:8px 24px 24px 24px;
  box-shadow:0 6px 18px rgba(30,50,35,.09); }
.gi-msg.bot.alt{ border-radius:24px 22px 24px 8px; }
.gi-msg.user{ background:linear-gradient(135deg,var(--gi-green),var(--gi-green2)); color:#fff;
  align-self:flex-end; border-radius:24px 8px 24px 24px;
  box-shadow:0 6px 18px rgba(29,92,56,.22); }
.gi-msg.user.alt{ border-radius:22px 24px 8px 24px; }
.gi-row{ display:flex; align-items:flex-end; gap:7px; align-self:flex-start; max-width:94%; }
.gi-row .gi-msg.bot{ max-width:calc(100% - 34px); margin:0; }
.gi-row .gi-mini{ width:26px; height:26px; border-radius:50%; object-fit:cover;
  object-position:50% 22%; flex-shrink:0; background:#fff; box-shadow:0 2px 6px rgba(30,50,35,.16); }
.gi-typing{ display:inline-flex; gap:5px; padding:4px 2px; }
.gi-typing span{ width:7px; height:7px; border-radius:50%; background:#b9bfae;
  animation:gi-br 1.25s ease-in-out infinite; }
.gi-typing span:nth-child(2){ animation-delay:.18s; } .gi-typing span:nth-child(3){ animation-delay:.36s; }
@keyframes gi-br{ 0%,100%{ opacity:.35; transform:scale(.9);} 50%{ opacity:1; transform:scale(1.12);} }
.gi-quick{ display:flex; flex-wrap:wrap; gap:7px; margin-top:9px; }
.gi-quick button{ background:rgba(29,92,56,.08); border:0; color:var(--gi-green); border-radius:999px;
  padding:8px 14px; font-size:13px; font-weight:600; cursor:pointer; }
.gi-quick button:hover{ background:rgba(29,92,56,.16); }
.gi-dock{ display:flex; gap:8px; align-items:center; padding:10px;
  background:rgba(255,255,255,.9); }
.gi-dock input{ flex:1; border:0; background:#f1eee2; border-radius:999px; min-width:0;
  padding:12px 18px; font-size:14.5px; outline:none; color:var(--gi-ink); font-family:inherit; }
.gi-dock input::placeholder{ color:#a8ad9c; }
.gi-dock button{ background:linear-gradient(135deg,var(--gi-green),var(--gi-green2)); color:#fff;
  border:0; border-radius:50%; width:44px; height:44px; font-size:17px; cursor:pointer; flex-shrink:0; }
.gi-quote{ margin-top:10px; background:#fbf8ee; border-radius:18px; padding:12px 14px; font-size:13.5px; }
.gi-quote .gi-step{ display:flex; justify-content:space-between; gap:8px; padding:5px 0;
  border-bottom:1px dashed #e5ddc4; }
.gi-quote .gi-step:last-of-type{ border-bottom:0; }
.gi-quote .gi-total{ font-weight:800; color:var(--gi-green); font-size:15px; margin-top:8px; }
.gi-quote .gi-disc{ font-size:12px; color:#8a8f7d; margin-top:6px; }
.gi-cta{ display:inline-block; margin-top:10px; background:var(--gi-gold); color:#1a1a1a; font-weight:700;
  text-decoration:none; padding:10px 20px; border-radius:999px; font-size:13.5px; border:0; cursor:pointer; }
.gi-cal{ margin-top:10px; }
.gi-cal .gi-days{ display:flex; gap:6px; overflow-x:auto; padding:4px 2px 8px; }
.gi-cal .gi-day{ flex:0 0 auto; border:0; border-radius:14px; padding:8px 10px; font-size:12px;
  background:rgba(29,92,56,.07); color:var(--gi-green); cursor:pointer; font-weight:600; }
.gi-cal .gi-day.sel{ background:var(--gi-green); color:#fff; }
.gi-cal .gi-pick{ font-size:13px; font-weight:600; margin:8px 0 2px; color:var(--gi-green); }
.gi-cal .gi-times{ display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin-top:4px;
  max-height:176px; overflow-y:auto; padding:2px; }
.gi-cal .gi-time{ border:0; border-radius:999px; padding:8px 6px; font-size:12.5px; font-weight:600;
  background:#fff; color:var(--gi-green); box-shadow:0 2px 8px rgba(30,50,35,.1); cursor:pointer; }
.gi-cal .gi-time.sel{ background:var(--gi-green); color:#fff; }
.gi-cal .gi-book{ width:100%; margin-top:10px; border:0; border-radius:999px; padding:12px;
  font-size:14px; font-weight:700; background:var(--gi-green); color:#fff; cursor:pointer; }
.gi-cal .gi-book:disabled{ opacity:.45; cursor:default; }
/* ---- month calendar: full month grid, any future date ---- */
.gi-cal .gi-mhead{ display:flex; align-items:center; justify-content:space-between; margin:2px 0 8px; }
.gi-cal .gi-mtitle{ font-size:14.5px; font-weight:800; color:var(--gi-green); }
.gi-cal .gi-mnav{ border:0; background:rgba(29,92,56,.08); color:var(--gi-green); width:32px; height:32px;
  border-radius:50%; font-size:17px; font-weight:700; cursor:pointer; line-height:1; }
.gi-cal .gi-mnav:hover:not(:disabled){ background:rgba(29,92,56,.16); }
.gi-cal .gi-mnav:disabled{ opacity:.3; cursor:default; }
.gi-cal .gi-wk{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; margin-bottom:4px; }
.gi-cal .gi-wk span{ text-align:center; font-size:10.5px; font-weight:700; color:#8a8f7d; padding:3px 0; }
.gi-cal .gi-mgrid{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.gi-cal .gi-mday{ border:0; border-radius:10px; padding:0; aspect-ratio:1; font-size:12.5px; font-weight:600;
  background:rgba(29,92,56,.07); color:var(--gi-green); cursor:pointer; }
.gi-cal .gi-mday:hover:not(:disabled){ background:rgba(29,92,56,.16); }
.gi-cal .gi-mday.sel{ background:var(--gi-green); color:#fff; }
.gi-cal .gi-mday.today{ box-shadow:inset 0 0 0 2px var(--gi-gold); }
.gi-cal .gi-mday.off{ background:transparent; color:#c9cdbf; cursor:default; }
.gi-cal .gi-mday.pad{ background:transparent; cursor:default; }
