.ns-cc-root [hidden],
.ns-cc-root[hidden] {
	display: none !important;
}

.ns-cc-root {
	--ns-cc-bg: #fff8f0;
	--ns-cc-text: #4a3426;
	--ns-cc-accent: #d9772b;
	--ns-cc-accent-text: #ffffff;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ns-cc-text);
}

.ns-cc-root *,
.ns-cc-root *::before,
.ns-cc-root *::after {
	box-sizing: border-box;
}

.ns-cc-banner {
	position: fixed;
	z-index: 99990;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 24px;
	background: var(--ns-cc-bg);
	color: var(--ns-cc-text);
	border-top: 3px solid var(--ns-cc-accent);
	box-shadow: 0 -6px 24px rgba(74, 52, 38, 0.18);
}

.ns-cc-pos-card .ns-cc-banner {
	left: 20px;
	right: auto;
	bottom: 20px;
	max-width: 440px;
	flex-direction: column;
	align-items: stretch;
	border: 1px solid var(--ns-cc-accent);
	border-radius: 16px;
	box-shadow: 0 10px 34px rgba(74, 52, 38, 0.25);
}

.ns-cc-title {
	display: block;
	margin-bottom: 4px;
	font-size: 16px;
}

.ns-cc-message {
	margin: 0;
}

.ns-cc-link,
.ns-cc-modal-link a {
	color: var(--ns-cc-accent);
	text-decoration: underline;
}

.ns-cc-actions,
.ns-cc-modal-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.ns-cc-btn {
	display: inline-block;
	margin: 0;
	padding: 10px 20px;
	border: 2px solid var(--ns-cc-accent);
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}

.ns-cc-btn-primary {
	background: var(--ns-cc-accent);
	color: var(--ns-cc-accent-text);
}

.ns-cc-btn-primary:hover {
	transform: translateY(-1px);
	filter: brightness(1.06);
}

.ns-cc-btn-secondary {
	background: transparent;
	color: var(--ns-cc-accent);
}

.ns-cc-btn-secondary:hover {
	background: var(--ns-cc-accent);
	color: var(--ns-cc-accent-text);
}

.ns-cc-btn-link {
	background: transparent;
	border-color: transparent;
	color: var(--ns-cc-text);
	text-decoration: underline;
}

.ns-cc-btn:focus-visible,
.ns-cc-float:focus-visible,
.ns-cc-close:focus-visible {
	outline: 3px solid var(--ns-cc-text);
	outline-offset: 2px;
}

.ns-cc-float {
	position: fixed;
	z-index: 99980;
	left: 16px;
	bottom: 16px;
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--ns-cc-accent);
	color: var(--ns-cc-accent-text);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(74, 52, 38, 0.3);
}

.ns-cc-modal {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ns-cc-overlay {
	position: absolute;
	inset: 0;
	background: rgba(74, 52, 38, 0.55);
}

.ns-cc-panel {
	position: relative;
	width: 100%;
	max-width: 620px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px;
	background: var(--ns-cc-bg);
	color: var(--ns-cc-text);
	border-radius: 18px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.ns-cc-modal-title {
	margin: 0 32px 16px 0;
	font-size: 20px;
	color: var(--ns-cc-text);
}

.ns-cc-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ns-cc-text);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.ns-cc-cat {
	margin-bottom: 12px;
	padding: 14px 16px;
	border: 1px solid rgba(217, 119, 43, 0.35);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.55);
}

.ns-cc-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ns-cc-cat-name {
	font-weight: 700;
}

.ns-cc-cat-desc,
.ns-cc-cat-basis {
	margin: 6px 0 0;
	font-size: 13px;
}

.ns-cc-cat-basis {
	opacity: 0.75;
}

.ns-cc-modal-actions {
	margin-top: 18px;
}

.ns-cc-modal-link {
	margin: 14px 0 0;
	font-size: 13px;
}

.ns-cc-switch {
	position: relative;
	display: inline-block;
	flex-shrink: 0;
	width: 46px;
	height: 26px;
	margin: 0;
}

.ns-cc-switch input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.ns-cc-slider {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #cdb9a6;
	transition: background 0.2s;
	pointer-events: none;
}

.ns-cc-slider::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s;
}

.ns-cc-switch input:checked + .ns-cc-slider {
	background: var(--ns-cc-accent);
}

.ns-cc-switch input:checked + .ns-cc-slider::before {
	transform: translateX(20px);
}

.ns-cc-switch input:disabled + .ns-cc-slider {
	opacity: 0.6;
}

.ns-cc-switch input:focus-visible + .ns-cc-slider {
	outline: 3px solid var(--ns-cc-text);
	outline-offset: 2px;
}

iframe[data-ns-cc-category]:not([src]) {
	display: none;
}

.ns-cc-placeholder {
	padding: 24px;
	margin: 10px 0;
	text-align: center;
	background: #fff8f0;
	color: #4a3426;
	border: 1px dashed #d9772b;
	border-radius: 12px;
}

.ns-cc-table {
	width: 100%;
	margin: 0 0 20px;
	border-collapse: collapse;
}

.ns-cc-table th,
.ns-cc-table td {
	padding: 8px 10px;
	border: 1px solid #e8d3bd;
	text-align: left;
	vertical-align: top;
}

.ns-cc-table th {
	background: #fbeedd;
}

@media (max-width: 720px) {
	.ns-cc-banner {
		flex-direction: column;
		align-items: stretch;
		padding: 14px 16px;
		max-height: 80vh;
		overflow-y: auto;
	}

	.ns-cc-pos-card .ns-cc-banner {
		left: 10px;
		right: 10px;
		bottom: 10px;
		max-width: none;
	}

	.ns-cc-actions .ns-cc-btn {
		flex: 1 1 auto;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ns-cc-btn,
	.ns-cc-slider,
	.ns-cc-slider::before {
		transition: none;
	}
}
