/*
 * Vendored from fansfirst_revamp_website public/css/cookie-consent.css @ 2ee82061.
 * Do not edit here — change the website copy and re-vendor.
 */
/* ============================================================
   Cookie consent (BBWT27-18) — Bootstrap 4.2.1, site theme (navy #122454)
   Full-width "Cookie Preferences" bar + "Cookie Settings" modal.
   Loaded on every page (outside the /order custom.css guard) so the banner is
   always styled. Pill buttons reuse the theme class .btn-primary-blue.
   ============================================================ */

/* ---------------------------- Banner ---------------------------- */
.ff-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035; /* above fixed-top (1030), below the modal backdrop (1040) */
    background: #ffffff;
    border-top: 1px solid #e3e6ef;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.ff-cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
}

.ff-cookie-banner__text {
    flex: 1 1 auto;
}

.ff-cookie-banner__title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #122454;
}

.ff-cookie-banner__text p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
}

.ff-cookie-banner__text a {
    color: #122454;
    font-weight: 700;
    text-decoration: underline;
}

.ff-cookie-banner__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* "Cookie settings" rendered as a text link */
.ff-cookie-link {
    padding: 0;
    background: none;
    border: none;
    color: #122454;
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer;
}
.ff-cookie-link:hover {
    color: #0d1937;
}

/* Pill buttons (Accept all / Save / reopen) — navy theme, fully rounded */
.ff-cookie-pill {
    border-radius: 50rem !important;
    padding-left: 1.6rem;
    padding-right: 1.6rem;
    white-space: nowrap;
}

/* "Reject all" — same size/prominence as Accept all (UK ICO: rejecting must be
   as easy as accepting), rendered as a navy outline so the two read as a pair. */
.ff-cookie-pill--ghost {
    background: #ffffff;
    border: 1px solid #122454;
    color: #122454;
}
.ff-cookie-pill--ghost:hover,
.ff-cookie-pill--ghost:focus {
    background: #122454;
    color: #ffffff;
}

/* "Cookie Settings" re-open trigger — styled like the standard "Your Privacy
   Choices" control (toggle icon + label), tucked into a footer corner. Muted
   gray text reads on both dark and light page backgrounds. */
.ff-cookie-footer {
    padding: 0.6rem 1.25rem;
    text-align: right;
    background: #ffffff;
    border-top: 1px solid #e3e6ef;
}
.ff-cookie-settings {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #122454;
    font-size: 0.8rem;
    text-decoration: none;
}
.ff-cookie-settings:hover {
    color: #0d1937;
    text-decoration: underline;
}
.ff-cookie-icon {
    flex: none;
}

/* Re-open pill placed inside the site's own footer (e.g. the home page yellow
   footer), at the right end of the row with the social icons. */
.ff-cookie-footer-pill {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 50rem;
    background: #122454;
    color: #ffffff !important;
    font-size: 0.8rem;
    text-decoration: none !important;
}
.ff-cookie-footer-pill:hover {
    background: #0d1937;
}
@media (max-width: 575.98px) {
    /* drop below the icons on small screens instead of overlapping them */
    .ff-cookie-footer-pill {
        position: static;
        transform: none;
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .ff-cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 1.1rem;
    }
    .ff-cookie-banner__actions {
        justify-content: flex-end;
    }
}

@media (max-width: 420px) {
    .ff-cookie-banner__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .ff-cookie-banner__actions .ff-cookie-pill {
        width: 100%;
    }
}

/* ------------------------ Preference modal ------------------------ */
.ff-cookie-modal-body {
    max-height: 65vh;
    overflow-y: auto;
}

.ff-cookie-modal-body a {
    color: #122454;
    font-weight: 600;
}

.ff-cookie-cats {
    padding: 0.25rem 0.75rem;
    background: #f7f8fc;
    border: 1px solid #e3e6ef;
    border-radius: 8px;
}

.ff-cookie-cat-row {
    border-bottom: 1px solid #e9ecf3;
}
.ff-cookie-cat-row:last-child {
    border-bottom: none;
}

.ff-cookie-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.25rem;
}

.ff-cookie-check .custom-control-label {
    font-weight: 600;
    color: #122454;
    cursor: pointer;
}

/* Navy checkbox when checked (overrides the default Bootstrap blue) */
.ff-cookie-cats .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #122454;
    border-color: #122454;
}
.ff-cookie-cats .custom-control-input:disabled ~ .custom-control-label {
    color: #6c757d;
}
.ff-cookie-cats .custom-control-input:disabled:checked ~ .custom-control-label::before {
    background-color: #122454;
    border-color: #122454;
    opacity: 0.55;
}

/* Chevron that expands the per-category description */
.ff-cookie-chevron {
    padding: 0.25rem 0.5rem;
    background: none;
    border: none;
    color: #6c757d;
    line-height: 1;
    cursor: pointer;
}
.ff-cookie-chevron i {
    transition: transform 0.2s ease;
}
.ff-cookie-chevron[aria-expanded="true"] i {
    transform: rotate(90deg);
}

.ff-cookie-cat-desc {
    padding: 0 0.5rem 0.75rem 2rem;
    font-size: 0.85rem;
    color: #6c757d;
}
