.nspc-root {
	--nspc-accent: #185adb;
	--nspc-bg: #fff;
	--nspc-surface: #f5f7fa;
	--nspc-text: #172033;
	--nspc-muted: #586174;
	--nspc-border: #d9deea;
	--nspc-shadow: 0 18px 60px rgba(14, 23, 42, .2);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	position: relative;
	z-index: 2147483000;
}

.nspc-root[data-theme="dark"] {
	--nspc-bg: #131722;
	--nspc-surface: #202634;
	--nspc-text: #f7f8fb;
	--nspc-muted: #c1c7d2;
	--nspc-border: #3d4556;
	--nspc-shadow: 0 18px 60px rgba(0, 0, 0, .55);
}

@media (prefers-color-scheme: dark) {
	.nspc-root[data-theme="auto"] {
		--nspc-bg: #131722;
		--nspc-surface: #202634;
		--nspc-text: #f7f8fb;
		--nspc-muted: #c1c7d2;
		--nspc-border: #3d4556;
		--nspc-shadow: 0 18px 60px rgba(0, 0, 0, .55);
	}
}

.nspc-root [hidden] { display: none !important; }

.nspc-banner {
	align-items: center;
	background: var(--nspc-bg);
	border: 1px solid var(--nspc-border);
	bottom: 0;
	box-shadow: var(--nspc-shadow);
	box-sizing: border-box;
	color: var(--nspc-text);
	display: flex;
	gap: 28px;
	justify-content: space-between;
	left: 0;
	padding: 22px max(24px, calc((100vw - 1200px) / 2));
	position: fixed;
	width: 100%;
}

.nspc-root[data-position="center"] .nspc-banner {
	border-radius: 14px;
	bottom: auto;
	left: 50%;
	max-width: 720px;
	padding: 28px;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 32px);
}

