/* All selectors are scoped to the analytics controls. */
.mga-settings-bar{box-sizing:border-box;padding:12px 16px;text-align:center;background:transparent;font:14px/1.5 system-ui,-apple-system,sans-serif;}
.mga-settings,.mga-inline-settings{box-sizing:border-box;min-height:44px;padding:8px 12px;border:1px solid #c9cec8;border-radius:4px;background:#faf9f6;color:#20271f;cursor:pointer;font:inherit;text-decoration:underline;text-underline-offset:3px;}
.mga-panel{box-sizing:border-box;position:fixed;z-index:2147483000;bottom:16px;left:50%;transform:translateX(-50%);width:calc(100% - 32px);max-width:640px;max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid #bbc2b8;border-radius:8px;background:#faf9f6;color:#20271f;box-shadow:0 4px 24px #0002;font:15px/1.5 system-ui,-apple-system,sans-serif;text-align:left;}
.mga-panel[hidden]{display:none!important;}
.mga-panel h2{margin:0 0 8px;padding:0;color:#20271f;font:600 18px/1.3 system-ui,-apple-system,sans-serif;}
.mga-panel p{margin:0 0 12px;padding:0;color:#4e594b;font:15px/1.5 system-ui,-apple-system,sans-serif;}
.mga-panel .mga-status{font-size:13px;}
.mga-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px;}
.mga-actions button{box-sizing:border-box;flex:1 1 150px;min-height:44px;padding:8px 12px;border:1px solid #8f9b8a;border-radius:4px;background:#fff;color:#20271f;cursor:pointer;font:600 14px/1.4 system-ui,-apple-system,sans-serif;}
.mga-actions [data-ga4-close]{flex:0 1 auto;font-weight:400;}
.mga-panel a{color:#20271f;font:14px/1.5 system-ui,-apple-system,sans-serif;text-decoration:underline;text-underline-offset:3px;}
.mga-panel button:hover,.mga-settings:hover,.mga-inline-settings:hover{background:#eef1ea;}
.mga-panel button:focus-visible,.mga-panel a:focus-visible,.mga-settings:focus-visible,.mga-inline-settings:focus-visible{outline:3px solid #586f4e;outline-offset:3px;}
@media(max-width:400px){.mga-panel{bottom:8px;width:calc(100% - 16px);padding:16px;}.mga-actions button{flex-basis:100%;}.mga-actions [data-ga4-close]{flex-basis:100%;}}
