.cookie-consent[hidden],
.cookie-consent-error[hidden] {
    display: none;
}

.cookie-consent {
    position: fixed;
    z-index: 1000;
    right: 20px;
    bottom: 20px;
    width: min(560px, calc(100vw - 40px));
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 8px 32px rgb(0 0 0 / 18%);
    color: var(--ink);
}

.cookie-consent-title {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 700;
}

.cookie-consent-description {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.cookie-consent-description a {
    text-decoration: underline;
}

.cookie-consent-error {
    margin: 12px 0 0;
    color: #a12622;
    font-weight: 600;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.cookie-consent-button,
.cookie-consent-settings {
    border: 1px solid var(--accent);
    border-radius: 0;
    padding: 9px 14px;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.cookie-consent-button {
    flex: 1;
}

.cookie-consent-button:hover,
.cookie-consent-settings:hover {
    font-weight: 700;
}

.cookie-consent-button:focus-visible,
.cookie-consent-settings:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 3px;
}

.cookie-consent-settings {
    border: 0;
    padding: 0;
    color: var(--muted);
    font-size: inherit;
    line-height: inherit;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .cookie-consent {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        padding: 18px;
    }

    .cookie-consent-actions {
        flex-direction: column-reverse;
    }
}
