.consent-notices {
    position: fixed;
    z-index: 80;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: flex;
    max-width: 1240px;
    margin-inline: auto;
    align-items: flex-end;
    gap: 24px;
    pointer-events: none;
}

.cookie-notice {
    display: flex;
    flex: 0 1 850px;
    width: min(850px, 100%);
    margin-right: auto;
    padding: 22px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #303430;
    border-radius: 14px;
    background: var(--ink);
    color: var(--on-dark, #f7f6f2);
    box-shadow: 0 6px 8px rgb(17 18 17 / 22%);
    font: 14px/1.55 "Plus Jakarta Sans", "Segoe UI", sans-serif;
    pointer-events: auto;
}

.cookie-notice[hidden] { display: none; }
.cookie-notice strong { display: block; margin-bottom: 5px; font: 600 17px/1.3 Poppins, "Plus Jakarta Sans", sans-serif; }
.cookie-notice p { max-width: 58ch; margin: 0; color: var(--muted-on-dark, #c8cbc5); }
.cookie-notice a { color: var(--icon-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cookie-notice button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--blue);
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    font: 700 13px/1 "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.cookie-notice-actions button[data-analytics-consent="denied"] { border-color: #73776f; background: transparent; color: var(--muted-on-dark, #c8cbc5); font-weight: 600; }
.cookie-notice-actions button[data-analytics-consent="denied"]:hover { border-color: #b6bab2; background: #303430; color: #fff; }
.cookie-notice-actions button[data-analytics-consent="granted"] { border-color: var(--blue); background: var(--blue); color: #fff; font-weight: 700; }
.cookie-notice-actions button[data-analytics-consent="granted"]:hover { border-color: var(--blue-hover); background: var(--blue-hover); }
.cookie-preferences-open { width: max-content; padding: 2px 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; text-decoration: none; }
.cookie-preferences-open:hover { color: var(--on-dark, #f7f6f2); text-decoration: underline; text-decoration-color: var(--icon-on-dark); text-underline-offset: 4px; }
.cookie-preferences-open:focus-visible { outline: 2px solid var(--icon-on-dark); outline-offset: 4px; border-radius: 2px; }
.cookie-notice button:hover { border-color: var(--blue-hover); background: var(--blue-hover); }
.cookie-notice button:focus-visible, .cookie-notice a:focus-visible { outline: 3px solid var(--icon-on-dark); outline-offset: 3px; }

@media (max-width: 1000px) {
    .consent-notices {
        right: 14px;
        bottom: 14px;
        left: 14px;
        max-height: calc(100vh - 28px);
        max-height: calc(100dvh - 28px);
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .cookie-notice { flex: 0 0 auto; width: 100%; max-width: none; margin-right: 0; margin-left: 0; }
}

@media (max-width: 700px) {
    .cookie-notice { padding: 18px; align-items: stretch; flex-direction: column; gap: 14px; }
    .cookie-notice-actions { width: 100%; flex-direction: row; gap: 8px; }
    .cookie-notice-actions button { flex: 1 1 0; width: auto; min-width: 0; min-height: 48px; padding-inline: 8px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-notice button, .cookie-preferences-open { transition: none; }
}
