.nm-consent {
    --nmcc-orange: #ff6a1c;
    --nmcc-orange-deep: #c63f00;
    --nmcc-yellow: #ffda62;
    --nmcc-cream: #fff6e6;
    --nmcc-ink: #1a1a1a;
    --nmcc-muted: #5f5f5f;
    --nmcc-white: #ffffff;
    --nmcc-line: rgba(26, 26, 26, .14);
    color: var(--nmcc-ink);
    font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

.nm-consent [hidden] {
    display: none !important;
}

.nm-consent *,
.nm-consent *::before,
.nm-consent *::after {
    box-sizing: border-box;
}

.nm-consent .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.nm-consent-banner {
    position: fixed;
    z-index: 11000;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
    padding: 14px 16px;
    border: 1px solid rgba(255, 106, 28, .28);
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 14px 42px rgba(26, 26, 26, .16);
    transform: translateY(24px);
    opacity: 0;
    transition: transform .22s ease-out, opacity .18s ease-out;
}

.nm-consent-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.nm-consent-copy {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.nm-consent-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--nmcc-orange-deep);
    border-radius: 11px;
    background: var(--nmcc-cream);
}

.nm-consent-icon svg {
    width: 22px;
    height: 22px;
}

.nm-consent-eyebrow {
    margin: 0 0 3px;
    color: var(--nmcc-orange-deep);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nm-consent h2,
.nm-consent h3,
.nm-consent p {
    font-family: inherit;
}

.nm-consent-banner h2 {
    margin: 0;
    color: var(--nmcc-ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
}

.nm-consent-banner p:not(.nm-consent-eyebrow) {
    max-width: 620px;
    margin: 3px 0 0;
    color: var(--nmcc-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.nm-consent-banner .nm-consent-eyebrow {
    display: none;
}

.nm-consent a {
    color: var(--nmcc-ink);
    font-weight: 850;
    text-decoration-color: var(--nmcc-orange);
    text-underline-offset: 3px;
}

.nm-consent a:hover {
    color: var(--nmcc-orange-deep);
}

.nm-consent-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.nm-consent-button,
.nm-consent-close,
.nm-consent-launcher,
.nm-consent-scrim {
    appearance: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
}

.nm-consent-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.nm-consent-button-primary {
    color: var(--nmcc-ink);
    background: var(--nmcc-orange);
    box-shadow: 0 10px 24px rgba(255, 106, 28, .22);
}

.nm-consent-button-primary:hover {
    color: var(--nmcc-ink);
    background: #eb560c;
}

.nm-consent-button-secondary {
    color: var(--nmcc-ink);
    border-color: rgba(26, 26, 26, .28);
    background: var(--nmcc-white);
}

.nm-consent-button-secondary:hover {
    border-color: var(--nmcc-orange);
    background: var(--nmcc-cream);
}

.nm-consent-button-quiet {
    min-height: 44px;
    color: var(--nmcc-ink);
    background: transparent;
    text-decoration: underline;
    text-decoration-color: var(--nmcc-orange);
    text-underline-offset: 3px;
}

.nm-consent-button-quiet:hover {
    color: var(--nmcc-orange-deep);
    background: var(--nmcc-cream);
}

.nm-consent button:focus-visible,
.nm-consent a:focus-visible,
.nm-consent input:focus-visible + .nm-consent-switch-track {
    outline: 3px solid var(--nmcc-yellow);
    outline-offset: 3px;
}

.nm-consent-dialog-wrap {
    position: fixed;
    z-index: 12000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.nm-consent-scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, .58);
}

.nm-consent-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(720px, 100%);
    max-height: min(760px, calc(100dvh - 48px));
    overflow: hidden;
    border: 1px solid rgba(255, 106, 28, .24);
    border-radius: 20px;
    background: var(--nmcc-white);
    box-shadow: 0 32px 90px rgba(26, 26, 26, .3);
    transform: translateY(16px) scale(.99);
    opacity: 0;
    transition: transform .22s ease-out, opacity .18s ease-out;
}

.nm-consent-dialog-wrap.is-open .nm-consent-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.nm-consent-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 26px 21px;
    border-bottom: 1px solid var(--nmcc-line);
    background: linear-gradient(135deg, var(--nmcc-white), var(--nmcc-cream));
}

.nm-consent-dialog-header h2 {
    margin: 0;
    color: var(--nmcc-ink);
    font-size: 25px;
    font-weight: 900;
    line-height: 1.2;
}

.nm-consent-dialog-header p:not(.nm-consent-eyebrow) {
    max-width: 560px;
    margin: 7px 0 0;
    color: var(--nmcc-muted);
    font-size: 14px;
    line-height: 1.6;
}

.nm-consent-close {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: var(--nmcc-ink);
    border: 1px solid var(--nmcc-line);
    border-radius: 12px;
    background: var(--nmcc-white);
}

.nm-consent-close:hover {
    color: var(--nmcc-orange-deep);
    border-color: var(--nmcc-orange);
}

.nm-consent-close svg {
    width: 22px;
    height: 22px;
}

.nm-consent-categories {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 5px 26px;
}

.nm-consent-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 24px;
    padding: 21px 0;
    border-bottom: 1px solid var(--nmcc-line);
}

