/* Cookie consent banner: inc/cookie-consent.php, assets/js/cookie-consent.js */

.cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #d4d6d8;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    color: #232e3d;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cookie-consent__text {
    flex: 1 1 auto;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent__link {
    color: #006eb5;
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-consent__link:hover,
.cookie-consent__link:focus-visible {
    color: #004f83;
}

.cookie-consent__actions {
    flex: 0 0 auto;
    display: flex;
    gap: 12px;
}

/* Accept and Reject look the same on purpose: refusing must be as easy as agreeing. */
.cookie-consent__button {
    min-height: 44px;
    padding: 10px 20px;
    border: 2px solid #006eb5;
    border-radius: 0;
    background: #006eb5;
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__button:hover {
    background: #004f83;
    border-color: #004f83;
}

.cookie-consent__button:focus-visible {
    outline: 3px solid #232e3d;
    outline-offset: 2px;
}

/* Keep the end of the page reachable above the banner. */
body.has-cookie-consent {
    padding-bottom: 96px;
}

/* Footer "Cookie settings" link, styled like the legal links next to it. */
.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 24px;
}

.footer-cookie-settings {
    padding: 0;
    border: 0;
    background: none;
    color: #555;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
    color: #111;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .cookie-consent__actions {
        gap: 8px;
    }

    .cookie-consent__button {
        flex: 1 1 0;
        padding: 10px 12px;
    }

    body.has-cookie-consent {
        padding-bottom: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent__button,
    .footer-cookie-settings {
        transition: none;
    }
}
