/* Cookie consent: fixed bottom bar, same palette as the site. */
.cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    padding: 14px 20px;
    background: #fff;
    border-top: 3px solid #004f9f;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

/* Reserve room for the bar inside the footer so the copyright and "up" link
   stay clickable; body padding does not work with the sticky flex layout. */
@media (min-width: 681px) {
    body.cookie-consent-open #footer footer {
        padding-bottom: 84px;
    }
}

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

.cookie-consent__inner {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent__text {
    max-width: 760px;
    margin: 0;
    color: #3f444b;
    font-size: 14px;
    line-height: 1.45;
}

.cookie-consent__actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.cookie-consent__button {
    padding: 9px 16px;
    color: #004f9f;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    background: #eef4fb;
    border: 1px solid #b9cde4;
    border-radius: 3px;
    cursor: pointer;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
    background: #dfeaf7;
}

.cookie-consent__button--primary {
    color: #fff;
    background: #004f9f;
    border-color: #004f9f;
}

.cookie-consent__button--primary:hover,
.cookie-consent__button--primary:focus-visible {
    background: #0269d2;
    border-color: #0269d2;
}

.cookie-consent__button:focus-visible {
    outline: 2px solid #0269d2;
    outline-offset: 2px;
}

/* The notice is desktop-only; phones and tablets keep the full screen. */
@media (max-width: 680px) {
    .cookie-consent {
        display: none !important;
    }
}
