/*
 * Cookie consent banner.
 *
 * The two buttons are deliberately identical in size, weight and colour. Valid consent
 * requires that refusing is as easy as agreeing, so nothing here may nudge: no primary
 * styling on accept, no ghost styling on decline, no difference in click target.
 */

.cookie-consent {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1080; /* above Bootstrap modals' backdrop tier, below toasts */
    padding: 1rem;
    background: #1d3354;
    color: #fff;
    box-shadow: 0 -2px 12px rgb(0 0 0 / 25%);
}

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

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

.cookie-consent__text {
    flex: 1 1 22rem;
    min-width: 0;
}

.cookie-consent__title {
    margin: 0 0 0.25rem;
    font-weight: 600;
}

.cookie-consent__body {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.cookie-consent__body a {
    color: #fff;
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.5rem;
}

.cookie-consent__button {
    min-width: 8.5rem;
    padding-block: 0.5rem;
    font-weight: 600;
    color: #1d3354;
    background: #fff;
    border: 1px solid #fff;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
    color: #1d3354;
    background: #e6e9ef;
    border-color: #e6e9ef;
}

@media (max-width: 575.98px) {
    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__button {
        flex: 1 1 0;
        min-width: 0;
    }
}
