.nf-consent,
.nf-consent__dialog,
.nf-consent__reopen {
    --nf-cmp-ink: #204a4d;
    --nf-cmp-paper: var(--nf-color-nut-50, #fffbf5);
    --nf-cmp-accent: var(--nf-color-lemon, #e6ea72);
    color: var(--nf-cmp-ink);
    font: 400 1rem/1.48 var(--nf-font-body, "Wix Madefor Text", system-ui, sans-serif);
}

.nf-consent[hidden], .nf-consent__reopen[hidden] { display: none !important; }
.nf-consent, .nf-consent__dialog {
    box-sizing: border-box;
    background: var(--nf-cmp-paper);
    border: 1px solid var(--nf-color-border-teal, #c1dbde);
    border-radius: 1.25rem;
    box-shadow: 0 .7rem 3rem rgb(18 54 57 / .18);
    padding: clamp(1rem, 3vw, 1.6rem);
}
.nf-consent {
    position: fixed;
    inset-inline-start: max(1rem, env(safe-area-inset-left));
    inset-block-end: max(1rem, env(safe-area-inset-bottom));
    width: min(35rem, calc(100% - 2rem));
    max-block-size: calc(100dvh - 2rem);
    overflow: auto;
    z-index: 100000;
}

.nf-consent h2, .nf-consent__dialog h2 {
    font: 750 clamp(1.25rem, 4vw, 1.625rem)/1.15 var(--nf-font-body, "Wix Madefor Text", system-ui, sans-serif);
    margin: 0 0 .55rem;
    color: inherit;
    letter-spacing: normal;
}
.nf-consent p, .nf-consent__dialog p { margin: 0 0 .75rem; font: inherit; color: inherit; }
.nf-consent__links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: .8rem; }
.nf-consent__links a, .nf-consent__text { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.nf-consent__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.nf-consent__actions button, .nf-consent__save, .nf-consent__reopen {
    min-height: 44px;
    border: 1px solid #204a4d;
    border-radius: 2rem;
    background: #fff;
    color: #204a4d;
    font: 750 .93rem/1.25 var(--nf-font-body, "Wix Madefor Text", system-ui, sans-serif);
    text-transform: none;
    letter-spacing: normal;
    padding: .55rem .75rem;
    cursor: pointer;
}
.nf-consent__actions button:hover, .nf-consent__reopen:hover { background: #eaf3f3; }
.nf-consent__save { width: 100%; margin-top: .55rem; background: var(--nf-cmp-accent); }
.nf-consent__text, .nf-consent__close {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: .4rem .1rem;
    min-height: 44px;
    cursor: pointer;
}
.nf-consent :focus-visible, .nf-consent__dialog :focus-visible, .nf-consent__reopen:focus-visible {
    outline: 2px solid #204a4d;
    outline-offset: 3px;
}
.nf-consent__reopen {
    position: fixed;
    inset-inline-start: max(.75rem, env(safe-area-inset-left));
    inset-block-end: max(.75rem, env(safe-area-inset-bottom));
    z-index: 100000;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    box-shadow: 0 .25rem 1rem rgb(18 54 57 / .15);
}
.nf-consent__dialog {
    width: min(35rem, calc(100% - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    margin: auto;
    overflow: auto;
}
.nf-consent__dialog::backdrop { background: rgb(18 39 41 / .55); }
.nf-consent__dialog h2 { padding-inline-end: 2rem; }
.nf-consent__close { position: absolute; inset-inline-end: .65rem; inset-block-start: .35rem; width: 44px; font-size: 1.5rem; }
.nf-consent__category {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .22rem .5rem;
    padding: .65rem 0;
    border-top: 1px solid var(--nf-color-border-teal, #c1dbde);
}
.nf-consent__category:has(.nf-consent__switch) { cursor: pointer; }
.nf-consent__description, .nf-consent__category p { grid-column: 1 / -1; margin: 0; }
.nf-consent__switch {
    position: relative;
    display: grid;
    align-items: center;
    width: 3.25rem;
    min-height: 44px;
}
.nf-consent__switch input[type="checkbox"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.nf-consent__switch-track {
    position: relative;
    box-sizing: border-box;
    height: 1.75rem;
    border: 2px solid #456365;
    border-radius: 1rem;
    background: #eaf3f3;
    pointer-events: none;
}
.nf-consent__switch-track::before {
    content: "";
    position: absolute;
    inset-block-start: .125rem;
    inset-inline-start: .125rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #456365;
}
.nf-consent__switch input:checked + .nf-consent__switch-track { background: #204a4d; border-color: #204a4d; }
.nf-consent__switch input:checked + .nf-consent__switch-track::before { inset-inline-start: 1.55rem; background: #fff; }
.nf-consent__switch input:focus-visible + .nf-consent__switch-track { outline: 2px solid #204a4d; outline-offset: 3px; }
.nf-consent__dialog .nf-consent__links { margin: .65rem 0 0; }
@media (forced-colors: active) {
    .nf-consent__switch-track { display: none; }
    .nf-consent__switch input[type="checkbox"] {
        position: static;
        appearance: auto;
        width: 1.25rem;
        height: 1.25rem;
        opacity: 1;
    }
}
.nf-consent__dialog .nf-consent__actions { margin-top: .35rem; }
@media (max-width: 390px) { .nf-consent__actions button { font-size: .85rem; padding-inline: .4rem; } }

form.nf-newsletter-native { flex-wrap: wrap; }
.nf-newsletter-native .nf-newsletter-native__permission {
    display: flex;
    flex: 1 0 100%;
    align-items: baseline;
    gap: .5rem;
    font-size: .875rem;
    text-align: start;
}
.nf-newsletter-native .nf-newsletter-native__permission input[type="checkbox"] {
    appearance: auto;
    flex: none;
    width: 1rem;
    min-height: 0;
    height: 1rem;
    margin: 0;
    padding: 0;
    accent-color: #204a4d;
}
.nf-newsletter-native__permission a { text-decoration: underline; color: inherit; }
