/**
 * Embedded SamCart checkout — Concept C (Decision Atlas).
 * Scoped to .sg-checkout-adhd
 */

.sg-checkout-adhd {
	position: relative;
}

.sg-checkout-adhd::before {
	content: "";
	position: fixed;
	inset: auto -15% -20% -15%;
	height: 45vh;
	background:
		radial-gradient(ellipse 50% 60% at 20% 80%, rgba(155, 123, 184, 0.18), transparent 70%),
		radial-gradient(ellipse 45% 50% at 85% 70%, rgba(0, 114, 200, 0.14), transparent 65%);
	pointer-events: none;
	z-index: 0;
}

.sg-checkout-adhd > * {
	position: relative;
	z-index: 1;
}

.sg-checkout-adhd .checkout-hero {
	padding: clamp(2rem, 1.5rem + 2vw, 3rem) 0 1.5rem;
}

.sg-checkout-adhd .kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--blue-deep);
	margin: 0 0 1rem;
}

.sg-checkout-adhd .kicker i {
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: var(--purple);
	box-shadow: 0 0 0 0 rgba(155, 123, 184, 0.6);
	animation: sg-checkout-pulse 2.2s ease infinite;
}

@keyframes sg-checkout-pulse {
	70% {
		box-shadow: 0 0 0 12px rgba(155, 123, 184, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(155, 123, 184, 0);
	}
}

.sg-checkout-adhd h1 {
	font-family: var(--font-body);
	font-size: clamp(2.35rem, 1.55rem + 3.2vw, 3.65rem);
	line-height: 1.02;
	margin: 0 0 0.85rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	max-width: 16ch;
}

.sg-checkout-adhd h1 .paint {
	background: linear-gradient(120deg, var(--blue), var(--purple));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.sg-checkout-adhd .support {
	margin: 0;
	color: var(--ink-soft);
	font-size: 1.125rem;
	line-height: 1.65;
	max-width: 42rem;
}

.sg-checkout-adhd .checkout-grid {
	display: grid;
	gap: 1.75rem;
	align-items: start;
	padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
	min-width: 0;
}

/* Mobile: checkout form first, recap below */
.sg-checkout-adhd .checkout-embed-wrap {
	order: 1;
}

.sg-checkout-adhd .checkout-recap {
	order: 2;
}

@media (min-width: 64rem) {
	.sg-checkout-adhd .checkout-grid {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		gap: 2rem;
	}

	.sg-checkout-adhd .checkout-embed-wrap,
	.sg-checkout-adhd .checkout-recap {
		order: unset;
	}
}

.sg-checkout-adhd .checkout-recap {
	display: grid;
	gap: 1.35rem;
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: 1.1rem;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

@media (min-width: 48rem) {
	.sg-checkout-adhd .checkout-recap {
		padding: 1.75rem;
	}
}

.sg-checkout-adhd .checkout-recap__product {
	display: grid;
	gap: 1.1rem;
}

@media (min-width: 40rem) {
	.sg-checkout-adhd .checkout-recap__product {
		grid-template-columns: 7.5rem 1fr;
		align-items: start;
	}
}

.sg-checkout-adhd .checkout-recap__cover {
	width: 100%;
	max-width: 7.5rem;
	height: auto;
	border-radius: 0.45rem;
	box-shadow: 0 14px 36px rgba(37, 35, 32, 0.12);
}

.sg-checkout-adhd .checkout-recap__label {
	margin: 0 0 0.35rem;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--blue-deep);
}

.sg-checkout-adhd .checkout-recap__title {
	margin: 0 0 0.4rem;
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.sg-checkout-adhd .checkout-recap__meta {
	margin: 0 0 0.65rem;
	font-size: 1.0625rem;
	color: var(--ink-soft);
}

.sg-checkout-adhd .checkout-recap__price {
	margin: 0;
	font-size: clamp(2.2rem, 1.8rem + 1.5vw, 2.8rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	color: var(--blue-deep);
	line-height: 1;
}

.sg-checkout-adhd .checkout-recap__includes h3 {
	margin: 0 0 0.85rem;
	font-size: 1.1875rem;
	font-weight: 800;
	color: var(--ink);
}

.sg-checkout-adhd .checkout-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

.sg-checkout-adhd .checkout-list li {
	display: grid;
	gap: 0.2rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--line);
}

.sg-checkout-adhd .checkout-list li:first-child {
	padding-top: 0;
	border-top: 0;
}

.sg-checkout-adhd .checkout-list strong {
	font-size: 1.125rem;
	font-weight: 800;
	color: var(--ink);
}

.sg-checkout-adhd .checkout-list span {
	font-size: 1.0625rem;
	color: var(--ink-soft);
	line-height: 1.6;
}

.sg-checkout-adhd .checkout-recap__trust {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--ink-soft);
}

.sg-checkout-adhd .checkout-recap__back {
	margin: 0;
	font-size: 1.0625rem;
}

.sg-checkout-adhd .checkout-recap__back a {
	color: var(--blue);
	text-decoration: none;
}

.sg-checkout-adhd .checkout-recap__back a:hover {
	color: var(--blue-deep);
	text-decoration: underline;
}

.sg-checkout-adhd .checkout-embed-wrap {
	min-height: clamp(22rem, 60vh, 36rem);
	padding: 0;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
}

.sg-checkout-adhd .checkout-embed-wrap sc-checkout {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

/* SamCart shadow DOM host – prevent horizontal scroll on narrow screens */
@media (max-width: 47.99rem) {
	.sg-checkout-adhd .checkout-hero h1 {
		max-width: none;
	}

	.sg-checkout-adhd .checkout-recap {
		padding: 1.25rem;
	}

	.sg-checkout-adhd .checkout-recap__product {
		grid-template-columns: 5.5rem 1fr;
		gap: 0.85rem;
	}

	.sg-checkout-adhd .checkout-recap__cover {
		max-width: 5.5rem;
	}

	.sg-checkout-adhd .checkout-embed-wrap {
		min-height: auto;
		padding-bottom: 0.5rem;
	}
}

.sg-checkout-adhd .checkout-foot {
	padding: 1.25rem 0 clamp(2rem, 1.5rem + 2vw, 3rem);
	border-top: 1px solid var(--line);
}

.sg-checkout-adhd .disclaimer {
	margin: 0;
	font-size: 1.0625rem;
	color: var(--ink-soft);
	line-height: 1.65;
}
