/* === Cookie Banner === */
#cookie-banner { font-family: var(--fonts-body-family, 'Inter'), sans-serif; }

/* Overlay (modal achtergrond) */
.cb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

/* Hoofd banner */
.cb-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 3px solid var(--colors-accent, #36b79b);
    box-shadow: 0 -4px 32px rgba(0,0,0,0.12);
    padding: 1.25rem 1.5rem;
}

.cb-bar__inner {
    max-width: var(--spacing-container-max, 1200px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cb-bar__text { flex: 1; min-width: 200px; }

.cb-bar__title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--colors-primary, #0e233e);
    margin-bottom: 0.25rem;
}

.cb-bar__desc {
    font-size: 0.875rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.cb-link {
    color: var(--colors-accent, #36b79b);
    text-decoration: underline;
    font-size: 0.875rem;
}

.cb-bar__actions {
    display: flex;
    gap: 0.625rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

/* Buttons */
.cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius, 8px);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.cb-btn--primary {
    background: var(--colors-accent, #36b79b);
    color: #fff;
    border-color: var(--colors-accent, #36b79b);
}
.cb-btn--primary:hover {
    background: color-mix(in srgb, var(--colors-accent, #36b79b) 85%, #000);
    border-color: color-mix(in srgb, var(--colors-accent, #36b79b) 85%, #000);
}

.cb-btn--secondary {
    background: #fff;
    color: var(--colors-primary, #0e233e);
    border-color: rgba(0,0,0,0.2);
}
.cb-btn--secondary:hover {
    border-color: var(--colors-primary, #0e233e);
}

.cb-btn--outline {
    background: transparent;
    color: var(--colors-text, #374151);
    border-color: rgba(0,0,0,0.15);
}
.cb-btn--outline:hover {
    border-color: var(--colors-accent, #36b79b);
    color: var(--colors-accent, #36b79b);
}

/* Modal */
.cb-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cb-modal__box {
    background: #fff;
    border-radius: calc(var(--border-radius, 8px) * 1.5);
    box-shadow: 0 20px 64px rgba(0,0,0,0.18);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
}

.cb-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.cb-modal__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--colors-primary, #0e233e);
    margin: 0;
}

.cb-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}
.cb-modal__close:hover { color: var(--colors-primary, #0e233e); }

.cb-modal__body { padding: 1.25rem 1.5rem; }

.cb-modal__intro {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.cb-modal__footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.07);
}

/* Categorieën */
.cb-category {
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: var(--border-radius, 8px);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.cb-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.cb-category__name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--colors-primary, #0e233e);
    margin-bottom: 0.2rem;
}

.cb-category__desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

/* Toggle switch */
.cb-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.cb-toggle__input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cb-toggle__dot {
    position: absolute;
    inset: 0;
    background: #ddd;
    border-radius: 24px;
    transition: background 0.25s ease;
}

.cb-toggle__dot::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cb-toggle__input:checked + .cb-toggle__dot {
    background: var(--colors-accent, #36b79b);
}

.cb-toggle__input:checked + .cb-toggle__dot::before {
    transform: translateX(20px);
}

/* Vergrendeld (noodzakelijk) */
.cb-toggle--locked .cb-toggle__dot {
    background: var(--colors-accent, #36b79b);
    opacity: 0.6;
    cursor: not-allowed;
}

.cb-toggle--locked .cb-toggle__dot::before {
    transform: translateX(20px);
}

/* Animatie banner */
@keyframes cb-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cb-bar { animation: cb-slide-up 0.35s ease; }

/* Responsive */
@media (max-width: 640px) {
    .cb-bar__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .cb-bar__actions { width: 100%; }
    .cb-btn { flex: 1; justify-content: center; }
    .cb-modal__footer { flex-direction: column; }
    .cb-modal__footer .cb-btn { width: 100%; justify-content: center; }
}
