/* NPY additions only; CookieConsent's vendored stylesheet remains unmodified. */
#cc-main {
    --cc-bg: #ffffff;
    --cc-primary-color: #142d4a;
    --cc-secondary-color: #35485b;
    --cc-btn-primary-bg: #142d4a;
    --cc-btn-primary-color: #ffffff;
    --cc-btn-primary-hover-bg: #0c2037;
    --cc-btn-secondary-bg: #eef2f5;
    --cc-btn-secondary-color: #142d4a;
    --cc-btn-secondary-hover-bg: #dce5eb;
    --cc-separator-border-color: #d8e0e6;
    --cc-toggle-on-bg: #142d4a;
    --cc-toggle-off-bg: #7a8793;
    --cc-font-family: inherit;
}

#cc-main a {
    text-decoration: underline;
}

#cc-main .cm__btn,
#cc-main .pm__btn {
    min-height: 44px;
}

#cc-main .cm__btn:focus-visible,
#cc-main .pm__btn:focus-visible,
#cc-main a:focus-visible,
.npycc-us-dismiss:focus-visible,
.npycc-floating-preferences:focus-visible {
    outline: 3px solid #0b66c3;
    outline-offset: 3px;
}

.npycc-floating-preferences {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8e0e6;
    border-radius: 999px;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    box-shadow: 0 2px 10px rgba(12, 32, 55, 0.22);
    color: #142d4a;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.125rem;
    height: 44px;
    justify-content: center;
    left: max(1rem, env(safe-area-inset-left, 0px));
    line-height: 1;
    padding: 0;
    position: fixed;
    touch-action: manipulation;
    width: 44px;
    z-index: 2147483646;
}

.npycc-floating-preferences:hover {
    background: #eef2f5;
}

/* The consent notice is a compact fixed bottom bar, never a floating card. */
#cc-main .cm--bar {
    border-top: 1px solid var(--cc-separator-border-color);
    box-shadow: 0 -4px 18px rgba(12, 32, 55, 0.16);
    position: relative;
}

/* US only: this saves the same opt-out-default choice as Continue. */
.npycc-us-dismiss {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--cc-primary-color);
    cursor: pointer;
    display: inline-flex;
    font-size: 1.5rem;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: max(0.5rem, env(safe-area-inset-right, 0px));
    top: 0.5rem;
    touch-action: manipulation;
    width: 40px;
    z-index: 1;
}

.npycc-us-dismiss:hover {
    background: #eef2f5;
    border-color: #d8e0e6;
}

#cc-main .cm--bar .cm__body {
    align-items: center;
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    max-width: 88rem;
}

#cc-main .cm--bar .cm__texts {
    min-width: 0;
    padding: 0.75rem 1.25rem;
}

#cc-main .cm--bar .cm__title + .cm__desc {
    margin-top: 0.35rem;
}

#cc-main .cm--bar .cm__desc {
    max-height: none;
    overflow: visible;
    padding-bottom: 0;
}

#cc-main .cm--bar .cm__btns {
    border-left: 1px solid var(--cc-separator-border-color);
    border-top: 0;
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
}

#cc-main .cm--bar.npycc-us-dismiss-enabled .cm__btns {
    padding-right: 3.5rem;
}

#cc-main .cm--bar .cm__btn-group {
    gap: 0.5rem;
    grid-auto-columns: minmax(7.5rem, 1fr);
}

#cc-main .cm--bar .cm__btn {
    min-height: 44px;
    white-space: normal;
}

/* The US two-control group is intentionally content-sized, not an oversized
 * equal-width pair. Its secondary action remains fully visible and reachable. */
#cc-main .cm--bar .cm__btn-group--uneven {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

#cc-main .cm--bar .cm__btn-group--uneven .cm__btn {
    flex: 0 0 auto;
}

#cc-main .cm--bar .cm__btn-group--uneven .cm__btn--secondary {
    font-size: 0.78em;
    padding-left: 0.8em;
    padding-right: 0.8em;
    white-space: nowrap;
}

@media (max-width: 960px) {
    #cc-main .cm--bar .cm__body {
        align-items: stretch;
        flex-direction: column;
    }

    #cc-main .cm--bar .cm__btns {
        border-left: 0;
        border-top: 1px solid var(--cc-separator-border-color);
        padding: 0.625rem 1rem;
    }

    #cc-main .cm--bar.npycc-us-dismiss-enabled .cm__btns {
        padding-right: 3.5rem;
    }

    #cc-main .cm--bar .cm__btn-group {
        justify-content: stretch;
    }

    #cc-main .cm--bar .cm__btn-group--uneven {
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    #cc-main .cm--bar {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    #cc-main .cm--bar .cm__texts {
        padding: 0.625rem 1rem 0.5rem;
    }

    #cc-main .cm--bar .cm__title {
        font-size: 1rem;
    }

    #cc-main .cm--bar .cm__desc {
        font-size: 0.875rem;
        line-height: 1.35;
    }

    #cc-main .cm--bar .cm__btns {
        display: grid;
        gap: 0.5rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.5rem 1rem 0.625rem;
    }

    #cc-main .cm--bar.cm--inline .cm__btn-group {
        display: grid !important;
        gap: 0.5rem;
        grid-column: 1 / -1;
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #cc-main .cm--bar .cm__btn {
        width: 100%;
    }

    #cc-main .cm--bar.cm--inline .cm__btns > .cm__btn-group + .cm__btn-group {
        display: block !important;
    }

    #cc-main .cm--bar .cm__btns > .cm__btn-group + .cm__btn-group .cm__btn {
        width: 100%;
    }

    #cc-main .cm--bar .cm__btn-group--uneven .cm__btn--secondary {
        white-space: normal;
    }

    .npycc-floating-preferences {
        bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
        left: max(0.75rem, env(safe-area-inset-left, 0px));
    }
}
