/**
 * Cookie banner and the footer control that reopens it.
 * Accept and Reject share one button style so neither is easier to miss.
 */

.has-bn-consent body {
    padding-bottom: var(--bn-consent-h, 0px);
}

.bn-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    background: #1d1d1d;
    color: #f9f9f7;
    font-family: "Lab Grotesque", "Instrument Sans", sans-serif;
    box-shadow: 0 -8px 24px rgba(29, 29, 29, 0.18);
}

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

.bn-consent__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.bn-consent__title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    color: #f9f9f7;
}

.bn-consent__text {
    margin: 0;
    flex: 1 1 auto;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    color: #f9f9f7;
}

.bn-consent__text a {
    color: #eaddca;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bn-consent__text a:hover,
.bn-consent__text a:focus-visible {
    color: #f9f9f7;
}

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

.bn-consent__btn {
    appearance: none;
    min-width: 8.5rem;
    min-height: 48px;
    margin: 0;
    padding: 12px 18px;
    border: 1px solid #f9f9f7;
    border-radius: 4px;
    background: #f9f9f7;
    color: #1d1d1d;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    cursor: pointer;
}

.bn-consent__btn:hover,
.bn-consent__btn:focus-visible {
    background: #eaddca;
    border-color: #eaddca;
    color: #1d1d1d;
}

.bn-consent__btn:focus-visible,
.bn-cookie-settings:focus-visible,
.bn-consent__text a:focus-visible {
    outline: 2px solid #eaddca;
    outline-offset: 2px;
}

.bn-cookie-settings {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: 300;
    font-size: 14px;
    line-height: 160%;
    letter-spacing: 0.02em;
    color: #f9f9f7;
    opacity: 0.6;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bn-cookie-settings:hover {
    opacity: 1;
}

.ft-meta-link {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(24px, 3.75vw, 60px);
}

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

    .bn-consent__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .bn-consent__btn {
        width: 100%;
        min-width: 0;
    }

    .bn-cookie-settings {
        font-size: 12px;
        line-height: 1.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bn-consent,
    .bn-consent__btn {
        transition: none;
    }
}
