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

.n1-consent {
    --consent-target: 32px;
    position: fixed;
    inset: auto 0 0;
    z-index: 2147483646;
    display: flex;
    justify-content: center;
    padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    pointer-events: none;
    color: #241b32;
    font: 13px/1.5 Inter, Arial, sans-serif;
}

.n1-consent__box {
    box-sizing: border-box;
    width: min(100%, 24rem);
    max-height: 65vh;
    max-height: 65dvh;
    overflow: auto;
    overscroll-behavior: contain;
    pointer-events: auto;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e8d9f1;
    border-radius: 12px;
    box-shadow: 0 8px 28px #0003;
}

.n1-consent__header,
.n1-consent__actions,
.n1-consent__choices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.n1-consent__header {
    justify-content: space-between;
}

.n1-consent h2 {
    margin: 0;
    color: #692294;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.n1-consent--expanded h2 {
    font-size: 14px;
}

.n1-consent__actions {
    margin-top: 2px;
}

.n1-consent button {
    min-width: var(--consent-target);
    min-height: var(--consent-target);
    padding: 4px 8px;
    border: 1px solid #7927a6;
    border-radius: 8px;
    background: #7927a6;
    color: #fff;
    font: 600 12px/1.4 Inter, Arial, sans-serif;
    cursor: pointer;
}

.n1-consent button:disabled {
    opacity: .6;
    cursor: wait;
}

.n1-consent button:is([data-action="preferences"], [data-action="reject"], [data-action="close"]) {
    border-color: transparent;
    background: transparent;
    color: #692294;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.n1-consent button:is([data-action="preferences"], [data-action="save"]) {
    margin-inline-end: auto;
}

.n1-consent button[data-action="reject"] {
    font-size: 11px;
}

.n1-consent--expanded :is(.n1-consent__summary, [data-action="preferences"]),
.n1-consent:not(.n1-consent--expanded) :is(.n1-consent__title, .n1-consent__note, [data-action="close"], [data-action="save"]) {
    display: none;
}

.n1-consent__choices {
    gap: 0 16px;
}

.n1-consent__choices label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: var(--consent-target);
    cursor: pointer;
}

.n1-consent input {
    appearance: auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #7927a6;
}

.n1-consent p,
.n1-consent dl {
    margin: 6px 0;
}

.n1-consent p.n1-consent__note {
    margin: 0;
    color: #51465b;
}

.n1-consent dt {
    margin-top: 8px;
    font-weight: 600;
}

.n1-consent dd {
    margin: 0;
}

.n1-consent summary {
    box-sizing: border-box;
    min-height: var(--consent-target);
    padding-block: calc((var(--consent-target) - 1.5em) / 2);
    cursor: pointer;
}

.n1-consent a,
.n1-consent summary {
    color: #692294;
    text-decoration: underline;
}

.n1-consent__open {
    cursor: pointer;
    text-decoration: underline;
}

.n1-consent .n1-consent__error {
    color: #a6030c;
    font-weight: 600;
}

.n1-consent .n1-consent__error:empty {
    margin: 0;
}

.n1-consent :focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

@media (pointer: coarse) {
    .n1-consent {
        --consent-target: 44px;
    }
}
