/*
 * logcat.ai cookie consent panel. Canonical source: frontend/hugo-shared/consent/
 * (see consent.js). Each site themes it through the --consent-* properties,
 * mapped from its own tokens in its own stylesheet; the fallbacks are dark.
 */
.lc-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: var(--consent-z, 2147483000);
    box-sizing: border-box;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 16px 20px;
    background: var(--consent-bg, #1e2021);
    color: var(--consent-fg, #ededed);
    border: 1px solid var(--consent-border, rgba(237, 237, 237, 0.16));
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
    font-family: var(--consent-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.lc-consent__text {
    flex: 1 1 320px;
    margin: 0;
    color: inherit;
}

.lc-consent__text a {
    color: var(--consent-accent, #2bb96b);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lc-consent__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

/* Accept and Decline are styled identically: neither is the nudged choice. */
.lc-consent__btn {
    min-width: 112px;
    min-height: 44px;
    margin: 0;
    padding: 0 20px;
    border: 1px solid var(--consent-accent, #2bb96b);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.lc-consent__btn:hover {
    background: var(--consent-hover, rgba(43, 185, 107, 0.14));
}

.lc-consent__btn:focus-visible,
.lc-consent__text a:focus-visible {
    outline: 2px solid var(--consent-accent, #2bb96b);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .lc-consent__actions {
        width: 100%;
    }

    .lc-consent__btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* A "Cookie settings" control means nothing where the panel cannot open. */
html:not(.lc-consent-on) [data-consent-open] {
    display: none !important;
}
