/* Cookiebanner (scripts/cookiebanner.js) */

html.gc-cookie-open,
html.gc-cookie-open body {
    overflow: hidden;
}

.gc-cookie {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    text-align: left;
}
.gc-cookie[hidden] {
    display: none;
}

.gc-cookie__kaart {
    box-sizing: border-box;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: #fff;
    border-top: 6px solid #23B14D;
    padding: 28px 28px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    outline: none;
}

.gc-cookie__titel {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.15;
    margin: 0 0 12px;
    color: #000;
}

.gc-cookie__tekst {
    margin: 0;
    font-size: 15px;
}
.gc-cookie a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: #23B14D;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}
.gc-cookie a:hover {
    color: #23B14D;
}

/* knoppen: accepteren en weigeren even groot en even prominent */
.gc-cookie__knoppen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}
.gc-cookie__knop {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 14px 12px;
    border: 2px solid #000;
    border-radius: 0;
    background: #000;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}
.gc-cookie__knop--alles {
    background: #23B14D;
    border-color: #23B14D;
    color: #000;
}
.gc-cookie__knop:hover {
    background: #C2C2C2;
    border-color: #C2C2C2;
    color: #000;
}
.gc-cookie__knop--opslaan {
    margin-top: 14px;
    background: #fff;
    color: #000;
}

.gc-cookie__link {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    margin: 14px auto 0;
    padding: 4px 8px;
    border: 0;
    background: none;
    color: #000;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.gc-cookie__knop:focus-visible,
.gc-cookie__link:focus-visible,
.gc-cookie a:focus-visible,
.gc-cookie__schakel:focus-visible {
    outline: 3px solid #23B14D;
    outline-offset: 2px;
}

/* instellingen */
.gc-cookie__instellingen {
    margin-top: 18px;
    border-top: 1px solid #e2e2e2;
}
.gc-cookie__instellingen[hidden] {
    display: none;
}
.gc-cookie__cat {
    padding: 14px 0;
    border-bottom: 1px solid #e2e2e2;
}
.gc-cookie__cat-kop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    cursor: default;
}
label.gc-cookie__cat-kop {
    cursor: pointer;
}
.gc-cookie__cat p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #333;
}
.gc-cookie__altijd {
    font-size: 13px;
    font-weight: 700;
    color: #1b7f39;
    white-space: nowrap;
}

/* schakelaar */
.gc-cookie__schakel {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    margin: 0;
    border-radius: 13px;
    background: #8a8a8a;
    cursor: pointer;
    transition: background 0.15s;
}
.gc-cookie__schakel::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s;
}
.gc-cookie__schakel:checked {
    background: #23B14D;
}
.gc-cookie__schakel:checked::after {
    transform: translateX(20px);
}

/* balkvariant (op de privacyverklaring) */
.gc-cookie--balk {
    inset: auto 0 0 0;
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.gc-cookie--balk .gc-cookie__kaart {
    max-width: none;
    max-height: 70vh;
    padding: 20px max(16px, calc((100% - 1100px) / 2)) 16px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
}
.gc-cookie--balk .gc-cookie__titel {
    font-size: 22px;
}
.gc-cookie--balk .gc-cookie__knoppen {
    max-width: 520px;
}
.gc-cookie--balk .gc-cookie__link {
    margin-left: 0;
    padding-left: 0;
}

@media (max-width: 480px) {
    .gc-cookie__kaart {
        padding: 22px 18px 16px;
    }
    .gc-cookie__titel {
        font-size: 24px;
    }
    .gc-cookie__knoppen {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gc-cookie__schakel,
    .gc-cookie__schakel::after {
        transition: none;
    }
}
