/* WS-028 — AP-compliant cookie banner styles.
 * Fixed-bottom slide-up; not in the document flow -> CLS = 0 against page content.
 * Mobile-first; equal-prominence buttons (same .consent-btn base, no "primary" emphasis).
 */

[data-consent-banner][hidden] { display: none !important; }

[data-consent-banner] {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 2147483600;
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
    border-top: 1px solid #e6e6e6;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
    max-height: 80vh;
    overflow-y: auto;
}

[data-consent-banner] .consent-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 720px) {
    [data-consent-banner] .consent-banner__inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 18px;
        padding: 16px 20px;
    }
}

[data-consent-banner] .consent-banner__copy { flex: 1 1 auto; min-width: 0; }

[data-consent-banner] .consent-banner__title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

[data-consent-banner] .consent-banner__body { margin: 0; color: #333; }

[data-consent-banner] .consent-banner__buttons {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
}

@media (min-width: 720px) {
    [data-consent-banner] .consent-banner__buttons { flex-wrap: nowrap; }
}

/* Equal-prominence: all consent buttons share .consent-btn (same size, same look). */
[data-consent-banner] .consent-btn {
    display: inline-block;
    border: 1px solid #1a1a1a;
    background: #ffffff;
    color: #1a1a1a;
    padding: 9px 16px;
    min-height: 38px;
    font: inherit;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-width: 120px;
}

[data-consent-banner] .consent-btn:hover { background: #f4f4f4; }
[data-consent-banner] .consent-btn:focus { outline: 2px solid #005fcc; outline-offset: 2px; }

/* Preference center (inline within the banner). */
[data-consent-banner] .consent-prefs[hidden] { display: none !important; }
[data-consent-banner] .consent-prefs {
    border-top: 1px solid #e6e6e6;
    padding-top: 12px;
    width: 100%;
}

[data-consent-banner] .consent-prefs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

[data-consent-banner] .consent-prefs__row { margin: 0; }
[data-consent-banner] .consent-prefs__label { font-weight: 600; cursor: pointer; }
[data-consent-banner] .consent-prefs__name { margin-left: 4px; }
[data-consent-banner] .consent-prefs__badge {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}

[data-consent-banner] .consent-prefs__desc {
    margin: 2px 0 0 22px;
    font-size: 13px;
    color: #555;
}

[data-consent-banner] .consent-prefs__actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

[data-consent-banner] .consent-prefs__fallback {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: #777;
}

[data-consent-banner] .consent-prefs__fallback a { color: #005fcc; }

/* Footer-anchored "Cookievoorkeuren" link (always visible after first decision). */
a.consent-footer-link {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 2147483500;
    background: #ffffff;
    color: #555;
    border: 1px solid #d0d0d0;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 3px;
    text-decoration: none;
    opacity: 0.75;
}
a.consent-footer-link:hover { opacity: 1; }

/* No-JS users: the banner has hidden attribute -> stays hidden. The
 * `<noscript>` fallback in *_footer.tpl directs them to /?var1=consent&var2=prefs. */
