/* =====================================================
   COOKIEBANNER
   ===================================================== */

.cookie-banner {
    position: fixed;
    left: 0;
    bottom: 0;

    width: 100%;
    z-index: 9999;

    padding: 20px;

    background: #111;
    color: #fff;

    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}


/* Zorgt ervoor dat hidden altijd wint */
.cookie-banner[hidden] {
    display: none !important;
}


.cookie-banner__content {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =====================================================
   TEKST
   ===================================================== */

.cookie-banner__text {
    flex: 1;
}


.cookie-banner__text h2 {
    margin: 0 0 8px 0;

    font-size: 22px;
    line-height: 1.2;

    color: #fff;
}


.cookie-banner__text p {
    margin: 0 0 6px 0;

    font-size: 15px;
    line-height: 1.5;

    color: #fff;
}


.cookie-banner__text p:last-child {
    margin-bottom: 0;
}


.cookie-banner__text a {
    color: #fff;

    font-weight: 600;

    text-decoration: underline;
    text-underline-offset: 3px;
}


.cookie-banner__text a:hover {
    text-decoration-thickness: 2px;
}


/* =====================================================
   KNOPPEN
   ===================================================== */

.cookie-banner__buttons {
    display: flex;
    align-items: center;

    gap: 12px;

    flex-shrink: 0;
}


.cookie-button {
    min-width: 120px;

    padding: 12px 20px;

    border: 2px solid #fff;
    border-radius: 6px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.cookie-button--reject {
    background: transparent;
    color: #fff;
}


.cookie-button--accept {
    background: #fff;
    color: #111;
}


.cookie-button:hover {
    transform: translateY(-1px);
}


.cookie-button--reject:hover {
    background: #fff;
    color: #111;
}


.cookie-button--accept:hover {
    background: transparent;
    color: #fff;
}


/* Toetsenbordnavigatie */

.cookie-button:focus-visible,
.cookie-banner a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}


/* =====================================================
   TABLET
   ===================================================== */

@media screen and (min-width: 768px) and (max-width: 1280px) {

    .cookie-banner {
        padding: 20px 30px;
    }

    .cookie-banner__content {
        gap: 25px;
    }

    .cookie-banner__text h2 {
        font-size: 20px;
    }

    .cookie-banner__text p {
        font-size: 14px;
    }

}


/* =====================================================
   SMARTPHONE
   ===================================================== */

@media screen and (max-width: 767px) {

    .cookie-banner {
        padding: 20px;
    }

    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;

        gap: 18px;
    }

    .cookie-banner__text h2 {
        font-size: 20px;
    }

    .cookie-banner__text p {
        font-size: 14px;
        line-height: 1.5;
    }

    .cookie-banner__buttons {
        width: 100%;
    }

    .cookie-button {
        flex: 1;

        min-width: 0;

        padding: 12px 10px;
    }

}


/* =====================================================
   ZEER KLEINE SMARTPHONES
   ===================================================== */

@media screen and (max-width: 400px) {

    .cookie-banner {
        padding: 16px;
    }

    .cookie-banner__buttons {
        flex-direction: column;
    }

    .cookie-button {
        width: 100%;
    }

}