/* Плашка согласия на cookie (website/static/website/js/cookie-consent.js). Только токены --gl-*. */
.gl-cookie {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom, 0px));
    background: var(--gl-surface-card);
    border-top: 1px solid var(--gl-border-mid);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}
.gl-cookie__text {
    margin: 0; max-width: 62rem;
    color: var(--gl-fg-3); font-size: 0.85rem; line-height: 1.55;
}
.gl-cookie__text a { color: var(--gl-brand-yellow); text-decoration: underline; text-underline-offset: 2px; }
.gl-cookie__actions { display: flex; flex-shrink: 0; gap: 0.75rem; }
.gl-cookie__btn {
    min-height: 44px; padding: 0.55rem 1.25rem; cursor: pointer;
    border-radius: var(--gl-radius-sm);
    font: inherit; font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.gl-cookie__btn--primary {
    background: var(--gl-brand-yellow); color: var(--gl-fg-on-yellow); border: 1px solid var(--gl-brand-yellow);
}
.gl-cookie__btn--primary:hover { background: var(--gl-brand-yellow-hover); border-color: var(--gl-brand-yellow-hover); }
.gl-cookie__btn--ghost {
    background: transparent; color: var(--gl-fg-1); border: 1px solid var(--gl-border-mid);
}
.gl-cookie__btn--ghost:hover { border-color: var(--gl-fg-muted); }
@media (max-width: 767px) {
    .gl-cookie { flex-direction: column; align-items: stretch; gap: 0.85rem; padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px)); }
    .gl-cookie__actions { flex-direction: column; }
}

/* Блок «Статистика посещений» на /legal/cookies/ с переключателем */
.gl-cookie-stats {
    margin: 2rem 0; padding: 1.5rem;
    background: var(--gl-surface-card); border: 1px solid var(--gl-border-card);
    border-radius: var(--gl-radius-lg);
}
.gl-cookie-stats h2 { margin: 0 0 0.75rem; font-size: 1.4rem; text-transform: uppercase; }
.gl-cookie-stats__row { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.25rem; margin-top: 1.25rem; }
.gl-cookie-stats__note { color: var(--gl-fg-muted); font-size: 0.85rem; line-height: 1.5; }
.gl-cookie-switch {
    display: inline-flex; align-items: center; gap: 0.9rem; min-height: 48px; padding: 0.5rem 1.25rem 0.5rem 1rem;
    background: var(--gl-surface-body); color: var(--gl-fg-1);
    border: 1px solid var(--gl-border-mid); border-radius: var(--gl-radius-sm);
    font: inherit; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
}
.gl-cookie-switch__track {
    position: relative; flex-shrink: 0; width: 34px; height: 16px;
    background: var(--gl-border-mid); border-radius: var(--gl-radius-xs);
}
.gl-cookie-switch__thumb {
    position: absolute; top: 2px; left: 2px; width: 12px; height: 12px;
    background: var(--gl-fg-muted); border-radius: var(--gl-radius-xs); transition: transform 0.15s ease, background 0.15s ease;
}
.gl-cookie-switch[aria-checked="true"] { background: var(--gl-brand-yellow); border-color: var(--gl-brand-yellow); color: var(--gl-fg-on-yellow); }
.gl-cookie-switch[aria-checked="true"] .gl-cookie-switch__track { background: rgba(0, 0, 0, 0.35); }
.gl-cookie-switch[aria-checked="true"] .gl-cookie-switch__thumb { transform: translateX(18px); background: var(--gl-fg-on-yellow); }
.gl-cookie-switch:focus-visible { outline: 2px solid var(--gl-brand-cyan); outline-offset: 2px; }
