.cookie-consent {
    position: fixed;
    z-index: 1000;
    right: 20px;
    bottom: 20px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    width: min(860px, calc(100% - 32px));
    padding: 20px;
    border: 1px solid var(--fox-border);
    border-radius: var(--radius-lg);
    background: var(--fox-surface-strong);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__image {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
}

.cookie-consent__copy h2 {
    margin: 0 0 8px;
    color: var(--fox-accent);
    font-size: 1.2rem;
}

.cookie-consent__copy p {
    margin: 0;
    color: var(--fox-text);
    line-height: 1.55;
}

.cookie-consent__copy a {
    color: var(--fox-accent);
    text-underline-offset: 3px;
}

.cookie-consent__links {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-consent__links a {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--fox-border);
    border-radius: var(--radius-sm);
    color: var(--fox-accent);
    text-decoration: none;
}

.cookie-consent__links a:hover {
    border-color: var(--fox-accent);
    background: color-mix(in srgb, var(--fox-accent) 10%, transparent);
}

.cookie-consent__footer {
    grid-column: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-consent__button {
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid var(--fox-border);
    border-radius: var(--radius-sm);
    background: var(--fox-surface);
    color: var(--fox-text);
    font: inherit;
    cursor: pointer;
}

.cookie-consent__button:hover {
    border-color: var(--fox-accent);
}

.cookie-consent__button--accept {
    border-color: var(--fox-accent);
    background: var(--fox-accent);
    color: #1b1008;
}

.cookie-consent__button--accept:hover {
    background: var(--fox-accent-2);
}

.cookie-settings-button {
    font-family: inherit;
    cursor: pointer;
}

@media (max-width: 560px) {
    .cookie-consent {
        right: 12px;
        bottom: 12px;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .cookie-consent__image {
        width: 48px;
        height: 48px;
    }

    .cookie-consent__footer {
        grid-column: 1 / -1;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .cookie-consent__links {
        flex-direction: row;
        flex: 0 0 auto;
    }

    .cookie-consent__actions {
        flex: 1;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent__button {
        width: 100%;
    }
}
