/* Cookie consent (consent.js). Takes the page's font; --consent-ink from config. */

:root { --consent-ink: #1a1b1f; }

.consent-banner {
    --consent-bg: #ffffff;
    --consent-muted: rgba(0, 0, 0, 0.62);
    --consent-line: rgba(0, 0, 0, 0.12);
    position: fixed;
    z-index: 2147483000;
    left: 16px;
    bottom: 16px;
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 420px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 20px 20px 18px;
    background: var(--consent-bg);
    color: var(--consent-ink);
    border: 1px solid var(--consent-line);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
    font: inherit;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
}

.consent-banner[hidden] { display: none; }

.consent-banner *,
.consent-embed * { box-sizing: border-box; }

.consent-title {
    margin: 0 0 6px;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
    letter-spacing: 0;
    text-transform: none;
}

.consent-body {
    margin: 0 0 14px;
    color: var(--consent-muted);
}

.consent-body a {
    color: var(--consent-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-panel {
    margin: 0 0 14px;
    border-top: 1px solid var(--consent-line);
}

.consent-panel[hidden] { display: none; }

.consent-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--consent-line);
    cursor: pointer;
    /* The sites style <label> (Webflow: capitals, tracking, a margin). */
    margin: 0;
    color: inherit;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
}

.consent-row input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--consent-ink);
    cursor: pointer;
}

.consent-row input:disabled { cursor: default; }

.consent-row-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.consent-row-text strong { font-weight: 600; }

.consent-row-text span {
    color: var(--consent-muted);
    font-size: 14px;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Accept and reject look the same on purpose: saying no is as easy as yes. */
.consent-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--consent-ink);
    border-radius: 999px;
    background: var(--consent-ink);
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

.consent-btn:hover { opacity: 0.88; }

.consent-btn:focus-visible,
.consent-link:focus-visible,
.consent-row input:focus-visible {
    outline: 2px solid var(--consent-ink);
    outline-offset: 2px;
}

.consent-link {
    flex: 1 0 100%;
    margin: 2px 0 0;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--consent-ink);
    font: inherit;
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.consent-custom.consent-btn { flex: 1 0 100%; }

@media (max-width: 480px) {
    .consent-banner {
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        max-height: 85vh;
        border-radius: 14px 14px 0 0;
        border-width: 1px 0 0;
        padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    }
    .consent-btn { flex-basis: 100%; }
}

@media print {
    .consent-banner { display: none !important; }
}

/* An embed waiting for consent. */
.consent-embed {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0 0 12px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    color: inherit;
    font: inherit;
    font-size: 15px;
    line-height: 1.4;
}

.consent-embed p { margin: 0; }

.consent-embed .consent-btn {
    flex: none;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
}

.consent-embed small {
    font-size: 13px;
    opacity: 0.7;
}
