#cookie-banner[hidden] {
    display: none;
}

#cookie-banner {
    position: fixed;
    z-index: 1050;
    inset: auto 20px 20px auto;
    width: min(460px, calc(100% - 40px));
    max-height: calc(100dvh - 40px);
    overflow: auto;
    padding: 24px;
    color: #fff;
    background: #171717;
    border: 1px solid #484848;
    border-top: 3px solid var(--site-red);
    box-shadow: 0 12px 36px #000a;
    font-family: "Roboto Condensed", sans-serif;
}

#cookie-banner h2 {
    margin: 0 0 8px;
    color: inherit;
    font-size: 26px;
}

#cookie-banner p, #cookie-banner a {
    color: #eee;
    font-size: 16px;
    line-height: 1.45;
}

#cookie-banner [role="status"]:empty {
    display: none;
}

#cookie-banner a, [data-cookie-settings] {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 16px;
}

.footer-legal a, .footer-legal button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #fff;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.cookie-actions button {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #aaa;
    background: transparent;
    color: #fff;
    font: 500 16px "Roboto Condensed", sans-serif;
    cursor: pointer;
}

.cookie-actions button:hover {
    background: #333;
}

[data-cookie-settings] {
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

#cookie-banner :focus-visible, [data-cookie-settings]:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    #cookie-banner {
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        padding: 16px;
    }
}
