/**
 * SleepBaby Amazon Bedtime Box
 * A self-contained moonlit/heirloom unit with no external assets.
 */

.sabb-box {
	--sabb-ink: #fffaf0;
	--sabb-muted: #ded9ee;
	--sabb-night: #111126;
	--sabb-plum: #271a43;
	--sabb-violet: #7f6fcb;
	--sabb-gold: #f2cf84;
	--sabb-gold-deep: #c99a46;
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	width: min(100%, 880px);
	margin: clamp(2.75rem, 7vw, 5.5rem) auto;
	padding: 1px;
	overflow: hidden;
	color: var(--sabb-ink);
	background:
		linear-gradient(135deg, rgba(255, 250, 225, 0.92), rgba(242, 207, 132, 0.4) 30%, rgba(139, 119, 205, 0.72) 67%, rgba(255, 250, 225, 0.82)) border-box;
	border: 0;
	border-radius: 28px;
	box-shadow:
		0 28px 70px rgba(22, 12, 48, 0.24),
		0 8px 22px rgba(22, 12, 48, 0.18);
	font-family: inherit;
	line-height: 1.55;
	text-align: left;
	clear: both;
}

.sabb-box,
.sabb-box *,
.sabb-box *::before,
.sabb-box *::after {
	box-sizing: border-box;
}

