.nc-consent,
.nc-consent * {
    box-sizing: border-box;
}

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

.nc-consent {
    --nc-consent-ink: var(--color-text, #053660);
    --nc-consent-ink-strong: var(--color-main, #111c2d);
    --nc-consent-muted: #53697b;
    --nc-consent-border: #d8e5f0;
    --nc-consent-surface: #ffffff;
    --nc-consent-soft: #f5f9fd;
    --nc-consent-accent: var(--color-highlight, #0c72d0);
    --nc-consent-accent-alt: var(--color-highlight-2, #6c54ff);
    --nc-consent-gradient: var(
        --bg-highlight-light,
        linear-gradient(93.07deg, #6c54ff -16.41%, #0972ce 99.41%)
    );
    --nc-consent-gradient-hover: var(
        --bg-highlight-light-hover,
        linear-gradient(104.94deg, #3618ff -9.48%, #1c00d7 50.71%, #0972ce 116.55%)
    );
    color: var(--nc-consent-ink-strong);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    position: relative;
    z-index: 10050;
}

.nc-consent-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 28px;
    overflow: hidden;
    background: var(--nc-consent-surface);
    border: 1px solid rgba(9, 114, 206, .18);
    border-radius: 22px;
    box-shadow: 0 20px 56px rgba(5, 54, 96, .2);
}

.nc-consent-banner::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--nc-consent-gradient);
    content: '';
}

.nc-consent-banner-copy {
    min-width: 0;
}

.nc-consent-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--nc-consent-accent-alt);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1.4;
    text-transform: uppercase;
}

.nc-consent-banner h2,
.nc-consent-modal h2,
.nc-consent-category h3,
.nc-consent-services h4 {
    color: var(--nc-consent-ink-strong);
    font-family: inherit;
    text-transform: none;
}

.nc-consent-banner h2 {
    margin: 0 0 6px;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.2;
}

.nc-consent-banner p,
.nc-consent-intro,
.nc-consent-detail-note {
    margin: 0;
    color: var(--nc-consent-muted);
    font-size: 15px;
    line-height: 1.6;
}

.nc-consent-policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-top: 12px;
}

.nc-consent-policy-links a {
    color: var(--nc-consent-accent);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-color: rgba(12, 114, 208, .42);
    text-underline-offset: 3px;
}

.nc-consent-policy-links a:hover {
    color: var(--nc-consent-ink);
    text-decoration-color: currentColor;
}

.nc-consent-banner-actions,
.nc-consent-modal-actions {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 10px;
}

.nc-consent .nc-consent-button,
.nc-consent .nc-consent-close {
    appearance: none;
    margin: 0;
    font: inherit;
    cursor: pointer;
    user-select: none;
}

.nc-consent .nc-consent-button {
    display: inline-flex;
    min-width: 126px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    color: var(--nc-consent-ink);
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease,
        color .2s ease, transform .2s ease;
}

.nc-consent .nc-consent-button:hover {
    transform: translateY(-1px);
}

.nc-consent .nc-consent-button:active {
    transform: translateY(0);
}

.nc-consent .nc-consent-button-primary {
    color: #fff;
    background: var(--nc-consent-gradient);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(9, 114, 206, .2);
}

.nc-consent .nc-consent-button-primary:hover {
    color: #fff;
    background: var(--nc-consent-gradient-hover);
    box-shadow: 0 10px 24px rgba(54, 24, 255, .22);
}

.nc-consent .nc-consent-button-secondary {
    color: var(--nc-consent-ink);
    background: var(--nc-consent-surface);
    border-color: #9eb6ca;
}

.nc-consent .nc-consent-button-secondary:hover {
    color: var(--nc-consent-ink);
    background: #edf6fd;
    border-color: var(--nc-consent-accent);
}

.nc-consent .nc-consent-button-tertiary {
    color: #3e586d;
    background: transparent;
    border-color: transparent;
}

.nc-consent .nc-consent-button-tertiary:hover {
    color: var(--nc-consent-ink);
    background: #eaf2f9;
}

.nc-consent-button:focus-visible,
.nc-consent-close:focus-visible,
.nc-consent-services summary:focus-visible,
.nc-consent-switch input:focus-visible + .nc-consent-switch-visual,
.nc-consent-policy-links a:focus-visible {
    outline: 3px solid rgba(108, 84, 255, .38);
    outline-offset: 3px;
}

.nc-consent .nc-consent-button:disabled {
    cursor: wait;
    opacity: .62;
    transform: none;
}

.nc-consent-modal-layer {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 1;
}

.nc-consent-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 24, 43, .68);
}

