.nscsp-root {
	--nscsp-primary: #2235DD;
	--nscsp-background: #FFFFFF;
	--nscsp-border: #D4DAFE;
	--nscsp-light: #EEF1FF;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	font-family: inherit;
}

.nscsp-root--open {
	display: block;
}

.nscsp-overlay {
	position: absolute;
	inset: 0;
	background: rgba(11, 16, 35, 0.36);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity 220ms ease;
}

.nscsp-root--open .nscsp-overlay {
	opacity: 1;
}

.nscsp-dialog {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(800px, calc(100vw - 48px));
	max-height: min(90vh, 720px);
	overflow: auto;
	background: var(--nscsp-background);
	border: 1px solid rgba(212, 218, 254, 0.92);
	border-radius: 22px;
	box-shadow: 0 28px 90px rgba(19, 28, 71, 0.22), 0 10px 28px rgba(19, 28, 71, 0.08);
	transform: translate(-50%, -48%) scale(0.975);
	opacity: 0;
	transition: opacity 220ms ease, transform 220ms ease;
	-webkit-overflow-scrolling: touch;
}

.nscsp-root--open .nscsp-dialog {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.nscsp-close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(212, 218, 254, 0.88);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #1d2543;
	box-shadow: 0 8px 22px rgba(22, 31, 70, 0.08);
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nscsp-close::before,
.nscsp-close::after {
	content: "";
	position: absolute;
	width: 15px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
}

.nscsp-close::before {
	transform: rotate(45deg);
}

.nscsp-close::after {
	transform: rotate(-45deg);
}

.nscsp-close:hover,
.nscsp-close:focus {
	background: var(--nscsp-light);
	border-color: var(--nscsp-border);
	box-shadow: 0 10px 24px rgba(34, 53, 221, 0.12);
	transform: translateY(-1px);
	outline: none;
}

.nscsp-body {
	display: grid;
	grid-template-columns: minmax(220px, 292px) minmax(0, 1fr);
	align-items: center;
	gap: clamp(28px, 4vw, 42px);
	padding: clamp(34px, 5vw, 46px);
	padding-right: clamp(40px, 6vw, 56px);
}

.nscsp-media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 286px;
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(238, 241, 255, 0.92), rgba(255, 255, 255, 0.96));
	border: 1px solid rgba(212, 218, 254, 0.78);
}

.nscsp-image {
	display: block;
	width: min(250px, 86%);
	max-height: 260px;
	height: auto;
	object-fit: contain;
}

.nscsp-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding-top: 6px;
}

.nscsp-kicker {
	align-self: flex-start;
	margin: 0 0 14px;
	padding: 7px 11px;
	border: 1px solid rgba(212, 218, 254, 0.88);
	border-radius: 999px;
	background: var(--nscsp-light);
	color: var(--nscsp-primary);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
}

.nscsp-title {
	margin: 0 0 10px;
	color: #111833;
	font-size: clamp(24px, 2.2vw, 30px);
	font-weight: 800;
	line-height: 1.16;
	letter-spacing: 0;
}

.nscsp-price {
	margin: 0 0 16px;
	color: #111833;
	font-size: 18px;
	font-weight: 750;
	line-height: 1.3;
}

.nscsp-price del {
	color: #7a849f;
	font-weight: 500;
}

.nscsp-price ins {
	color: #111833;
	text-decoration: none;
}

.nscsp-discount-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 8px;
	padding: 3px 8px;
	background: #e33a3a;
	color: #fff;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	vertical-align: middle;
}

.nscsp-price--discount ins {
	color: #e33a3a;
	font-weight: 800;
}

.nscsp-text {
	margin: 0 0 24px;
	color: #3d4764;
	font-size: 15.5px;
	line-height: 1.58;
}

.nscsp-text p {
	margin: 0;
}

.nscsp-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	width: min(100%, 300px);
}

.nscsp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	padding: 13px 18px;
	border: 1px solid transparent;
	border-radius: 12px;
	box-sizing: border-box;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nscsp-button:hover,
.nscsp-button:focus {
	transform: translateY(-1px);
	text-decoration: none;
	outline: none;
}

.nscsp-button--primary {
	background: var(--nscsp-primary);
	color: #fff;
	box-shadow: 0 12px 24px rgba(34, 53, 221, 0.18);
}

.nscsp-button--primary:hover,
.nscsp-button--primary:focus {
	background: #1c2fc8;
	color: #fff;
	box-shadow: 0 14px 30px rgba(34, 53, 221, 0.24);
}