.nm-consent-category:last-child {
    border-bottom: 0;
}

.nm-consent-category-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nm-consent-category h3 {
    margin: 0;
    color: var(--nmcc-ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
}

.nm-consent-required {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    color: var(--nmcc-ink);
    border-radius: 999px;
    background: var(--nmcc-yellow);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.nm-consent-category p {
    margin: 6px 0 0;
    color: var(--nmcc-muted);
    font-size: 13px;
    line-height: 1.6;
}

.nm-consent-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
}

.nm-consent-services span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    color: var(--nmcc-muted);
    border: 1px solid var(--nmcc-line);
    border-radius: 999px;
    background: #fffdfa;
    font-size: 10.5px;
    font-weight: 800;
}

.nm-consent-switch {
    position: relative;
    display: inline-flex;
    min-width: 52px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nm-consent-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.nm-consent-switch-track {
    position: relative;
    display: block;
    width: 46px;
    height: 26px;
    border: 1px solid #9c9c9c;
    border-radius: 999px;
    background: #efefef;
    transition: background-color .18s ease, border-color .18s ease;
}

.nm-consent-switch-track span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--nmcc-white);
    box-shadow: 0 2px 7px rgba(26, 26, 26, .24);
    transition: transform .18s ease;
}

.nm-consent-switch input:checked + .nm-consent-switch-track {
    border-color: var(--nmcc-orange-deep);
    background: var(--nmcc-orange-deep);
}

.nm-consent-switch input:checked + .nm-consent-switch-track span {
    transform: translateX(20px);
}

.nm-consent-switch input:disabled + .nm-consent-switch-track {
    border-color: #cfaa00;
    background: var(--nmcc-yellow);
    cursor: not-allowed;
}

.nm-consent-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 26px;
    border-top: 1px solid var(--nmcc-line);
    background: var(--nmcc-white);
}

.nm-consent-dialog-footer > div {
    display: flex;
    gap: 9px;
}

.nm-consent-policy-link {
    font-size: 12px;
}

.nm-consent-launcher {
    position: fixed;
    z-index: 10900;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 13px;
    color: var(--nmcc-ink);
    border: 1px solid rgba(255, 106, 28, .35);
    border-radius: 999px;
    background: var(--nmcc-white);
    box-shadow: 0 8px 28px rgba(26, 26, 26, .14);
    font-size: 12px;
    font-weight: 900;
}

.nm-consent-launcher:hover {
    border-color: var(--nmcc-orange);
    background: var(--nmcc-cream);
}

.nm-consent-launcher svg {
    width: 21px;
    height: 21px;
    color: var(--nmcc-orange-deep);
}

body.nm-consent-lock {
    overflow: hidden;
}

.landing-footer-link-button {
    display: block;
    margin: 0 0 10px;
    padding: 0;
    color: #656c76;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
    transition: color .2s, transform .2s;
}

.landing-footer-link-button:hover {
    color: #c63f00;
    transform: translateX(2px);
}

.landing-footer-link-button:focus-visible {
    outline: 3px solid #ffda62;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .nm-consent-banner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .nm-consent-actions {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 620px) {
    .nm-consent-banner {
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 10px;
        width: calc(100% - 20px);
        padding: 18px;
        border-radius: 16px;
    }

    .nm-consent-copy {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    .nm-consent-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .nm-consent-icon svg {
        width: 23px;
        height: 23px;
    }

    .nm-consent-banner h2 {
        font-size: 17px;
    }

    .nm-consent-banner p:not(.nm-consent-eyebrow) {
        font-size: 13px;
    }

    .nm-consent-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .nm-consent-actions .nm-consent-button-quiet {
        grid-column: auto;
    }

    .nm-consent-dialog-wrap {
        align-items: end;
        padding: 0;
    }

    .nm-consent-dialog {
        width: 100%;
        max-height: min(88dvh, 780px);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 20px 20px 0 0;
    }

    .nm-consent-dialog-header {
        padding: 21px 18px 17px;
    }

    .nm-consent-dialog-header h2 {
        font-size: 22px;
    }

    .nm-consent-categories {
        padding: 3px 18px;
    }

    .nm-consent-category {
        gap: 12px;
        padding: 18px 0;
    }

    .nm-consent-dialog-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 16px 18px max(16px, env(safe-area-inset-bottom));
    }

    .nm-consent-dialog-footer > div {
        display: grid;
        grid-template-columns: 1fr;
    }

    .nm-consent-policy-link {
        min-height: 32px;
    }

    .nm-consent-launcher span {
        display: none;
    }

    .nm-consent-launcher {
        width: 46px;
        padding: 0;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nm-consent-banner,
    .nm-consent-dialog,
    .nm-consent-button,
    .nm-consent-switch-track,
    .nm-consent-switch-track span,
    .landing-footer-link-button {
        transition: none !important;
    }
}
