/* Cookie-consent banner.

   Bottom-anchored rather than a full-screen modal: it must be dismissible and readable without
   blocking the page, and a consent wall over the content is both hostile and, in several
   jurisdictions, an invalid way to obtain consent.

   z-index sits above the sticky topbar (90) and the filter panel, but below the impersonation
   banner, which must never be obscured. */

.wr-cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: #0d1526;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
    color: #eef1f7;
    /* The shell reset carries [hidden]{display:none!important}; this is belt and braces for any
       page loaded without it. */
    padding: 16px 20px;
}

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

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

.wr-cookie-consent-text {
    flex: 1 1 420px;
    min-width: 0;
}

.wr-cookie-consent-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 700;
}

.wr-cookie-consent-text p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #9aa7bd;
    max-width: 72ch;
}

.wr-cookie-consent-text a {
    color: #e7a83d;
}

.wr-cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

/* Both choices are real buttons of equal weight. A decline that is visually harder to find than
   accept is not a free choice, and invalidates the consent the banner exists to collect. */
.wr-cookie-consent-actions .wra-btn {
    white-space: nowrap;
}

.wr-cookie-consent-actions .wra-btn:focus-visible {
    outline: 2px solid #e7a83d;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .wr-cookie-consent {
        padding: 14px 16px;
    }

    .wr-cookie-consent-inner {
        gap: 12px;
    }

    .wr-cookie-consent-actions {
        width: 100%;
    }

    .wr-cookie-consent-actions .wra-btn {
        /* Two equal-width buttons on one row rather than a stack -- on a phone the banner is
           already taking a third of the viewport. */
        flex: 1 1 0;
    }
}
