:root {
	--ns-checkout-primary: #3B1E54;
	--ns-checkout-secondary: #F4B6A6;
	--ns-checkout-soft: #FDF1ED;
	--ns-checkout-text: #111111;
	--ns-checkout-white: #FFFFFF;
	--ns-checkout-muted: #625d65;
	--ns-checkout-border: #e8e0e9;
}

body.ns-checkout-body {
	margin: 0;
	background: var(--ns-checkout-soft);
	color: var(--ns-checkout-text);
	font-family: 'Plus Jakarta Sans', sans-serif;
	-webkit-font-smoothing: antialiased;
}

.ns-checkout-body *,
.ns-checkout-body *::before,
.ns-checkout-body *::after {
	box-sizing: border-box;
}

.ns-checkout-document {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.ns-checkout-body [hidden] { display: none !important; }

.ns-checkout-header {
	width: 100%;
	min-height: 74px;
	padding: 11px clamp(18px, 5vw, 72px);
	background: var(--ns-checkout-white);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 18px;
	border-bottom: 1px solid #eee9f0;
}

.ns-checkout-brand {
	width: fit-content;
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var(--ns-checkout-primary);
	font: 800 19px/1 'Outfit', sans-serif;
	text-decoration: none;
}

.ns-checkout-brand:hover,
.ns-checkout-brand:focus { color: var(--ns-checkout-primary); }

.ns-checkout-brand .custom-logo-link {
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 0;
}

.ns-checkout-brand img.custom-logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.ns-checkout-header-center {
	color: var(--ns-checkout-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
}

.ns-checkout-header-back {
	justify-self: end;
	color: var(--ns-checkout-primary);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.ns-checkout-header-back:hover,
.ns-checkout-header-back:focus,
.ns-checkout-footer a:hover,
.ns-checkout-footer a:focus,
.ns-checkout-terms a:hover,
.ns-checkout-terms a:focus { text-decoration: underline; }

.ns-checkout-main {
	width: min(1120px, calc(100% - 40px));
	flex: 1 0 auto;
	margin: 0 auto;
	padding: clamp(24px, 3.2vw, 42px) 0 clamp(42px, 5vw, 64px);
}

.ns-checkout-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
	align-items: start;
	gap: clamp(18px, 2.4vw, 28px);
}

.ns-checkout-card {
	min-width: 0;
	border: 1px solid #f0dfdc;
	border-radius: 20px;
	background: var(--ns-checkout-white);
	box-shadow: 0 12px 32px rgba(59, 30, 84, .055);
}

.ns-checkout-form-card { padding: clamp(24px, 3.2vw, 36px); }

.ns-checkout-eyebrow {
	margin: 0 0 11px;
	color: #765c88;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
}

.ns-checkout-form-card h1,
.ns-checkout-unavailable h1,
.ns-order-result h1 {
	margin: 0;
	color: var(--ns-checkout-primary);
	font: 700 clamp(30px, 3.4vw, 37px)/1.14 'Outfit', sans-serif;
	letter-spacing: -.025em;
}

.ns-checkout-intro {
	max-width: 580px;
	margin: 12px 0 25px;
	color: var(--ns-checkout-muted);
	font-size: 14px;
	line-height: 1.7;
}

.ns-checkout-section-title {
	margin: 0 0 16px;
	color: var(--ns-checkout-primary);
	font: 700 19px/1.3 'Outfit', sans-serif;
}

.ns-checkout-state-note {
	margin: 0 0 19px;
	padding: 11px 13px;
	border: 1px solid #f0d9d3;
	border-radius: 11px;
	background: #fff9f7;
	color: #594b55;
	font-size: 11px;
	line-height: 1.55;
}

.ns-checkout-state-note--preview {
	border-color: #e5dced;
	background: #f8f4fa;
}

.ns-checkout-form,
.ns-checkout-preview-form { display: grid; gap: 18px; }

.ns-checkout-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
}

.ns-checkout-field label span[aria-hidden="true"] { color: #a34e5b; }

.ns-checkout-field input {
	width: 100%;
	min-height: 54px;
	padding: 14px 15px;
	border: 1px solid #d9d0de;
	border-radius: 11px;
	background: #fff;
	color: var(--ns-checkout-text);
	font: 500 14px/1.4 'Plus Jakarta Sans', sans-serif;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.ns-checkout-field input:hover { border-color: #bca8ca; }
.ns-checkout-field input:focus { border-color: var(--ns-checkout-primary); outline: 0; box-shadow: 0 0 0 3px rgba(59, 30, 84, .14); }
.ns-checkout-field input[aria-invalid="true"] { border-color: #a34e5b; }
.ns-checkout-field input:disabled { background: #fcfafc; color: #77717b; cursor: default; }

.ns-checkout-field-help {
	margin: 7px 0 0;
	color: var(--ns-checkout-muted);
	font-size: 11px;
	line-height: 1.5;
}

.ns-checkout-field-error {
	margin: 6px 0 0;
	color: #8b2735;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
}

.ns-checkout-field-error:empty { display: none; }

.ns-checkout-optional {
	margin-left: 5px;
	color: #77717b;
	font-size: 11px;
	font-weight: 500;
}

.ns-checkout-terms {
	display: grid;
	grid-template-columns: 19px minmax(0, 1fr);
	align-items: start;
	gap: 10px;
	color: #514b54;
	font-size: 12px;
	line-height: 1.65;
}

.ns-checkout-terms input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--ns-checkout-primary);
}

.ns-checkout-terms input:disabled { opacity: .75; }

.ns-checkout-terms a { color: var(--ns-checkout-primary); font-weight: 700; }

.ns-checkout-honeypot {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.ns-checkout-feedback {
	min-height: 0;
	margin: -4px 0 0;
	color: #7e303b;
	font-size: 12px;
	line-height: 1.55;
}

.ns-checkout-feedback:empty { display: none; }
.ns-checkout-feedback a { color: var(--ns-checkout-primary); font-weight: 700; }

.ns-checkout-submit,
.ns-order-download {
	width: 100%;
	min-height: 54px;
	padding: 14px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--ns-checkout-primary);
	color: #fff;
	font: 700 14px/1.3 'Plus Jakarta Sans', sans-serif;
	text-align: center;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	cursor: pointer;
	transition: background-color .16s ease, transform .16s ease;
}

.ns-checkout-submit:hover,
.ns-order-download:hover { background: #4b2b65; color: #fff; transform: translateY(-1px); }
.ns-checkout-submit:focus-visible,
.ns-order-download:focus-visible,
.ns-order-refresh:focus-visible,
.ns-checkout-header a:focus-visible,
.ns-checkout-footer a:focus-visible { outline: 3px solid #d98e79; outline-offset: 3px; }
.ns-checkout-submit:disabled { cursor: not-allowed; opacity: .78; transform: none; }
.ns-checkout-submit.is-loading:disabled { cursor: wait; }
.ns-checkout-submit.is-loading::before {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	content: '';
	animation: ns-checkout-spin .8s linear infinite;
}

.ns-checkout-payment-note {
	margin: -4px 0 0;
	color: var(--ns-checkout-muted);
	font-size: 11px;
	line-height: 1.55;
	text-align: center;
}

.ns-checkout-summary {
	position: sticky;
	top: 18px;
	padding: clamp(20px, 2.4vw, 28px);
	background: var(--ns-checkout-soft);
	border-color: #f0d9d3;
}

.ns-checkout-summary h2 {
	margin: 0 0 18px;
	color: var(--ns-checkout-primary);
	font: 700 21px/1.25 'Outfit', sans-serif;
}

.ns-checkout-product {
	min-width: 0;
	padding-bottom: 18px;
	border-bottom: 1px solid #f0dfdc;
}

.ns-checkout-cover {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 1px solid #eee5ef;
	border-radius: 12px;
	background: #faf7fb;
	object-fit: contain;
	object-position: center;
}

.ns-checkout-bundle-covers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 7px;
}

.ns-checkout-bundle-covers img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 1px solid #eee5ef;
	border-radius: 6px;
	object-fit: contain;
}

.ns-checkout-product.ns-checkout-product--no-cover { padding-top: 2px; }

.ns-checkout-product-details { padding-top: 14px; }

.ns-checkout-product h3 {
	margin: 3px 0 6px;
	color: var(--ns-checkout-text);
	font: 700 18px/1.3 'Outfit', sans-serif;
}

.ns-checkout-product p {
	margin: 0;
	color: var(--ns-checkout-muted);
	font-size: 11px;
	line-height: 1.55;
}

.ns-checkout-product .ns-checkout-product-type {
	color: #765c88;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ns-checkout-price-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	padding: 15px 0;
	color: #59535d;
	font-size: 13px;
}

.ns-checkout-price-row strong { color: var(--ns-checkout-text); font-weight: 700; white-space: nowrap; }
.ns-checkout-total { margin-top: 2px; border-top: 1px solid #f0dfdc; color: var(--ns-checkout-primary); font-size: 15px; }
.ns-checkout-total strong { color: var(--ns-checkout-primary); font-size: 21px; font-weight: 800; }
.ns-checkout-summary-note { margin: 4px 0 0; color: var(--ns-checkout-muted); font-size: 11px; line-height: 1.6; }

.ns-checkout-unavailable,
.ns-order-result {
	width: min(620px, 100%);
	margin: 0 auto;
	padding: clamp(30px, 6vw, 60px);
	border: 1px solid var(--ns-checkout-border);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 14px 42px rgba(59, 30, 84, .055);
	text-align: center;
}

.ns-order-result-icon {
	width: 58px;
	height: 58px;
	margin: 0 auto 22px;
	border-radius: 50%;
	background: var(--ns-checkout-soft);
	color: var(--ns-checkout-primary);
	display: grid;
	place-items: center;
}

.ns-order-result-icon span { width: 14px; height: 14px; border: 2px solid #c8b6d2; border-top-color: var(--ns-checkout-primary); border-radius: 50%; animation: ns-checkout-spin .8s linear infinite; }
.ns-order-result.is-paid .ns-order-result-icon span { width: 22px; height: 12px; border: 0; border-left: 3px solid #34724d; border-bottom: 3px solid #34724d; border-radius: 0; transform: rotate(-45deg) translate(2px, -1px); animation: none; }
.ns-order-result.is-test .ns-order-result-icon span { width: 22px; height: 12px; border: 0; border-left: 3px solid #34724d; border-bottom: 3px solid #34724d; border-radius: 0; transform: rotate(-45deg) translate(2px, -1px); animation: none; }
.ns-order-result.is-failed .ns-order-result-icon span { width: 3px; height: 23px; border: 0; border-radius: 3px; background: #a34e5b; animation: none; }
.ns-order-result.is-failed .ns-order-result-icon span::after { content: ''; position: absolute; width: 4px; height: 4px; margin-top: 27px; border-radius: 50%; background: #a34e5b; }

@keyframes ns-checkout-spin { to { transform: rotate(360deg); } }

.ns-checkout-unavailable > p:not(.ns-checkout-eyebrow),
.ns-order-result-message {
	max-width: 470px;
	margin: 17px auto 0;
	color: var(--ns-checkout-muted);
	font-size: 14px;
	line-height: 1.75;
}

.ns-checkout-back-link {
	min-height: 48px;
	margin-top: 26px;
	padding: 13px 22px;
	border-radius: 999px;
	background: var(--ns-checkout-primary);
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.ns-checkout-back-link:hover { background: #4b2b65; color: #fff; }
.ns-checkout-support { margin: 25px 0 0; color: var(--ns-checkout-muted); font-size: 12px; }
.ns-checkout-support a { color: var(--ns-checkout-primary); font-weight: 700; }

.ns-order-result-details {
	margin: 24px 0 0;
	padding: 17px;
	border-radius: 13px;
	background: #faf8fb;
	color: #4f4854;
	font-size: 12px;
	line-height: 1.8;
}

.ns-order-download { margin-top: 24px; }
.ns-order-refresh {
	min-height: 45px;
	margin-top: 18px;
	padding: 10px 18px;
	border: 1px solid #cfc1d7;
	border-radius: 999px;
	background: #fff;
	color: var(--ns-checkout-primary);
	font: 700 12px 'Plus Jakarta Sans', sans-serif;
	cursor: pointer;
}
.ns-order-refresh:hover { background: var(--ns-checkout-soft); }
.ns-order-back-link { display: inline-block; margin: 18px 0 0; color: var(--ns-checkout-primary); font-size: 12px; font-weight: 700; }
.ns-order-result.is-paid .ns-order-refresh { display: none; }
.ns-order-result.is-test .ns-order-refresh { display: none; }

.ns-checkout-footer {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
	padding: 20px 0 26px;
	border-top: 1px solid #eee9f0;
	color: #77717b;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	font-size: 11px;
}

.ns-checkout-footer p { margin: 0; }
.ns-checkout-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.ns-checkout-footer a { color: var(--ns-checkout-primary); font-weight: 600; text-decoration: none; }

@media (max-width: 820px) {
	.ns-checkout-main { width: min(700px, calc(100% - 36px)); padding: 28px 0 42px; }
	.ns-checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.ns-checkout-summary { position: static; order: 0; }
	.ns-checkout-form-card { order: 1; }
	.ns-checkout-header { min-height: 74px; padding-right: 22px; padding-left: 22px; }
}

@media (max-width: 680px) {
	.ns-checkout-header { min-height: 68px; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 18px; }
	.ns-checkout-brand { gap: 8px; font-size: 17px; }
	.ns-checkout-brand img.custom-logo { width: 42px; height: 42px; }
	.ns-checkout-header-center { display: none; }
	.ns-checkout-header-back { font-size: 12px; }
	.ns-checkout-main { width: min(500px, calc(100% - 28px)); padding: 23px 0 34px; }
	.ns-checkout-layout { display: flex; flex-direction: column; gap: 14px; }
	.ns-checkout-summary { position: static; order: 0; width: 100%; padding: 20px; }
	.ns-checkout-form-card { order: 1; width: 100%; padding: 23px 19px; }
	.ns-checkout-summary h2 { margin-bottom: 17px; font-size: 19px; }
	.ns-checkout-product { padding-bottom: 15px; }
	.ns-checkout-product-details { padding-top: 12px; }
	.ns-checkout-product h3 { font-size: 16px; }
	.ns-checkout-price-row { padding: 13px 0; }
	.ns-checkout-intro { margin: 11px 0 23px; font-size: 13px; }
	.ns-checkout-form,
	.ns-checkout-preview-form { gap: 16px; }
	.ns-checkout-field input { min-height: 52px; }
	.ns-checkout-submit { width: 100%; }
	.ns-checkout-footer { width: calc(100% - 32px); align-items: flex-start; flex-direction: column; gap: 11px; padding-top: 17px; }
	.ns-checkout-footer nav { gap: 14px; }
	.ns-checkout-unavailable,
	.ns-order-result { padding: 30px 22px; border-radius: 20px; }
}

@media (max-width: 360px) {
	.ns-checkout-brand { font-size: 15px; }
	.ns-checkout-brand img.custom-logo { width: 38px; height: 38px; }
	.ns-checkout-header-back { font-size: 11px; }
	.ns-checkout-main { width: calc(100% - 22px); }
	.ns-checkout-form-card { padding: 21px 16px; }
	.ns-checkout-terms { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
	.ns-checkout-body *,
	.ns-checkout-body *::before,
	.ns-checkout-body *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