.nspc-banner__copy { max-width: 720px; }
.nspc-banner h2,
.nspc-preferences h2,
.nspc-preferences h3,
.nspc-category__title {
	color: var(--nspc-text);
	font-family: inherit;
	text-transform: none;
}
.nspc-banner h2 { font-size: 21px; line-height: 1.25; margin: 0 0 7px; }
.nspc-banner p { color: var(--nspc-muted); font-size: 14px; margin: 0 0 8px; }
.nspc-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 9px; }
.nspc-button {
	appearance: none;
	border: 1px solid var(--nspc-border);
	border-radius: 8px;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	min-height: 42px;
	padding: 10px 16px;
}
.nspc-button--primary { background: var(--nspc-accent); border-color: var(--nspc-accent); color: #fff; }
.nspc-button--secondary { background: var(--nspc-bg); color: var(--nspc-text); }
.nspc-button:hover { filter: brightness(.94); }
.nspc-button:focus-visible,
.nspc-link:focus-visible,
.nspc-close:focus-visible,
.nspc-revisit:focus-visible,
.nspc-do-not-sell:focus-visible,
.nspc-switch input:focus-visible + span { outline: 3px solid var(--nspc-accent); outline-offset: 2px; }

.nspc-text-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.nspc-text-links a,
.nspc-link,
.nspc-do-not-sell {
	background: none;
	border: 0;
	color: var(--nspc-accent);
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.nspc-backdrop {
	background: rgba(9, 13, 23, .55);
	inset: 0;
	position: fixed;
}

.nspc-preferences {
	background: var(--nspc-bg);
	border: 1px solid var(--nspc-border);
	border-radius: 16px;
	box-shadow: var(--nspc-shadow);
	box-sizing: border-box;
	color: var(--nspc-muted);
	left: 50%;
	max-height: min(760px, calc(100vh - 32px));
	max-width: 680px;
	overflow: auto;
	padding: 28px;
	position: fixed;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 32px);
}
.nspc-preferences__header { align-items: flex-start; display: flex; gap: 20px; justify-content: space-between; }
.nspc-preferences h2 { font-size: 25px; line-height: 1.2; margin: 0 0 12px; }
.nspc-preferences > p { font-size: 14px; margin: 0 0 18px; }
.nspc-eyebrow { color: var(--nspc-accent); font-size: 12px !important; font-weight: 700; letter-spacing: .08em; margin: 0 0 5px !important; text-transform: uppercase; }
.nspc-close { background: var(--nspc-surface); border: 0; border-radius: 50%; color: var(--nspc-text); cursor: pointer; flex: 0 0 auto; font-family: inherit; font-size: 24px; height: 36px; line-height: 36px; padding: 0; width: 36px; }
.nspc-gpc-message { background: var(--nspc-surface); border-left: 4px solid var(--nspc-accent); border-radius: 5px; color: var(--nspc-text); padding: 10px 12px; }

.nspc-category {
	align-items: center;
	background: var(--nspc-surface);
	border: 1px solid var(--nspc-border);
	border-radius: 10px;
	box-sizing: border-box;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin: 10px 0;
	padding: 15px;
}
.nspc-category h3,
.nspc-category__title { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 4px; }
.nspc-category p,
.nspc-category__description { color: var(--nspc-muted); display: block; font-size: 13px; line-height: 1.4; margin: 0; }
.nspc-always-on { color: var(--nspc-accent); flex: 0 0 auto; font-size: 12px; font-weight: 700; }
.nspc-switch { flex: 0 0 auto; height: 26px; position: relative; width: 46px; }
.nspc-switch input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.nspc-switch span { background: #80889a; border-radius: 20px; cursor: pointer; inset: 0; position: absolute; transition: background .18s ease; }
.nspc-switch span::before { background: #fff; border-radius: 50%; content: ""; height: 20px; left: 3px; position: absolute; top: 3px; transition: transform .18s ease; width: 20px; }
.nspc-switch input:checked + span { background: var(--nspc-accent); }
.nspc-switch input:checked + span::before { transform: translateX(20px); }
.nspc-switch input:disabled + span { cursor: not-allowed; opacity: .5; }
.nspc-preferences__actions { align-items: center; display: flex; gap: 18px; justify-content: space-between; margin-top: 20px; }
.nspc-status { color: var(--nspc-text); font-size: 13px; min-height: 1.4em; padding-top: 4px; }

.nspc-revisit {
	background: var(--nspc-bg);
	border: 1px solid var(--nspc-border);
	border-radius: 999px;
	bottom: 16px;
	box-shadow: 0 6px 22px rgba(14, 23, 42, .16);
	color: var(--nspc-text);
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	left: 16px;
	padding: 10px 14px;
	position: fixed;
}
.nspc-do-not-sell { display: inline-block; }
html.nspc-dialog-open { overflow: hidden; }

@media (max-width: 820px) {
	.nspc-banner { align-items: stretch; flex-direction: column; gap: 14px; padding: 20px; }
	.nspc-actions { display: grid; grid-template-columns: 1fr; }
	.nspc-root[data-position="center"] .nspc-banner { max-height: calc(100vh - 24px); overflow: auto; }
	.nspc-preferences { padding: 20px; }
	.nspc-preferences__actions { align-items: stretch; flex-direction: column-reverse; }
	.nspc-preferences__actions .nspc-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.nspc-root * { scroll-behavior: auto !important; transition: none !important; }
}

.nspc-account-delete {
	background: #fff;
	border: 1px solid #d9deea;
	border-radius: 12px;
	box-sizing: border-box;
	color: #172033;
	max-width: 680px;
	padding: 28px;
}
.nspc-account-delete h2 { color: #172033; font-size: 24px; margin: 0 0 12px; }
.nspc-account-delete > p { color: #586174; line-height: 1.6; }
.nspc-account-delete__form label { color: #172033; display: block; font-weight: 600; margin-bottom: 6px; }
.nspc-account-delete__form input[type="password"],
.nspc-account-delete__form input[type="text"] {
	border: 1px solid #aeb6c7;
	border-radius: 7px;
	box-sizing: border-box;
	font: inherit;
	max-width: 420px;
	padding: 10px 12px;
	width: 100%;
}
.nspc-account-delete__form input:focus-visible { border-color: #185adb; outline: 3px solid rgba(24, 90, 219, .2); }
.nspc-account-delete__acknowledgement { align-items: flex-start; display: flex !important; font-weight: 400 !important; gap: 8px; }
.nspc-account-delete__acknowledgement input { margin-top: 5px; }
.nspc-delete-button {
	background: #b42318;
	border: 1px solid #b42318;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: 11px 16px;
}
.nspc-delete-button:hover { background: #8f1c14; }
.nspc-delete-button:focus-visible { outline: 3px solid rgba(180, 35, 24, .25); outline-offset: 2px; }
.nspc-account-message { background: #eef2f7; border-left: 4px solid #61708a; border-radius: 5px; color: #172033; margin: 12px 0; padding: 12px 14px; }
.nspc-account-message--success { background: #ecfdf3; border-color: #138a52; color: #075c35; }
.nspc-account-message--warning { background: #fffaeb; border-color: #dc8a00; color: #7a4700; }
.nspc-account-message--error { background: #fef3f2; border-color: #b42318; color: #8a1c13; }
