/* The initial banner sits in the page flow so it cannot cover a form field. */
#njr-cookie-banner {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(18px, 3vw, 32px);
    border: 0;
    border-bottom: 1px solid #c9c6bf;
    background: #fff;
    color: #202029;
    font: 400 16px/1.5 var(--njr-font, sans-serif);
    overflow-wrap: anywhere;
}
#njr-cookie-banner:not([open]) { display: none; }
.njr-cookie-inner {
    display: flex;
    gap: 18px 38px;
    align-items: center;
    justify-content: space-between;
    max-width: 1250px;
    margin: 0 auto;
}
#njr-cookie-title {
    margin: 0 0 6px;
    font: 700 clamp(20px, 3vw, 26px)/1.2 var(--njr-font, sans-serif);
    color: inherit;
}
#njr-cookie-banner p { margin: 0 0 6px; }
#njr-cookie-status:empty { display: none; }
#njr-cookie-privacy,
#njr-cookie-banner .njr-cookie-close {
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
}
.njr-cookie-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    flex: 0 0 auto;
}
.njr-cookie-actions button {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #202029;
    border-radius: 3px;
    background: #202029;
    color: #fff;
    font: 700 16px/1.35 var(--njr-font, sans-serif);
    cursor: pointer;
}
.njr-cookie-actions button:hover { background: #474750; }
#njr-cookie-banner :focus-visible {
    outline: 3px solid #9c4e00;
    outline-offset: 3px;
}
#njr-cookie-banner:modal {
    position: fixed;
    inset: 0;
    width: min(540px, calc(100% - 28px));
    max-height: calc(100% - 28px);
    overflow-y: auto;
    margin: auto;
    padding: clamp(20px, 4vw, 36px);
    border-radius: 4px;
}
#njr-cookie-banner:modal .njr-cookie-inner { display: grid; }
#njr-cookie-banner::backdrop { background: rgb(16 16 22 / 68%); }
#njr-cookie-settings,
#njr-cookie-banner .njr-cookie-close {
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
#njr-cookie-banner .njr-cookie-close { margin-top: 8px; }
#njr-cookie-settings { color: inherit; font: inherit; font-size: 15px; }
#njr-cookie-settings:hover { color: var(--njr-orange); }
@media (max-width: 720px) {
    .njr-cookie-inner { display: grid; }
}
@media (forced-colors: active) {
    #njr-cookie-banner { border: 1px solid CanvasText; }
    #njr-cookie-banner :focus-visible { outline-color: Highlight; }
}
