:root {
    --fcc-navy: #17395f;
    --fcc-orange: #f28c00;
    --fcc-orange-dark: #d97600;
    --fcc-text: #202936;
    --fcc-muted: #5c6878;
    --fcc-line: #dfe4ea;
    --fcc-white: #fff;
}

.fcc[hidden], .fcc [hidden] { display: none !important; }
.fcc, .fcc * { box-sizing: border-box; }
.fcc { color: var(--fcc-text); font-family: inherit; line-height: 1.45; }
.fcc-open { overflow: hidden; }
.fcc__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.fcc__banner {
    position: fixed;
    z-index: 2147483600;
    right: 1.25rem;
    bottom: 1.25rem;
    left: 1.25rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    background: var(--fcc-white);
    border: 1px solid var(--fcc-line);
    border-top: 5px solid var(--fcc-orange);
    border-radius: .5rem;
    box-shadow: 0 16px 48px rgba(12, 31, 54, .24);
}
.fcc__banner-copy { flex: 1; min-width: 0; }
.fcc__banner h2 { margin: 0 0 .35rem; color: var(--fcc-navy); font-size: 1.35rem; }
.fcc__banner p { margin: 0; color: var(--fcc-muted); }
.fcc a { color: var(--fcc-navy); text-decoration: underline; text-underline-offset: 2px; }
.fcc__banner-actions, .fcc__modal-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: flex-end; }

.fcc__button {
    min-height: 44px;
    padding: .68rem 1rem;
    border: 2px solid var(--fcc-navy);
    border-radius: .3rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.fcc__button--primary { color: var(--fcc-white); background: var(--fcc-navy); }
.fcc__button--primary:hover { background: #0d2948; border-color: #0d2948; }
.fcc__button--secondary { color: var(--fcc-navy); background: var(--fcc-white); }
.fcc__button--secondary:hover { background: #edf3f8; }
.fcc__button:focus-visible, .fcc__close:focus-visible, .fcc__manage:focus-visible, .fcc__switch input:focus-visible + span { outline: 3px solid #56a8e8; outline-offset: 3px; }

.fcc__overlay { position: fixed; z-index: 2147483601; inset: 0; background: rgba(8, 23, 40, .62); }
.fcc__modal {
    position: fixed;
    z-index: 2147483602;
    top: 50%;
    left: 50%;
    width: min(760px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    transform: translate(-50%, -50%);
    background: var(--fcc-white);
    border-radius: .45rem;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .35);
}
.fcc__modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.5rem 1rem; border-bottom: 4px solid var(--fcc-orange); }
.fcc__eyebrow { margin: 0 0 .15rem; color: var(--fcc-orange-dark); font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.fcc__modal h2 { margin: 0; color: var(--fcc-navy); font-size: 1.55rem; }
.fcc__close { width: 44px; height: 44px; padding: 0; color: var(--fcc-navy); background: transparent; border: 0; border-radius: .25rem; font-size: 2rem; line-height: 1; cursor: pointer; }
.fcc__intro { margin: 0; padding: 1rem 1.5rem; color: var(--fcc-muted); }
.fcc__categories { border-top: 1px solid var(--fcc-line); }
.fcc__category { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--fcc-line); }
.fcc__category h3 { margin: 0 0 .25rem; color: var(--fcc-navy); font-size: 1.05rem; }
.fcc__category p { margin: 0; color: var(--fcc-muted); font-size: .94rem; }
.fcc__switch { position: relative; display: inline-flex; flex: 0 0 auto; }
.fcc__switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fcc__switch > span:last-child { position: relative; display: block; width: 52px; height: 28px; background: #aeb7c2; border-radius: 999px; cursor: pointer; transition: background-color .18s ease; }
.fcc__switch > span:last-child::after { content: ''; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; background: var(--fcc-white); border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: transform .18s ease; }
.fcc__switch input:checked + span { background: var(--fcc-orange); }
.fcc__switch input:checked + span::after { transform: translateX(24px); }
.fcc__switch--locked > span:last-child { cursor: not-allowed; opacity: .75; }
.fcc__modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.5rem 1.5rem; }
.fcc__policy-link { flex: 0 0 auto; }

.fcc__manage {
    position: fixed;
    z-index: 2147483599;
    right: 1.25rem;
    bottom: 1.25rem;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 10px;
    color: var(--fcc-white);
    background: var(--fcc-navy);
    border: 3px solid var(--fcc-white);
    border-radius: 50%;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .28);
    cursor: pointer;
}
.fcc__manage:hover { background: var(--fcc-orange-dark); }
.fcc__manage svg { width: 100%; height: 100%; fill: currentColor; }

@media (max-width: 820px) {
    .fcc__banner { align-items: stretch; flex-direction: column; gap: 1rem; }
    .fcc__banner-actions { justify-content: stretch; }
    .fcc__banner-actions .fcc__button { flex: 1 1 30%; }
    .fcc__modal-footer { align-items: stretch; flex-direction: column; }
    .fcc__policy-link { align-self: flex-start; }
}

@media (max-width: 560px) {
    .fcc__banner { right: .65rem; bottom: .65rem; left: .65rem; padding: 1rem; }
    .fcc__banner-actions, .fcc__modal-actions { flex-direction: column; }
    .fcc__button { width: 100%; }
    .fcc__modal { width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); }
    .fcc__modal-header, .fcc__intro, .fcc__category, .fcc__modal-footer { padding-right: 1rem; padding-left: 1rem; }
    .fcc__category { gap: .8rem; }
    .fcc__manage { right: .75rem; bottom: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .fcc *, .fcc *::before, .fcc *::after { scroll-behavior: auto !important; transition: none !important; }
}