.sabb-box::before {
	position: absolute;
	inset: 1px;
	z-index: -2;
	content: "";
	background:
		radial-gradient(circle at 88% 10%, rgba(229, 214, 255, 0.19), transparent 23%),
		radial-gradient(circle at 6% 86%, rgba(249, 215, 149, 0.12), transparent 26%),
		linear-gradient(140deg, var(--sabb-night) 2%, #18142f 43%, var(--sabb-plum) 100%);
	border-radius: 27px;
}

.sabb-box::after {
	position: absolute;
	inset: 11px;
	z-index: -1;
	pointer-events: none;
	content: "";
	border: 1px solid rgba(242, 207, 132, 0.33);
	border-radius: 20px;
}

.sabb-box__glow {
	position: absolute;
	top: -120px;
	right: -86px;
	z-index: -1;
	width: 310px;
	height: 310px;
	pointer-events: none;
	background: radial-gradient(circle, rgba(195, 176, 255, 0.22), rgba(195, 176, 255, 0) 68%);
	border-radius: 50%;
	animation: sabb-breathe 8s ease-in-out infinite alternate;
}

.sabb-box__content {
	position: relative;
	z-index: 2;
	padding: clamp(2rem, 5.5vw, 4.15rem) clamp(1.35rem, 6.4vw, 5.2rem) clamp(2rem, 5vw, 3.6rem);
}

.sabb-box__eyebrow {
	margin: 0 0 0.85rem !important;
	color: var(--sabb-gold) !important;
	font-family: inherit;
	font-size: clamp(0.73rem, 1.8vw, 0.84rem) !important;
	font-weight: 750 !important;
	letter-spacing: 0.16em;
	line-height: 1.35 !important;
	text-transform: uppercase;
}

.sabb-box__heading {
	max-width: 700px;
	margin: 0 !important;
	padding: 0 !important;
	color: #fffaf0 !important;
	background: none !important;
	border: 0 !important;
	font-family: Georgia, "Times New Roman", serif !important;
	font-size: clamp(1.7rem, 4.5vw, 2.9rem) !important;
	font-style: normal !important;
	font-weight: 500 !important;
	letter-spacing: -0.025em;
	line-height: 1.08 !important;
	text-wrap: balance;
}

.sabb-box__copy {
	max-width: 640px;
	margin: 1.15rem 0 0 !important;
	color: var(--sabb-muted) !important;
	font-family: inherit;
	font-size: clamp(1rem, 2.3vw, 1.14rem) !important;
	font-weight: 450;
	letter-spacing: 0;
	line-height: 1.65 !important;
}

.sabb-box__action {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.8rem 1rem;
	margin-top: 1.65rem;
}

.sabb-box__button,
.sabb-box__button:link,
.sabb-box__button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.72rem;
	min-height: 50px;
	margin: 0;
	padding: 0.83rem 1.2rem 0.88rem 1.35rem;
	color: #171126 !important;
	background: linear-gradient(180deg, #fff4d6 0%, var(--sabb-gold) 100%) !important;
	border: 1px solid rgba(255, 251, 235, 0.94) !important;
	border-radius: 999px;
	box-shadow:
		0 8px 22px rgba(3, 2, 15, 0.29),
		inset 0 -1px 0 rgba(117, 70, 17, 0.16);
	font-family: inherit;
	font-size: clamp(0.94rem, 2vw, 1.02rem) !important;
	font-style: normal;
	font-weight: 780 !important;
	letter-spacing: -0.01em;
	line-height: 1.2 !important;
	text-decoration: none !important;
	text-shadow: none;
	transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.sabb-box__button:hover {
	color: #171126 !important;
	background: linear-gradient(180deg, #fff9e9 0%, #f7d998 100%) !important;
	box-shadow:
		0 11px 28px rgba(3, 2, 15, 0.35),
		inset 0 -1px 0 rgba(117, 70, 17, 0.12);
	transform: translateY(-2px);
}

.sabb-box__button:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 4px;
	box-shadow: 0 0 0 7px rgba(127, 111, 203, 0.8);
}

.sabb-box__arrow {
	display: inline-grid;
	width: 1.75rem;
	height: 1.75rem;
	place-items: center;
	color: #fff8e5;
	background: #211836;
	border-radius: 50%;
	font-size: 0.92rem;
	line-height: 1;
}

.sabb-box__link-note {
	margin: 0 !important;
	color: #e7e1f2 !important;
	font-family: inherit;
	font-size: 0.78rem !important;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.45 !important;
}

.sabb-box__link-note strong {
	color: #fff5d9;
	font-weight: 750;
}

.sabb-box__disclosure,
.sabb-box__safety {
	margin: 1.25rem 0 0 !important;
	color: #bfb8d2 !important;
	font-family: inherit;
	font-size: 0.73rem !important;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.5 !important;
}

.sabb-box__safety {
	margin-top: 0.28rem !important;
}

.sabb-box__ornament {
	position: absolute;
	top: clamp(1.2rem, 3vw, 2rem);
	right: clamp(1.2rem, 3vw, 2rem);
	z-index: 1;
	width: 76px;
	height: 76px;
	pointer-events: none;
	opacity: 0.9;
}

.sabb-box__moon {
	position: absolute;
	top: 8px;
	right: 7px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	box-shadow: -10px 7px 0 1px var(--sabb-gold);
	filter: drop-shadow(0 0 11px rgba(242, 207, 132, 0.35));
}

.sabb-box__star {
	position: absolute;
	width: 4px;
	height: 4px;
	background: #fff8db;
	border-radius: 50%;
	box-shadow: 0 0 8px rgba(255, 248, 219, 0.88);
}

.sabb-box__star--one {
	top: 9px;
	left: 12px;
}

.sabb-box__star--two {
	top: 41px;
	left: 21px;
	width: 3px;
	height: 3px;
}

.sabb-box__star--three {
	right: 1px;
	bottom: 8px;
	width: 3px;
	height: 3px;
}

@keyframes sabb-breathe {
	from {
		opacity: 0.72;
		transform: scale(0.96);
	}

	to {
		opacity: 1;
		transform: scale(1.05);
	}
}

@media (max-width: 640px) {
	.sabb-box {
		width: calc(100% - 1rem);
		margin-top: 3rem;
		margin-bottom: 3rem;
		border-radius: 23px;
	}

	.sabb-box::before {
		border-radius: 22px;
	}

	.sabb-box::after {
		inset: 8px;
		border-radius: 16px;
	}

	.sabb-box__content {
		padding-top: 3.75rem;
	}

	.sabb-box__ornament {
		top: 0.75rem;
		right: 0.9rem;
		transform: scale(0.78);
		transform-origin: top right;
	}

	.sabb-box__action {
		display: block;
	}

	.sabb-box__button,
	.sabb-box__button:link,
	.sabb-box__button:visited {
		width: 100%;
		padding-right: 0.85rem;
		padding-left: 1.1rem;
		text-align: center;
	}

	.sabb-box__link-note {
		margin-top: 0.7rem !important;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sabb-box__glow {
		animation: none;
	}

	.sabb-box__button,
	.sabb-box__button:link,
	.sabb-box__button:visited {
		transition: none;
	}

	.sabb-box__button:hover {
		transform: none;
	}
}

@media (forced-colors: active) {
	.sabb-box {
		border: 2px solid CanvasText;
	}

	.sabb-box__button,
	.sabb-box__button:link,
	.sabb-box__button:visited {
		border: 2px solid LinkText !important;
	}
}

