/* MainLayout renders this outside the page/drawer overflow contexts. */
.cookie-consent {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1300; /* Above the drawer/app bar, below MudBlazor dialogs (1400). */
    width: 440px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    box-sizing: border-box;
    overflow-y: auto;
    padding: 20px;
    background: var(--cookie-bg, #fff);
    color: var(--cookie-text, #202b3b);
    border: 1px solid var(--cookie-border, #ccd3dd);
    border-radius: 12px;
    box-shadow: 0 8px 32px #0003;
    font: 400 15px/1.5 Gilroy, Arial, sans-serif;
}
.cookie-consent[hidden], .cookie-consent [hidden] { display: none; }
.cookie-consent h2 { margin: 0 0 8px; font: 600 20px/1.3 Gilroy, Arial, sans-serif; }
.cookie-consent p { margin: 0 0 12px; }
.cookie-consent a { color: var(--cookie-link, #2455b1); text-decoration: underline; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-consent button {
    flex: 1;
    font: 600 14px/1.4 Gilroy, Arial, sans-serif;
    cursor: pointer;
    color: var(--cookie-text, #202b3b);
    background: var(--cookie-bg, #fff);
    border: 1px solid var(--cookie-border, #8592a4);
    border-radius: 8px;
    padding: 11px 16px;
    min-height: 44px;
}
.cookie-consent button:hover { background: var(--cookie-hover, #edf2fa); }
.cookie-consent :focus-visible, .cookie-settings:focus-visible {
    outline: 3px solid var(--cookie-focus, #2455b1);
    outline-offset: 3px;
}
.cookie-link { display: inline-flex; flex-direction: column; align-items: flex-start; }
.cookie-settings {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    text-align: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.cookie-status { font-size: 12px; line-height: 1.5; }
.cookie-status:empty { display: none; }
[data-theme="dark"] {
    --cookie-bg: #202a38;
    --cookie-text: #f1f4f8;
    --cookie-border: #8592a4;
    --cookie-link: #a8c8ff;
    --cookie-focus: #a8c8ff;
    --cookie-hover: #35445a;
}
@media (max-width: 480px) {
    .cookie-consent { padding: 16px; }
    .cookie-consent__actions { gap: 10px; }
}