.nc-consent-modal {
    position: relative;
    display: flex;
    width: min(720px, 100%);
    max-height: min(800px, calc(100vh - 40px));
    max-height: min(800px, calc(100dvh - 40px));
    flex-direction: column;
    overflow: hidden;
    background: var(--nc-consent-surface);
    border: 1px solid rgba(195, 227, 255, .8);
    border-radius: 24px;
    box-shadow: 0 32px 90px rgba(3, 30, 53, .32);
}

.nc-consent-modal::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--nc-consent-gradient);
    content: '';
    z-index: 1;
}

.nc-consent-modal-header {
    display: flex;
    height: auto;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px 22px;
    background: linear-gradient(115deg, #f3f0ff 0%, #edf7ff 100%);
    border-bottom: 1px solid var(--nc-consent-border);
}

.nc-consent-modal-header > div {
    min-width: 0;
}

.nc-consent-modal h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.2;
}

.nc-consent .nc-consent-close {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--nc-consent-ink);
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(9, 114, 206, .16);
    border-radius: 50%;
    box-shadow: 0 5px 16px rgba(5, 54, 96, .08);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease,
        transform .2s ease;
}

.nc-consent .nc-consent-close:hover {
    color: #fff;
    background: var(--nc-consent-accent);
    border-color: var(--nc-consent-accent);
    transform: rotate(4deg);
}

.nc-consent-close svg {
    display: block;
    width: 22px;
    height: 22px;
}

.nc-consent-modal-body {
    min-height: 0;
    padding: 22px 30px 26px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: #a7bfd2 transparent;
    scrollbar-width: thin;
}

.nc-consent-modal-body::-webkit-scrollbar {
    width: 7px;
}

