/* BM Cookie Consent — standalone, geen thema-afhankelijkheden */

:root {
    --bmc-accent:  #2563eb;
    --bmc-text:    #1e293b;
    --bmc-muted:   #6b7280;
    --bmc-border:  #e5e7eb;
    --bmc-bg:      #ffffff;
    --bmc-overlay: rgba(0,0,0,.5);
    --bmc-blur:    3px;
}

/* ── Banner ────────────────────────────────────── */

#bmc-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999;
    background: var(--bmc-bg);
    border-top: 1.5px solid var(--bmc-border);
    box-shadow: 0 -4px 24px rgba(0,0,0,.08);
    padding: 1.25rem 1.5rem;
    transition: transform .3s ease, opacity .3s ease;
    font-family: inherit;
}
#bmc-banner[aria-hidden="true"]  { transform: translateY(110%); opacity: 0; pointer-events: none; }
#bmc-banner[aria-hidden="false"] { transform: translateY(0);    opacity: 1; }

.bmc-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.bmc-text { flex: 1; min-width: 240px; }
.bmc-text strong { display: block; font-weight: 700; margin-bottom: .3rem; color: var(--bmc-text); font-size: 1rem; }
.bmc-text p  { font-size: .875rem; color: var(--bmc-muted); margin: 0; line-height: 1.5; }
.bmc-text a  { color: var(--bmc-accent); text-decoration: underline; }
.bmc-actions { display: flex; gap: .625rem; flex-wrap: wrap; align-items: center; }

/* ── Knoppen ───────────────────────────────────── */

.bmc-btn-primary {
    background: var(--bmc-accent); color: #fff;
    border: none;
    padding: .6rem 1.25rem; font-size: .875rem; font-weight: 700;
    cursor: pointer; white-space: nowrap; transition: opacity .15s;
    font-family: inherit; border-radius: 4px;
}
.bmc-btn-primary:hover { opacity: .88; }

.bmc-btn-ghost {
    background: transparent; color: var(--bmc-text);
    border: 1.5px solid var(--bmc-border);
    padding: .575rem 1.125rem; font-size: .875rem; font-weight: 600;
    cursor: pointer; white-space: nowrap; transition: border-color .15s;
    font-family: inherit; border-radius: 4px;
}
.bmc-btn-ghost:hover { border-color: var(--bmc-text); }

/* ── Instellingenpaneel ────────────────────────── */

#bmc-settings {
    position: fixed; inset: 0; z-index: 100000;
    background: var(--bmc-overlay);
    backdrop-filter: blur(var(--bmc-blur));
    -webkit-backdrop-filter: blur(var(--bmc-blur));
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    transition: opacity .25s ease;
}
#bmc-settings[aria-hidden="true"]  { opacity: 0; pointer-events: none; }
#bmc-settings[aria-hidden="false"] { opacity: 1; }

.bmc-settings-box {
    background: var(--bmc-bg);
    width: 100%; max-width: 520px;
    padding: 2rem;
    box-shadow: 0 8px 40px rgba(0,0,0,.16);
    max-height: 90vh; overflow-y: auto;
    border-radius: 6px;
}
.bmc-settings-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .75rem;
}
.bmc-settings-head h2 { font-size: 1.25rem; font-weight: 800; margin: 0; color: var(--bmc-text); }
.bmc-settings-close {
    background: none; border: none; cursor: pointer; padding: .25rem;
    color: var(--bmc-muted); line-height: 1;
}
.bmc-settings-close svg { width: 20px; height: 20px; display: block; }
.bmc-settings-close:hover { color: var(--bmc-text); }
.bmc-settings-intro { font-size: .875rem; color: var(--bmc-muted); margin: 0 0 1.5rem; line-height: 1.6; }

/* ── Categorie-rijen ───────────────────────────── */

.bmc-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bmc-cat {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 0; border-bottom: 1px solid var(--bmc-border);
}
.bmc-cat:last-child { border-bottom: none; }
.bmc-cat-info { flex: 1; }
.bmc-cat-info strong { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .2rem; color: var(--bmc-text); }
.bmc-cat-info span   { font-size: .8rem; color: var(--bmc-muted); line-height: 1.5; }

/* ── Toggle-schakelaar ─────────────────────────── */

.bmc-toggle { display: flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.bmc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.bmc-track {
    width: 44px; height: 24px; border-radius: 999px;
    background: var(--bmc-border); transition: background .2s;
    position: relative; display: block;
}
.bmc-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.bmc-toggle input:checked  ~ .bmc-track              { background: var(--bmc-accent); }
.bmc-toggle input:checked  ~ .bmc-track .bmc-thumb   { transform: translateX(20px); }
.bmc-toggle input:disabled ~ .bmc-track              { background: var(--bmc-accent); opacity: .6; }
.bmc-toggle input:disabled ~ .bmc-track .bmc-thumb   { transform: translateX(20px); }
.bmc-toggle:has(input:disabled)                      { cursor: not-allowed; }

/* ── Footer instellingen-rij ───────────────────── */

.bmc-settings-footer {
    display: flex; gap: .625rem; justify-content: flex-end;
    margin-top: 1.5rem; padding-top: 1.25rem;
    border-top: 1px solid var(--bmc-border);
}

/* ── Vaste footer-knop (rechtsonder) ───────────── */

.bmc-footer-btn {
    position: fixed; bottom: 1rem; right: 1rem; z-index: 99998;
    background: var(--bmc-bg);
    color: var(--bmc-muted);
    border: 1px solid var(--bmc-border);
    padding: .4rem .85rem;
    font-size: .75rem; font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    transition: color .15s, border-color .15s, box-shadow .15s;
}
.bmc-footer-btn:hover {
    color: var(--bmc-text);
    border-color: var(--bmc-text);
    box-shadow: 0 3px 12px rgba(0,0,0,.15);
}

/* ── Shortcode inline-variant ──────────────────── */

.bmc-inline-link {
    background: none; border: none; padding: 0;
    color: inherit; font-size: inherit; font-family: inherit;
    cursor: pointer; text-decoration: underline;
}
.bmc-inline-link:hover { opacity: .75; }
