.hib-ga-settings, .hib-ga-panel button {
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.hib-ga-settings {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
}
.hib-ga-panel[hidden] { display: none; }
body:has(> .hib-ga-panel:not([hidden])) .preferences-dock { display: none; }
.hib-ga-panel {
    position: fixed;
    inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
    z-index: 1000;
    box-sizing: border-box;
    width: min(calc(100% - 2rem), 23.5rem);
    padding: 1rem 1.15rem;
    border-radius: 1.05rem;
    border: 1px solid var(--shop-border, #b4c5c8);
    background: var(--shop-surface, #fcfaf6);
    color: var(--shop-ink, #264653);
    box-shadow: 0 1rem 2.5rem #102b3440;
    font-size: .92rem;
    line-height: 1.48;
}
html[data-theme='dark'] .hib-ga-panel { background: var(--shop-surface, #1b3842); color: #f7f6f2; }
.hib-ga-panel h2 { margin: 0; font-size: 1.14rem; color: inherit; }
.hib-ga-panel p { margin: .48rem 0; }
.hib-ga-panel a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.hib-ga-choices { display: grid; gap: .35rem; margin-top: .65rem; }
.hib-ga-choices label { display: flex; align-items: center; gap: .5rem; min-height: 1.75rem; cursor: pointer; }
.hib-ga-choices input { margin: 0; inline-size: 1rem; block-size: 1rem; flex: none; accent-color: #29786f; }
.hib-ga-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .85rem; }
.hib-ga-actions button { min-height: 2.6rem; padding: .4rem .35rem; border: 1px solid #bd983a; border-radius: .62rem; background: #e9c46a; color: #253641; }
.hib-ga-settings:focus-visible, .hib-ga-panel :focus-visible { outline: 2px solid #299b8d; outline-offset: 3px; }
