/* The Muse Agency — v7.19 site widgets: cookie-policy bar + Muse chat.
   Loaded on every page by /assets/muse-widgets.js (markup is built by JS).
   Palette matches the site: ink #0b1830, paper #f7f6f1, gold #d7a82b.
   Stacking (bottom-right corner): chat button at the corner (z 9999),
   accessibility button directly above it (z 9998, offset overridden below),
   chat panel above both (z 10001), cookie bar across the bottom (z 9990)
   with the buttons lifted above it via --gm-cbh while it is visible. */

:root{--gm-cbh:0px}

/* --- Accessibility widget restack: sits directly above the chat button --- */
body .gm-a11y{bottom:calc(88px + var(--gm-cbh))}

/* --- Cookie-policy bar --- */
.gm-cookie{position:fixed;left:0;right:0;bottom:0;z-index:9990;background:#0b1830;color:#f7f6f1;
  font-family:Archivo,"Avenir Next","Segoe UI",system-ui,sans-serif;
  box-shadow:0 -6px 24px rgba(11,24,48,.28);border-top:2px solid #d7a82b}
.gm-cookie-in{display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  max-width:1180px;margin:0 auto;padding:12px 18px}
.gm-cookie p{margin:0;font-size:.9rem;line-height:1.45;flex:1 1 320px}
.gm-cookie a{color:#f0ca61;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.gm-cookie a:hover{color:#d7a82b}
.gm-cookie-btns{display:flex;gap:8px;flex:0 0 auto}
.gm-cookie-btns button{font:inherit;font-size:.88rem;font-weight:700;cursor:pointer;
  border-radius:999px;padding:8px 20px;border:1px solid #f7f6f1;background:transparent;color:#f7f6f1}
.gm-cookie-btns button:hover{border-color:#f0ca61;color:#f0ca61}
.gm-cookie-btns button:focus-visible{outline:3px solid #f0ca61;outline-offset:2px}
.gm-cookie-btns .gm-cookie-accept{background:#d7a82b;border-color:#d7a82b;color:#0b1830}
.gm-cookie-btns .gm-cookie-accept:hover{background:#f0ca61;border-color:#f0ca61;color:#0b1830}

/* --- Chat launcher button (Muse mascot) --- */
.gm-chat-btn{position:fixed;right:16px;bottom:calc(16px + var(--gm-cbh));z-index:9999;
  width:60px;height:60px;border-radius:50%;border:2px solid #d7a82b;background:#0b1830;
  padding:0;cursor:pointer;display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 28px rgba(11,24,48,.38);overflow:hidden;
  font-family:Archivo,"Avenir Next","Segoe UI",system-ui,sans-serif}
.gm-chat-btn img{width:100%;height:100%;object-fit:cover;display:block}
.gm-chat-btn:hover{background:#192b48}
.gm-chat-btn:focus-visible{outline:3px solid #f0ca61;outline-offset:2px}
.gm-chat-btn .gm-chat-close-ic{display:none;font-size:26px;line-height:1;color:#f7f6f1;font-weight:400}
.gm-chat-btn.open img{display:none}
.gm-chat-btn.open .gm-chat-close-ic{display:block}

/* --- Chat panel --- */
.gm-chat-panel{position:fixed;right:16px;bottom:calc(88px + var(--gm-cbh));z-index:10001;
  width:378px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100dvh - 120px - var(--gm-cbh));
  background:#f7f6f1;border-radius:18px;overflow:hidden;display:none;flex-direction:column;
  box-shadow:0 24px 60px rgba(11,24,48,.42);border:1px solid rgba(11,24,48,.14);
  font-family:Archivo,"Avenir Next","Segoe UI",system-ui,sans-serif}
.gm-chat-panel.open{display:flex}
.gm-chat-head{display:flex;align-items:center;gap:11px;background:#0b1830;color:#f7f6f1;
  padding:12px 14px;flex:0 0 auto}
.gm-chat-head img{width:38px;height:38px;border-radius:50%;object-fit:cover;border:2px solid #d7a82b;flex:0 0 auto}
.gm-chat-head .gm-chat-titles{flex:1 1 auto;min-width:0}
.gm-chat-head h2{margin:0;font-size:1rem;line-height:1.25;color:#f7f6f1}
.gm-chat-head p{margin:1px 0 0;font-size:.76rem;line-height:1.3;color:#c9d2e4}
.gm-chat-x{flex:0 0 auto;background:transparent;border:0;color:#f7f6f1;font-size:24px;line-height:1;
  cursor:pointer;padding:4px 6px;border-radius:8px}
.gm-chat-x:hover{color:#f0ca61}
.gm-chat-x:focus-visible{outline:3px solid #f0ca61;outline-offset:1px}
.gm-chat-body{flex:1 1 auto;min-height:0;display:flex}
.gm-chat-body deep-chat{display:block;width:100%;height:100%;border:none;box-shadow:none;background:transparent}
.gm-chat-loading{margin:auto;color:#0b1830;font-size:.92rem;padding:20px;text-align:center}

@media (max-width:480px){
  .gm-chat-panel{height:calc(100dvh - 108px - var(--gm-cbh))}
  .gm-cookie-in{padding:12px 14px}
  .gm-cookie-btns{width:100%}
  .gm-cookie-btns button{flex:1}
}