.nc-consent-modal-body::-webkit-scrollbar-thumb {
    background: #a7bfd2;
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

.nc-consent-category-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.nc-consent-category {
    padding: 18px 20px;
    background: var(--nc-consent-surface);
    border: 1px solid var(--nc-consent-border);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(5, 54, 96, .045);
}

.nc-consent-category[data-consent-category='necessary'] {
    background: linear-gradient(115deg, rgba(108, 84, 255, .045), rgba(9, 114, 206, .045));
    border-color: #cbdcf0;
}

.nc-consent-category-unknown {
    background: #fff9eb;
    border-color: #ecd7a1;
}

.nc-consent-category-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nc-consent-category-copy {
    min-width: 0;
}

.nc-consent-category h3 {
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.nc-consent-category p,
.nc-consent-services li span,
.nc-consent-services-empty {
    margin: 0;
    color: var(--nc-consent-muted);
    font-size: 13px;
    line-height: 1.55;
}

.nc-consent .nc-consent-switch {
    position: relative;
    display: inline-flex;
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 26px;
    min-height: 26px;
    max-height: 26px;
    align-items: center;
    flex: 0 0 46px;
    padding: 0;
    margin: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    line-height: 0;
}

.nc-consent .nc-consent-switch-required {
    cursor: default;
}

.nc-consent-category-control {
    display: flex;
    min-width: 78px;
    flex: 0 0 78px;
    align-items: center;
    flex-direction: column;
    gap: 6px;
}

.nc-consent-always-on {
    color: var(--nc-consent-accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.nc-consent .nc-consent-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.nc-consent .nc-consent-switch-visual {
    position: relative;
    display: block;
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 26px;
    min-height: 26px;
    max-height: 26px;
    padding: 0;
    margin: 0;
    background: #a9bac8;
    border: 1px solid #91a6b7;
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(5, 54, 96, .12);
    content: none;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.nc-consent .nc-consent-switch-visual::after {
    position: absolute;
    top: 2px;
    left: 2px;
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(3, 30, 53, .26);
    content: '';
    transition: transform .2s ease;
}

.nc-consent .nc-consent-switch input:checked + .nc-consent-switch-visual {
    background: var(--nc-consent-gradient);
    border-color: transparent;
    box-shadow: 0 5px 13px rgba(9, 114, 206, .2);
}

.nc-consent .nc-consent-switch input:checked + .nc-consent-switch-visual::after {
    transform: translateX(20px);
}

.nc-consent .nc-consent-switch input:disabled + .nc-consent-switch-visual {
    cursor: default;
    opacity: .72;
}

.nc-consent .nc-consent-switch input:checked:disabled + .nc-consent-switch-visual {
    background: var(--nc-consent-gradient);
    border-color: transparent;
    box-shadow: 0 5px 13px rgba(9, 114, 206, .16);
    opacity: 1;
}

.nc-consent-services {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e3ecf3;
}

.nc-consent-services summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--nc-consent-ink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    text-transform: none;
}

.nc-consent-services summary::-webkit-details-marker {
    display: none;
}

.nc-consent-services summary::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: '';
    transform: rotate(-45deg);
    transition: transform .2s ease;
}

.nc-consent-services[open] summary::before {
    transform: translateY(-2px) rotate(45deg);
}

.nc-consent-services ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.nc-consent-services li {
    display: grid;
    gap: 6px;
    padding: 12px;
    background: var(--nc-consent-soft);
    border: 1px solid #e6eef5;
    border-radius: 10px;
}

.nc-consent-services li strong {
    color: var(--nc-consent-ink-strong);
    font-size: 13px;
    line-height: 1.4;
}

.nc-consent-services dl {
    display: grid;
    grid-template-columns: minmax(78px, auto) minmax(0, 1fr);
    gap: 4px 11px;
    margin: 0;
    color: var(--nc-consent-muted);
    font-size: 12px;
    line-height: 1.5;
}

.nc-consent-services dt {
    font-weight: 700;
}

.nc-consent-services dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.nc-consent-services-empty {
    margin-top: 8px;
}

.nc-consent-detail-note {
    margin-top: 18px;
    font-size: 13px;
}

.nc-consent-policy-links-modal {
    margin-top: 12px;
}

.nc-consent-error {
    margin: 14px 0 0;
    padding: 11px 13px;
    color: #8d1f2c;
    background: #fff0f1;
    border: 1px solid #f1c5ca;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
}

.nc-consent-modal-actions {
    flex: 0 0 auto;
    padding: 17px 30px;
    background: #f6faff;
    border-top: 1px solid var(--nc-consent-border);
}

body.nc-consent-modal-open {
    overflow: hidden;
}

.nc-consent-media-placeholder {
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    color: var(--nc-consent-ink-strong);
    background: linear-gradient(135deg, #f3f0ff, #edf7ff);
    border: 1px solid var(--nc-consent-border);
    border-radius: 16px;
    text-align: center;
}

.nc-consent-media-placeholder p {
    max-width: 460px;
    margin: 0;
    color: var(--nc-consent-muted);
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 991.98px) {
    .nc-consent-banner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .nc-consent-banner-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .nc-consent-banner {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 12px;
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 20px;
        overflow: auto;
        border-radius: 18px;
    }

    .nc-consent-banner p {
        font-size: 14px;
    }

    .nc-consent-banner-actions,
    .nc-consent-modal-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nc-consent-banner-actions .nc-consent-button:last-child,
    .nc-consent-modal-actions .nc-consent-button:last-child {
        grid-column: 1 / -1;
    }

    .nc-consent-modal-layer {
        align-items: end;
        padding: 0;
    }

    .nc-consent-modal {
        width: 100%;
        max-height: calc(100vh - max(12px, env(safe-area-inset-top)));
        max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
        border-radius: 22px 22px 0 0;
    }

    .nc-consent-modal-header {
        padding: 24px 20px 19px;
    }

    .nc-consent-modal-body {
        padding: 19px 20px 22px;
    }

    .nc-consent-modal-actions {
        padding: 14px 20px max(14px, env(safe-area-inset-bottom));
    }

    .nc-consent .nc-consent-button {
        min-width: 0;
        padding-right: 16px;
        padding-left: 16px;
    }

    .nc-consent-category {
        padding: 16px;
    }
}

@media (max-width: 419.98px) {
    .nc-consent-banner-actions,
    .nc-consent-modal-actions {
        grid-template-columns: 1fr;
    }

    .nc-consent-banner-actions .nc-consent-button:last-child,
    .nc-consent-modal-actions .nc-consent-button:last-child {
        grid-column: auto;
    }

    .nc-consent-category-top {
        align-items: flex-start;
        gap: 14px;
    }

    .nc-consent-category-control {
        min-width: 70px;
        flex-basis: 70px;
    }

    .nc-consent-modal h2 {
        font-size: 22px;
    }

    .nc-consent .nc-consent-close {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .nc-consent-services dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .nc-consent-services dd + dt {
        margin-top: 5px;
    }
}

@media (forced-colors: active) {
    .nc-consent .nc-consent-switch-visual,
    .nc-consent .nc-consent-switch input:checked + .nc-consent-switch-visual,
    .nc-consent .nc-consent-switch input:checked:disabled + .nc-consent-switch-visual {
        background: Canvas;
        border: 2px solid ButtonText;
        box-shadow: none;
    }

    .nc-consent .nc-consent-switch input:checked + .nc-consent-switch-visual::after {
        background: Highlight;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nc-consent *,
    .nc-consent *::before,
    .nc-consent *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
