/* Only cookie consent. Identiek in alle Only-sites. Kleuren en fonts uit de Only-huisstijl 2026. */

.only-consent {
    --oc-c-plum: #23002f;
    --oc-c-plum-deep: #16001d;
    --oc-c-pink: #ffcaf3;
    --oc-c-white: #fff;
    position: fixed;
    right: clamp(.75rem, 2vw, 1.5rem);
    bottom: clamp(.75rem, 2vw, 1.5rem);
    z-index: 150;
    box-sizing: border-box;
    width: min(27rem, calc(100vw - 1.5rem));
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: clamp(1.25rem, 2vw, 1.6rem);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 1rem;
    background: var(--oc-c-plum-deep);
    color: var(--oc-c-white);
    box-shadow: 0 24px 60px rgba(10, 0, 14, .45);
    font-family: 'Sora', 'axiforma-regular', sans-serif;
    font-size: .875rem;
    font-weight: 300;
    line-height: 1.55;
    text-align: left;
    animation: only-consent-in .35s ease-out both;
}

.only-consent[hidden],
.only-consent [hidden] {
    display: none !important;
}

.only-consent *,
.only-consent *::before,
.only-consent *::after {
    box-sizing: border-box;
}

.only-consent:focus {
    outline: none;
}

.only-consent:focus-visible {
    outline: 2px solid var(--oc-c-pink);
    outline-offset: 3px;
}

.only-consent__title {
    margin: 0 0 .6rem;
    color: var(--oc-c-white);
    font-family: 'Nyght Serif', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.025em;
}

.only-consent__text {
    margin: 0;
    color: rgba(255, 255, 255, .82);
}

.only-consent a {
    color: var(--oc-c-white);
    text-decoration: underline;
    text-underline-offset: .18em;
}

.only-consent a:hover {
    opacity: .7;
}

.only-consent__settings {
    margin-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.only-consent__cat {
    padding-block: .85rem;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.only-consent__cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--oc-c-white);
    font-weight: 400;
}

label.only-consent__cat-head {
    cursor: pointer;
}

.only-consent__cat p {
    margin: .3rem 0 0;
    padding-right: 3.5rem;
    color: rgba(255, 255, 255, .68);
    font-size: .78rem;
    line-height: 1.5;
}

.only-consent__always {
    color: rgba(255, 255, 255, .6);
    font-size: .75rem;
    font-weight: 300;
}

.only-consent__switch {
    position: relative;
    flex: none;
    width: 2.6rem;
    height: 1.5rem;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .24);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background .2s ease;
}

.only-consent__switch::after {
    content: '';
    position: absolute;
    top: .2rem;
    left: .2rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--oc-c-white);
    transition: transform .2s ease;
}

.only-consent__switch:checked {
    background: var(--oc-c-pink);
}

.only-consent__switch:checked::after {
    background: var(--oc-c-plum);
    transform: translateX(1.1rem);
}

.only-consent__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-top: 1.2rem;
}

.only-consent__btn {
    flex: 1 1 0;
    min-width: 7.5rem;
    min-height: 2.75rem;
    margin: 0;
    padding: .7rem 1.1rem;
    border: 1px solid var(--oc-c-white);
    border-radius: 999px;
    background: var(--oc-c-white);
    color: var(--oc-c-plum);
    font: inherit;
    font-size: .85rem;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.only-consent__btn:hover {
    border-color: var(--oc-c-pink);
    background: var(--oc-c-pink);
}

.only-consent__link {
    flex: 0 0 auto;
    margin: 0 0 0 .25rem;
    padding: .5rem 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    background: none;
    color: var(--oc-c-white);
    font: inherit;
    font-size: .85rem;
    line-height: 1.2;
    cursor: pointer;
}

.only-consent__link:hover {
    opacity: .7;
}

.only-consent__btn:focus-visible,
.only-consent__link:focus-visible,
.only-consent__switch:focus-visible,
.only-consent a:focus-visible {
    outline: 2px solid var(--oc-c-pink);
    outline-offset: 3px;
}

/* Footerlink: neemt de stijl van de omliggende footerlinks over. */
.only-consent-footer-link {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-align: left;
    cursor: pointer;
    transition: opacity .25s ease;
}

.only-consent-footer-link:hover {
    opacity: .65;
}

.only-consent-footer-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 479px) {
    .only-consent {
        right: .75rem;
        left: .75rem;
        width: auto;
    }

    .only-consent__btn {
        min-width: 0;
    }
}

@keyframes only-consent-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .only-consent {
        animation: none;
    }

    .only-consent__switch,
    .only-consent__switch::after {
        transition: none;
    }
}
