#nsrcp-consent-root[hidden] {
    display: none !important;
}

#nsrcp-consent-root {
    --nsrcp-primary: #0f766e;
    position: relative;
    z-index: 2147483000;
    font-family: inherit;
}

.nsrcp-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.nsrcp-position-bottom .nsrcp-banner {
    bottom: 16px;
}

.nsrcp-position-top .nsrcp-banner {
    top: 16px;
}

.nsrcp-banner__content {
    flex: 1 1 auto;
}

.nsrcp-banner h2,
.nsrcp-modal h2,
.nsrcp-category h3 {
    color: #111827;
}

.nsrcp-banner h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.nsrcp-banner p,
.nsrcp-category p {
    margin: 0;
    line-height: 1.6;
}

.nsrcp-policy-link {
    margin-top: 8px !important;
}

.nsrcp-policy-link a {
    color: var(--nsrcp-primary);
    text-decoration: underline;
}

.nsrcp-banner__actions,
.nsrcp-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nsrcp-btn {
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--nsrcp-primary);
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.nsrcp-btn--primary {
    background: var(--nsrcp-primary);
    color: #fff;
}

.nsrcp-btn--secondary {
    background: #fff;
    color: var(--nsrcp-primary);
}

.nsrcp-btn:focus,
.nsrcp-modal__close:focus,
.nsrcp-reopen:focus {
    outline: 3px solid rgba(15, 118, 110, .28);
    outline-offset: 2px;
}

.nsrcp-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(17, 24, 39, .68);
}

.nsrcp-modal__panel {
    position: relative;
    width: min(680px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.nsrcp-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.nsrcp-category-list {
    margin: 20px 0;
    border-top: 1px solid #e5e7eb;
}

.nsrcp-category {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.nsrcp-category h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.nsrcp-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nsrcp-switch input {
    position: absolute;
    opacity: 0;
}

.nsrcp-switch span[aria-hidden="true"] {
    width: 48px;
    height: 26px;
    background: #9ca3af;
    border-radius: 999px;
    transition: .18s ease;
}

.nsrcp-switch span[aria-hidden="true"]::after {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    margin: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .18s ease;
}

.nsrcp-switch input:checked + span {
    background: var(--nsrcp-primary);
}

.nsrcp-switch input:checked + span::after {
    transform: translateX(22px);
}

.nsrcp-switch input:disabled + span {
    opacity: .7;
    cursor: not-allowed;
}

.nsrcp-reopen {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--nsrcp-primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    cursor: pointer;
    font-size: 20px;
}

@media (max-width: 820px) {
    .nsrcp-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .nsrcp-banner__actions {
        width: 100%;
    }

    .nsrcp-banner__actions .nsrcp-btn {
        flex: 1 1 160px;
    }
}


.nsrcp-test-badge {
    position: absolute;
    top: -12px;
    left: 18px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #b45309;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}
