/*
 * The cookie notice (Views/Shared/_CookieNotice.cshtml): a card in the bottom-left corner.
 * Colours and fonts come from the --sw-* theme tokens (Content/themes/sw-tokens.css) on the pages that load them;
 * elsewhere the fallbacks are Blueprint's, the public pages' theme. landing.css maps the home page's own palette.
 */
.sw-cookies {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1060;
    box-sizing: border-box;
    width: 420px;
    max-width: calc(100% - 32px);
    padding: 18px 20px;
    border: 1px solid var(--sw-border, #c7d4e2);
    border-radius: var(--sw-radius, 2px);
    background: var(--sw-pane, #f4f7fa);
    color: var(--sw-text, #16283b);
    box-shadow: 0 10px 30px rgba(11, 35, 64, 0.22);
    font-family: var(--sw-font, 'IBM Plex Sans Condensed', 'Segoe UI', sans-serif);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    animation: sw-cookies-in 300ms ease-out;
}

.sw-cookies[hidden] { display: none; }

@keyframes sw-cookies-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sw-cookies { animation: none; }
}

.sw-cookies-title {
    margin: 0 0 6px;
    color: var(--sw-head, #34516f);
    font-family: var(--sw-font-head, 'IBM Plex Mono', Consolas, monospace);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: var(--sw-head-spacing, 0.08em);
    line-height: 1.4;
    text-transform: var(--sw-head-case, uppercase);
}

.sw-cookies p { margin: 0; }

.sw-cookies a {
    color: var(--sw-accent-ink, #c2451d);
    text-decoration: underline;
}

.sw-cookies-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

/* the two choices are the same size: turning analytics down is as easy as allowing it */
.sw-cookies-btn {
    flex: 1 1 auto;
    min-width: 140px;
    margin: 0;
    padding: 8px 16px;
    border: 1px solid var(--sw-border, #c7d4e2);
    border-radius: var(--sw-radius, 2px);
    background: transparent;
    color: var(--sw-text, #16283b);
    cursor: pointer;
    font-family: var(--sw-font-head, 'IBM Plex Mono', Consolas, monospace);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: var(--sw-head-spacing, 0.08em);
    line-height: 1.4;
    text-transform: var(--sw-head-case, uppercase);
}

.sw-cookies-btn:hover { background: var(--sw-pane-alt, #e9eff5); }

.sw-cookies-btn-main {
    border-color: var(--sw-accent, #e0572b);
    background: var(--sw-accent, #e0572b);
    color: var(--sw-on-accent, #ffffff);
}

.sw-cookies-btn-main:hover {
    border-color: var(--sw-accent-ink, #c2451d);
    background: var(--sw-accent-ink, #c2451d);
}

.sw-cookies-btn:focus-visible {
    outline: 2px solid var(--sw-accent, #e0572b);
    outline-offset: 2px;
}
