/* Cookie banner — eigen styling, neutraal genoeg om in elk theme te passen.
   Theme-kleuren komen uit CSS-vars die de site al gebruikt.            */

#vk-cookie-banner, #vk-cookie-banner * {
    box-sizing: border-box;
    font-family: var(--font-body, system-ui, -apple-system, "Segoe UI", sans-serif);
}

#vk-cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    color: #1a1a1a;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.08);
    z-index: 99998;
    font-size: .92rem;
    line-height: 1.5;
}

#vk-cookie-banner h2 {
    font-size: 1.05rem;
    margin: 0 0 .5rem;
    font-weight: 600;
    font-family: var(--font-display, var(--font-body, sans-serif));
}

#vk-cookie-banner p {
    margin: 0 0 1rem;
    color: #444;
}

#vk-cookie-banner a {
    color: var(--color-accent, #d97636);
    text-decoration: underline;
}

#vk-cookie-banner .vk-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

#vk-cookie-banner button {
    flex: 1;
    min-width: 130px;
    padding: .65rem 1rem;
    border-radius: 4px;
    font-size: .92rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .15s;
    font-family: inherit;
}

#vk-cookie-banner .vk-btn-accept {
    background: var(--color-accent, #d97636);
    color: #fff;
}
#vk-cookie-banner .vk-btn-accept:hover {
    background: var(--color-accent-dark, #b85e1f);
}

#vk-cookie-banner .vk-btn-reject {
    background: #fff;
    color: #1a1a1a;
    border-color: #d4d4d4;
}
#vk-cookie-banner .vk-btn-reject:hover {
    border-color: #1a1a1a;
}

#vk-cookie-banner .vk-btn-customize {
    background: transparent;
    color: #555;
    border-color: transparent;
    text-decoration: underline;
}
#vk-cookie-banner .vk-btn-customize:hover {
    color: #1a1a1a;
}

/* Modal voor granulair kiezen */
#vk-cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}
#vk-cookie-modal.is-open { display: flex; }

#vk-cookie-modal .vk-modal-content {
    background: #fff;
    color: #1a1a1a;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 2rem;
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: .92rem;
    line-height: 1.5;
}

#vk-cookie-modal h2 {
    font-size: 1.3rem;
    margin: 0 0 .75rem;
    font-family: var(--font-display, var(--font-body, sans-serif));
}

#vk-cookie-modal h3 {
    font-size: 1rem;
    margin: 0 0 .25rem;
}

#vk-cookie-modal .vk-cat {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: .75rem;
}

#vk-cookie-modal .vk-cat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: .35rem;
}

#vk-cookie-modal .vk-cat-desc {
    color: #555;
    font-size: .88rem;
    margin: .35rem 0 .5rem;
}

#vk-cookie-modal .vk-cat-services {
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px dashed #e0e0e0;
    font-size: .82rem;
    color: #666;
}
#vk-cookie-modal .vk-cat-services strong { color: #1a1a1a; }

/* iOS-style toggle */
#vk-cookie-modal .vk-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
#vk-cookie-modal .vk-toggle input {
    opacity: 0; width: 0; height: 0;
}
#vk-cookie-modal .vk-toggle .vk-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: .2s;
    cursor: pointer;
}
#vk-cookie-modal .vk-toggle .vk-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .2s;
}
#vk-cookie-modal .vk-toggle input:checked + .vk-slider {
    background: var(--color-accent, #d97636);
}
#vk-cookie-modal .vk-toggle input:checked + .vk-slider:before {
    transform: translateX(20px);
}
#vk-cookie-modal .vk-toggle input:disabled + .vk-slider {
    opacity: .6;
    cursor: not-allowed;
}

#vk-cookie-modal .vk-modal-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}
#vk-cookie-modal .vk-modal-actions button {
    flex: 1;
    min-width: 130px;
    padding: .65rem 1rem;
    border-radius: 4px;
    font-size: .92rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .15s;
    font-family: inherit;
}
#vk-cookie-modal .vk-btn-save {
    background: var(--color-primary, #1a2f3a);
    color: #fff;
}
#vk-cookie-modal .vk-btn-save:hover {
    background: var(--color-primary-dark, #0f1d24);
}
#vk-cookie-modal .vk-btn-accept-all {
    background: var(--color-accent, #d97636);
    color: #fff;
}
#vk-cookie-modal .vk-btn-accept-all:hover {
    background: var(--color-accent-dark, #b85e1f);
}
#vk-cookie-modal .vk-btn-cancel {
    background: transparent;
    color: #555;
}

@media (max-width: 600px) {
    #vk-cookie-banner {
        bottom: .5rem; left: .5rem; right: .5rem;
        padding: 1rem;
    }
    #vk-cookie-banner .vk-actions button { min-width: 100%; }
    #vk-cookie-modal .vk-modal-content { padding: 1.25rem; }
}
