.nnn-cs-btn {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 2147483000;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #1a1a1a;
	color: #c8a86b;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nnn-cs-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #e23b3b;
	color: #fff;
	font-weight: 700;
	font-size: 11px;
	line-height: 18px;
	box-sizing: border-box;
	pointer-events: none;
	box-shadow: 0 0 0 2px #1a1a1a;
}

.nnn-cs-badge.is-on {
	display: inline-flex;
}

.nnn-cs-btn:hover,
.nnn-cs-btn:focus {
	background: #111;
	color: #e0c48a;
	outline: none;
}

.nnn-cs-overlay {
	position: fixed;
	left: -9999px;
	top: 0;
	z-index: 2147483000;
	display: flex;
	flex-direction: column;
	width: 360px;
	height: 480px;
	overflow: hidden;
	box-sizing: border-box;
	opacity: 0;
	pointer-events: none;
	background: transparent;
}

.nnn-cs-overlay.is-open {
	inset: 0;
	left: 0;
	width: auto;
	height: auto;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 1;
	pointer-events: auto;
	background: rgba(0, 0, 0, 0.58);
}

.nnn-cs-panel {
	display: flex;
	flex-direction: column;
	width: min(1180px, calc(100vw - 40px));
	height: min(calc(100dvh - 32px), 920px);
	max-height: 100%;
	min-height: 0;
	background: #f6f3ee;
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
	overflow: hidden;
}

.nnn-cs-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-shrink: 0;
	height: 48px;
	padding: 0 16px;
	background: #1a1a1a;
	color: #c8a86b;
	font-size: 15px;
}

.nnn-cs-close {
	border: 1px solid #c8a86b;
	background: transparent;
	color: #c8a86b;
	border-radius: 6px;
	padding: 4px 12px;
	cursor: pointer;
	font-size: 13px;
}

.nnn-cs-close:hover,
.nnn-cs-close:focus {
	background: #c8a86b;
	color: #111;
	outline: none;
}

.nnn-cs-frame-wrap {
	display: flex;
	flex: 1 1 0;
	min-height: 240px;
	height: 0;
	width: 100%;
}

.nnn-cs-overlay.is-open .nnn-cs-frame-wrap {
	min-height: 0;
}

.nnn-cs-frame {
	flex: 1 1 0;
	min-height: 240px;
	height: 0;
	width: 100%;
	border: 0;
	background: #f6f3ee;
}

.nnn-cs-overlay.is-open .nnn-cs-frame {
	min-height: 0;
	height: 100%;
}

@media (max-width: 900px) {
	.nnn-cs-btn {
		right: 14px;
		bottom: 14px;
		width: 48px;
		height: 48px;
	}

	.nnn-cs-overlay.is-open {
		padding: 0;
		height: 100svh;
		max-height: 100svh;
	}

	.nnn-cs-panel {
		width: 100%;
		height: 100%;
		max-height: 100%;
		border-radius: 0;
	}
}
