/* Key.Content cookiebanner. Een thema past de kleuren aan via de variabelen,
   bijvoorbeeld: :root { --kc-consent-accent: #e8573f; } */
.kc-consent {
    --kc-consent-bg: #ffffff;
    --kc-consent-text: #1d1d1b;
    --kc-consent-muted: #5f5f5a;
    --kc-consent-accent: #1d1d1b;
    --kc-consent-accent-text: #ffffff;
    --kc-consent-border: rgba(0, 0, 0, .12);
    --kc-consent-radius: 10px;
    --kc-consent-font: inherit;

    position: fixed;
    z-index: 2147483000;
    inset: auto 1rem 1rem 1rem;
    display: flex;
    justify-content: center;
    font-family: var(--kc-consent-font);
    color: var(--kc-consent-text);
}
.kc-consent[hidden] { display: none; }
.kc-consent--center { inset: 0; align-items: center; background: rgba(0, 0, 0, .45); padding: 1rem; }

.kc-consent__box {
    width: 100%;
    max-width: 44rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 1.25rem 1.5rem;
    background: var(--kc-consent-bg);
    border: 1px solid var(--kc-consent-border);
    border-radius: var(--kc-consent-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
}
.kc-consent__title { margin: 0 0 .5rem; font-size: 1.1rem; line-height: 1.3; }
.kc-consent__text { margin: 0 0 1rem; font-size: .95rem; line-height: 1.5; color: var(--kc-consent-muted); }
.kc-consent__link { color: inherit; text-decoration: underline; }

.kc-consent__categories { display: none; margin: 0 0 1rem; padding: 0; border: 0; }
.kc-consent--details .kc-consent__categories { display: grid; gap: .6rem; }
.kc-consent__category { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; }
.kc-consent__category input { margin-top: .2rem; accent-color: var(--kc-consent-accent); width: 1.1rem; height: 1.1rem; }
.kc-consent__category strong { display: block; font-size: .95rem; }
.kc-consent__category small { display: block; font-size: .85rem; color: var(--kc-consent-muted); line-height: 1.4; }

.kc-consent__buttons { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.kc-consent__button {
    font: inherit;
    font-size: .95rem;
    padding: .6rem 1.1rem;
    border-radius: calc(var(--kc-consent-radius) / 1.5);
    border: 1px solid var(--kc-consent-accent);
    cursor: pointer;
}
.kc-consent__button--primary { background: var(--kc-consent-accent); color: var(--kc-consent-accent-text); }
.kc-consent__button--ghost { background: transparent; color: var(--kc-consent-text); }
.kc-consent__button:focus-visible { outline: 3px solid var(--kc-consent-accent); outline-offset: 2px; }

.kc-consent__only-details { display: none; }
.kc-consent--details .kc-consent__only-details { display: inline-block; }
.kc-consent--details .kc-consent__only-short { display: none; }

.kc-consent__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* De cookietabel per categorie, uitklapbaar in de instellingen. */
.kc-consent__cookies { margin: -.2rem 0 .3rem 1.75rem; font-size: .8rem; }
.kc-consent__cookies summary { cursor: pointer; color: var(--kc-consent-muted); }
.kc-consent__cookies .table-responsive { overflow-x: auto; }
.kc-consent__cookies table { width: 100%; border-collapse: collapse; margin: .4rem 0; }
.kc-consent__cookies th, .kc-consent__cookies td { text-align: left; vertical-align: top; padding: .25rem .4rem; border-bottom: 1px solid var(--kc-consent-border); }
.kc-consent__cookies code { font-size: .95em; }
.kc-consent__cookies .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kc-consent__cookies .kc-cookies__group { margin: 0; }

/* Het knopje om de keuze te wijzigen. */
.kc-consent-reopen {
    position: fixed;
    z-index: 2147482999;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem;
    font: inherit;
    font-family: var(--kc-consent-font, inherit);
    font-size: .8rem;
    color: var(--kc-consent-text, #1d1d1b);
    background: var(--kc-consent-bg, #fff);
    border: 1px solid var(--kc-consent-border, rgba(0, 0, 0, .12));
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
    cursor: pointer;
    opacity: .85;
}
.kc-consent-reopen:hover, .kc-consent-reopen:focus-visible { opacity: 1; }
.kc-consent-reopen:focus-visible { outline: 3px solid var(--kc-consent-accent, #1d1d1b); outline-offset: 2px; }
.kc-consent-reopen[hidden] { display: none; }
.kc-consent-reopen--left { left: 1rem; }
.kc-consent-reopen--right { right: 1rem; }
.kc-consent-reopen__label { display: none; padding-right: .3rem; }
.kc-consent-reopen:hover .kc-consent-reopen__label, .kc-consent-reopen:focus-visible .kc-consent-reopen__label { display: inline; }

@media (max-width: 540px) {
    .kc-consent { inset: auto .5rem .5rem .5rem; }
    .kc-consent__buttons { justify-content: stretch; }
    .kc-consent__button { flex: 1 1 100%; }
}
