.cookie-settings {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}

.public-shell > .cookie-consent {
    position: fixed;
    inset: auto 1rem 1rem;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 940px;
    max-height: calc(100dvh - 2rem);
    margin-inline: auto;
    padding: 1.4rem;
    overflow-y: auto;
    background: var(--surface, #fff);
    color: var(--ink, #17203b);
    border: 2px solid var(--ink, #17203b);
    border-radius: 1rem;
    box-shadow: 0 .5rem 2rem #17203b26;
}

.cookie-consent[hidden], .cookie-settings[hidden] { display: none; }
.cookie-consent__content { flex: 1; min-width: 0; }
.cookie-consent h2 { margin: 0 0 .6rem; font-size: 1.15rem; font-weight: 700; }
.cookie-consent p { margin: 0 0 .5rem; font-size: .95rem; line-height: 1.6; }
.cookie-consent a { color: var(--ink, #17203b); text-underline-offset: .2em; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cookie-consent__button {
    flex: 1;
    min-width: 7rem;
    padding: .7rem 1rem;
    border: 2px solid var(--ink, #17203b);
    border-radius: .6rem;
    background: var(--paper, #fff9ef);
    color: var(--ink, #17203b);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.cookie-consent__button:hover { background: #e3f9ed; }
.cookie-consent :focus-visible, .cookie-settings:focus-visible { outline: 3px solid #4f7dff; outline-offset: 4px; }
@media (max-width: 700px) {
    .public-shell > .cookie-consent { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem; }
}
