#nl-cookie-banner,
#nl-cookie-modal {
    color: #17202b;
    background: #fff;
    border: 1px solid #d5dfe2;
    border-radius: .875rem;
    box-shadow: 0 8px 32px rgba(15, 23, 41, .15);
}

#nl-cookie-banner {
    position: fixed;
    z-index: 1035;
    inset: auto 0 0;
    max-height: 85dvh;
    overflow-y: auto;
    padding: .375rem 0 calc(.375rem + env(safe-area-inset-bottom, 0px));
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: 0 -2px 12px rgba(15, 23, 41, .08);
}

.nl-cookie-banner__row {
    display: grid;
    align-items: center;
    gap: 0 1rem;
}

.nl-cookie-banner__copy {
    margin: 0;
    font-size: .8125rem;
    line-height: 1.4;
}

.nl-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .125rem 1rem;
}

.nl-cookie-banner__link {
    min-height: 1.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1f5f73;
    font: inherit;
    font-size: .8125rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .18em;
    cursor: pointer;
}

.nl-cookie-banner__link:hover { color: #174857; text-decoration-thickness: 2px; }
.nl-cookie-banner__link:disabled { cursor: wait; opacity: .7; }

@media (pointer: coarse) {
    .nl-cookie-banner__link { min-height: 2rem; }
}

#nl-cookie-modal h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
}

.nl-cookie-modal__body p {
    margin: .5rem 0 1rem;
    font-size: .9375rem;
    line-height: 1.5;
}

.nl-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
}

.nl-cookie-button,
.nl-cookie-close {
    border: 1px solid #94a3ab;
    border-radius: .5rem;
    background: #fff;
    color: #17202b;
    font: inherit;
    cursor: pointer;
}

.nl-cookie-button {
    min-height: 2rem;
    padding: .25rem .625rem;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.3;
}

.nl-cookie-button:hover { background: #f1f5f6; }
.nl-cookie-button--primary { background: #1f5f73; border-color: #1f5f73; color: #fff; }
.nl-cookie-button--primary:hover { background: #174857; }
.nl-cookie-button--dark { background: #17202b; border-color: #17202b; color: #fff; }
.nl-cookie-button--dark:hover { background: #303d4b; }
.nl-cookie-button:disabled { cursor: wait; opacity: .7; }

#nl-cookie-modal-container :is(button, input, a):focus-visible {
    outline: 3px solid #28829b;
    outline-offset: 3px;
}

#nl-cookie-modal {
    position: fixed;
    inset: 0;
    width: min(38rem, calc(100% - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#nl-cookie-modal::backdrop { background: rgba(15, 23, 41, .55); }
html:has(#nl-cookie-modal[open]) { overflow: hidden; }

.nl-cookie-modal__header,
.nl-cookie-category__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.nl-cookie-modal__header {
    padding: .9rem 1.25rem;
    background: #17202b;
    color: #fff;
}

.nl-cookie-close {
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    border-color: transparent;
    background: transparent;
    color: inherit;
    font-size: 1.6rem;
    line-height: 1;
}

.nl-cookie-close:hover { background: #303d4b; }
.nl-cookie-modal__body { padding: 1.25rem; }
.nl-cookie-modal__body > p:first-child { margin-top: 0; }
.nl-cookie-modal__body a { color: #1f5f73; }

.nl-cookie-category {
    padding: .85rem 1rem;
    border: 1px solid #d5dfe2;
    border-radius: .625rem;
}

.nl-cookie-category + .nl-cookie-category { margin-top: .65rem; }
.nl-cookie-category__heading label { font-weight: 700; cursor: pointer; }
.nl-cookie-category p { margin: .3rem 0 0; color: #475569; }
.nl-cookie-status {
    padding: .2rem .55rem;
    border-radius: 1rem;
    background: #edf3f3;
    color: #2d514c;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}

.nl-cookie-switch {
    appearance: none;
    flex: none;
    display: grid;
    align-items: center;
    width: 2.75rem;
    height: 1.6rem;
    padding: .15rem;
    border: 1px solid #566572;
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
}

.nl-cookie-switch::before {
    content: "";
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #566572;
}

.nl-cookie-switch:checked { background: #1f5f73; border-color: #1f5f73; }
.nl-cookie-switch:checked::before { justify-self: end; background: #fff; }
@media (forced-colors: active) {
    .nl-cookie-switch { appearance: auto; }
    .nl-cookie-switch::before { content: none; }
}

.nl-cookie-modal__footer {
    justify-content: flex-end;
    padding: .625rem 1.25rem;
    border-top: 1px solid #d5dfe2;
    background: #f6f8f9;
}

#nl-cookie-modal-container .nl-cookie-error { margin: .75rem 0 0; color: #9f1239; }
#nl-cookie-modal-container .nl-cookie-error:empty { margin: 0; }

@media (min-width: 576px) {
    .nl-cookie-banner__row { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 420px) {
    .nl-cookie-modal__header,
    .nl-cookie-modal__body,
    .nl-cookie-modal__footer { padding-inline: 1rem; }
}