.nscsp-button--secondary {
	background: #fff;
	border-color: var(--nscsp-border);
	color: var(--nscsp-primary);
	box-shadow: 0 4px 14px rgba(34, 53, 221, 0.06);
}

.nscsp-button--secondary:hover,
.nscsp-button--secondary:focus {
	background: var(--nscsp-light);
	border-color: var(--nscsp-primary);
	color: var(--nscsp-primary);
	box-shadow: 0 8px 18px rgba(34, 53, 221, 0.09);
}

.nscsp-button--ghost {
	background: transparent;
	border-color: transparent;
	color: #53607c;
	min-height: 44px;
	box-shadow: none;
}

.nscsp-button--ghost:hover,
.nscsp-button--ghost:focus {
	background: rgba(238, 241, 255, 0.58);
	color: #25304d;
}

.nscsp-button:disabled {
	opacity: 0.72;
	cursor: wait;
	transform: none;
}

.nscsp-cart-pulse {
	animation: nscsp-cart-pulse 680ms ease;
}

@keyframes nscsp-cart-pulse {
	0% {
		transform: scale(1);
	}

	35% {
		transform: scale(1.055);
	}

	100% {
		transform: scale(1);
	}
}

@media (max-width: 1024px) {
	.nscsp-dialog {
		width: min(760px, calc(100vw - 40px));
	}

	.nscsp-body {
		grid-template-columns: minmax(210px, 268px) minmax(0, 1fr);
		gap: 30px;
		padding: 36px;
		padding-right: 48px;
	}

	.nscsp-media {
		min-height: 260px;
	}

	.nscsp-image {
		width: min(230px, 84%);
		max-height: 240px;
	}
}

@media (max-width: 767px) {
	.nscsp-dialog {
		left: 50%;
		top: 50%;
		right: auto;
		bottom: auto;
		width: min(95vw, 430px);
		max-height: 90vh;
		border-radius: 22px;
		transform: translate(-50%, -47%) scale(0.975);
	}

	.nscsp-root--open .nscsp-dialog {
		transform: translate(-50%, -50%) scale(1);
	}

	.nscsp-close {
		top: 14px;
		right: 14px;
		width: 38px;
		height: 38px;
	}

	.nscsp-body {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 26px;
		padding-top: 62px;
	}

	.nscsp-media {
		min-height: 210px;
		border-radius: 18px;
	}

	.nscsp-image {
		width: min(215px, 78vw);
		max-height: 220px;
	}

	.nscsp-kicker {
		margin-bottom: 12px;
		font-size: 12.5px;
	}

	.nscsp-title {
		font-size: 24px;
		line-height: 1.18;
	}

	.nscsp-price {
		margin-bottom: 14px;
		font-size: 17px;
	}

	.nscsp-text {
		margin-bottom: 22px;
		font-size: 15px;
	}

	.nscsp-actions {
		width: 100%;
		gap: 9px;
	}

	.nscsp-button {
		min-height: 52px;
		padding: 14px 16px;
	}

	.nscsp-button--ghost {
		min-height: 46px;
	}
}

@media (max-width: 414px) {
	.nscsp-dialog {
		width: 94vw;
	}

	.nscsp-body {
		padding: 24px;
		padding-top: 60px;
		gap: 20px;
	}

	.nscsp-media {
		min-height: 198px;
	}

	.nscsp-image {
		width: min(205px, 76vw);
		max-height: 210px;
	}
}

@media (max-width: 375px) {
	.nscsp-dialog {
		width: 94vw;
		max-height: 90vh;
		border-radius: 20px;
	}

	.nscsp-body {
		padding: 22px;
		padding-top: 58px;
		gap: 18px;
	}

	.nscsp-close {
		top: 12px;
		right: 12px;
		width: 36px;
		height: 36px;
	}

	.nscsp-media {
		min-height: 186px;
	}

	.nscsp-image {
		width: min(190px, 74vw);
		max-height: 198px;
	}

	.nscsp-title {
		font-size: 22px;
	}
}

@media (max-width: 340px) {
	.nscsp-dialog {
		width: 94vw;
		border-radius: 18px;
	}

	.nscsp-body {
		padding: 18px;
		padding-top: 54px;
	}

	.nscsp-media {
		min-height: 166px;
	}

	.nscsp-image {
		width: min(176px, 72vw);
		max-height: 182px;
	}

	.nscsp-kicker {
		font-size: 12px;
	}

	.nscsp-title {
		font-size: 21px;
	}

	.nscsp-button {
		min-height: 50px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nscsp-overlay,
	.nscsp-dialog,
	.nscsp-button,
	.nscsp-close {
		transition: none;
	}

	.nscsp-cart-pulse {
		animation: none;
	}
}
