.cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    color: #111;
    transform: translate3d(0, 110%, 0);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.cookie-consent.is-visible {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.cookie-consent.is-scrolled-away {
    transform: translate3d(0, 110%, 0);
}

.cookie-consent__inner {
    display: grid;
    gap: 0.9rem;
    width: 100%;
    padding: 0.9rem var(--page-padding);
    border-top: 1px solid rgba(17, 17, 17, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

.cookie-consent__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.cookie-consent__details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.8rem 1rem;
}

.cookie-consent__details[hidden] {
    display: none;
}

.cookie-consent p {
    max-width: 58rem;
    margin: 0;
    color: #565656;
    font-size: 0.82rem;
    line-height: 1.4;
}

.cookie-consent__privacy {
    width: fit-content;
    color: #111;
    font-size: 0.78rem;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.cookie-consent__actions--details {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
}

.cookie-consent.is-expanded .cookie-consent__actions--summary {
    display: none;
}

.cookie-consent__button,
.footer-cookie-settings {
    border: 0;
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
}

.cookie-consent__button {
    min-width: 4.5rem;
    min-height: 2.2rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.76rem;
    line-height: 1.05;
    white-space: nowrap;
}

.cookie-consent__button--primary {
    background: #111;
    color: #fff;
}

.cookie-consent__button--secondary {
    background: #eeeeee;
    color: #111;
}

.footer-cookie-settings {
    display: inline-flex;
    width: fit-content;
    margin-top: 0.65rem;
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 1em;
    line-height: 1.25;
    text-align: left;
}

@media (max-width: 760px) {
    .cookie-consent__summary,
    .cookie-consent__details {
        grid-template-columns: minmax(0, 1fr);
    }

    .cookie-consent__actions,
    .cookie-consent__actions--details {
        grid-row: auto;
        grid-column: auto;
        justify-content: flex-start;
    }

    .cookie-consent__button {
        min-height: 2.35rem;
    }

    .footer-cookie-settings {
        margin-inline: auto;
        text-align: center;
    }
}
