/* Cookie notice (Shared/_CookieNotice.cshtml, js/consent.js). A small card pinned to the bottom-left
   corner: no backdrop, no page lock, nothing it covers that you cannot scroll past. On a phone it
   spans the width but stays two short lines tall. */

.cookie-notice {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1040;
    max-width: 22rem;
    display: flex;
    flex-direction: column;
    gap: .625rem;
    padding: .875rem 1rem;
    background-color: var(--surface);
    color: var(--ink-soft);
    border: 1px solid var(--border);
    border-radius: .75rem;
    box-shadow: var(--shadow-lg);
    font-size: .8125rem;
    line-height: 1.45;
}
.cookie-notice[hidden] { display: none; }

.cookie-notice-text { margin: 0; }
.cookie-notice-text a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 2px; }

.cookie-notice-actions { display: flex; gap: .5rem; justify-content: flex-end; }

/* Both answers look the same on purpose: neither is the "right" button. */
.cookie-btn {
    min-width: 5.5rem;
    padding: .375rem .875rem;
    font: inherit;
    font-weight: 600;
    color: var(--ink);
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.cookie-btn:hover, .cookie-btn:focus-visible { border-color: var(--blue); color: var(--blue-ink); }
.cookie-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cookie-btn[aria-pressed="true"] { border-color: var(--ink-soft); }

@media (max-width: 30rem) {
    .cookie-notice {
        left: .75rem;
        right: .75rem;
        bottom: .75rem;
        max-width: none;
        flex-direction: row;
        align-items: center;
        gap: .75rem;
        padding: .625rem .75rem;
    }
    .cookie-notice-actions { flex-direction: column; gap: .375rem; }
    .cookie-btn { min-width: 4.75rem; padding: .3125rem .625rem; }
}

/* The footer "Cookie settings" control is a button styled to sit in a link list. */
.footer-links .cookie-settings-link {
    padding: 0;
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color .15s ease;
}
.footer-links .cookie-settings-link:hover, .footer-links .cookie-settings-link:focus-visible { color: var(--ink); }
