/* Popup-styling. Stond als inline <style> in popup.php, waardoor hij later in
   het document stond dan de thema-CSS en dus altijd won. Nu een gewoon
   stylesheet in de head, zodat css/modern.css er overheen kan. */
[x-cloak] { display: none !important; }

    .cc-overlay {
        position: fixed; inset: 0; z-index: 9999;
        display: flex; align-items: center; justify-content: center;
        padding: 1rem; pointer-events: none;
    }
    .cc-modal {
        width: 90vw; max-width: 900px; background: white; overflow: hidden;
        pointer-events: auto;
        box-shadow: 0 30px 80px -10px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.08);
    }
    .cc-tabs { display: flex; background: #f3f4f6; }
    .cc-tab {
        flex: 1; padding: 1rem 1.5rem; font-size: 1rem; font-weight: 500;
        color: rgba(0,0,0,0.6); background: transparent; border: none; cursor: pointer;
        transition: color 0.2s ease, background-color 0.2s ease;
    }
    .cc-tab:hover { color: #000; background: #f9fafb; }
    .cc-tab-active {
        background: white; color: #000;
        border-bottom: 2px solid var(--cc-accent);
    }
    .cc-body { overflow-y: auto; max-height: 50vh; padding: 2rem; }
    .cc-title { font-size: 1.125rem; font-weight: 600; color: #000; margin: 0 0 0.5rem; }
    .cc-text { font-size: 1rem; color: rgba(0,0,0,0.8); margin: 0 0 1rem; }
    .cc-text a { color: var(--cc-accent); text-decoration: underline; }
    .cc-text a:hover { text-decoration: none; }

    .cc-categories { display: flex; flex-direction: column; gap: 0.75rem; }
    .cc-category {
        display: flex; align-items: center; gap: 1.5rem;
        padding: 1rem 1.25rem; background: #f9fafb;
    }
    .cc-category-info { flex: 1; min-width: 0; }
    .cc-category-title { font-size: 1rem; font-weight: 500; color: #000; }
    .cc-category-desc { font-size: 0.875rem; color: rgba(0,0,0,0.7); margin-top: 0.25rem; }

    .cc-actions {
        display: flex; flex-direction: column; gap: 0.75rem;
        padding: 1.5rem; border-top: 1px solid #e5e7eb; background: #f9fafb;
    }
    @media (min-width: 640px) { .cc-actions { flex-direction: row; } }
    .cc-btn {
        flex: 1; padding: 0.75rem 1.25rem; font-size: 1rem; font-weight: 500;
        cursor: pointer; border: 1px solid transparent; transition: opacity 0.2s ease, background-color 0.2s ease;
    }
    .cc-btn-secondary { color: #374151; background: white; border-color: #d1d5db; }
    .cc-btn-secondary:hover { background: #f9fafb; }
    .cc-btn-primary { color: white; background: var(--cc-accent); border-color: var(--cc-accent); }
    .cc-btn-primary:hover { opacity: 0.9; }

/* Cookie consent toggle switch.
   Override the accent colour by setting --cc-accent on :root or any ancestor. */
:root {
    --cc-accent: #5f6065;
}

.cc-toggle {
    position: relative;
    width: 3rem;
    height: 1.5rem;
    flex-shrink: 0;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color: #d1d5db;
}

.cc-toggle.active {
    background-color: var(--cc-accent);
}

.cc-toggle.locked {
    opacity: 0.7;
    cursor: not-allowed;
}

.cc-toggle .cc-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background-color: white;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cc-toggle.active .cc-toggle-knob {
    transform: translateX(1.5rem);
}

/* Knop in de footer om de voorkeuren opnieuw te openen. */
.mp-cookie-settings {
    background: none;
    border: none;
    padding: 0;
    margin-left: 1rem;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.mp-cookie-settings:hover {
    text-decoration: none;
}
