/*
 * Release 3.1.6 final-pixel invariants.
 *
 * This late layer removes two runtime/order dependencies exposed by the live
 * rendered site: authored article recommendation buttons must not inherit the
 * prose-link foreground, and the footer logo must not inherit the legacy
 * white-silhouette filter on non-article routes. No destination is rewritten.
 */

/* Article-specific Amazon modules: own every visible pixel and interaction state. */
.sleepbaby-affiliate-editorial-v3106.sb-affiliate-page--article .entry-content :is(
	.sb-amazon-module,
	.sb-amazon-module-luxury,
	.sb-amazon-luxury,
	[data-sb-component="article-specific-amazon-recommendation"]
) a:is([data-sb-contrast-role="amazon-button"], [href*="sleepbaby-20"]):is(:link, :visited, :hover, :focus, :focus-visible, :active) {
	display: inline-flex !important;
	min-height: 50px !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: .85rem 1.35rem !important;
	border: 2px solid #6b491c !important;
	border-radius: 999px !important;
	color: #fffaf0 !important;
	-webkit-text-fill-color: #fffaf0 !important;
	background: linear-gradient(135deg, #6b491c 0%, #49300f 100%) !important;
	background-image: linear-gradient(135deg, #6b491c 0%, #49300f 100%) !important;
	box-shadow: 0 8px 20px rgba(63, 39, 10, .22) !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	text-align: center !important;
	text-decoration: none !important;
	text-decoration-color: currentColor !important;
	text-shadow: none !important;
	mix-blend-mode: normal !important;
	opacity: 1 !important;
}

.sleepbaby-affiliate-editorial-v3106.sb-affiliate-page--article .entry-content :is(
	.sb-amazon-module,
	.sb-amazon-module-luxury,
	.sb-amazon-luxury,
	[data-sb-component="article-specific-amazon-recommendation"]
) a:is([data-sb-contrast-role="amazon-button"], [href*="sleepbaby-20"]):is(:link, :visited, :hover, :focus, :focus-visible, :active) :is(span, strong, em, b, i, small) {
	color: #fffaf0 !important;
	-webkit-text-fill-color: #fffaf0 !important;
	background: transparent !important;
	background-image: none !important;
	text-shadow: none !important;
	opacity: 1 !important;
}

.sleepbaby-affiliate-editorial-v3106.sb-affiliate-page--article .entry-content :is(
	.sb-amazon-module,
	.sb-amazon-module-luxury,
	.sb-amazon-luxury,
	[data-sb-component="article-specific-amazon-recommendation"]
) a:is([data-sb-contrast-role="amazon-button"], [href*="sleepbaby-20"])::before,
.sleepbaby-affiliate-editorial-v3106.sb-affiliate-page--article .entry-content :is(
	.sb-amazon-module,
	.sb-amazon-module-luxury,
	.sb-amazon-luxury,
	[data-sb-component="article-specific-amazon-recommendation"]
) a:is([data-sb-contrast-role="amazon-button"], [href*="sleepbaby-20"])::after {
	content: none !important;
	display: none !important;
	color: inherit !important;
	-webkit-text-fill-color: currentColor !important;
	background: none !important;
	background-image: none !important;
	box-shadow: none !important;
	filter: none !important;
	mix-blend-mode: normal !important;
	opacity: 1 !important;
}

.sleepbaby-affiliate-editorial-v3106.sb-affiliate-page--article .entry-content :is(
	[data-sb-amazon-role="premium"],
	.sb-amazon-module-luxury,
	.sb-amazon-luxury
) a:is([data-sb-contrast-role="amazon-button"], [href*="sleepbaby-20"]):is(:link, :visited, :hover, :focus, :focus-visible, :active) {
	border-color: #765781 !important;
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	background: linear-gradient(135deg, #765781 0%, #432c50 100%) !important;
	background-image: linear-gradient(135deg, #765781 0%, #432c50 100%) !important;
	box-shadow: 0 8px 20px rgba(57, 35, 65, .24) !important;
}

.sleepbaby-affiliate-editorial-v3106.sb-affiliate-page--article .entry-content :is(
	[data-sb-amazon-role="premium"],
	.sb-amazon-module-luxury,
	.sb-amazon-luxury
) a:is([data-sb-contrast-role="amazon-button"], [href*="sleepbaby-20"]):is(:link, :visited, :hover, :focus, :focus-visible, :active) :is(span, strong, em, b, i, small) {
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
}

.sleepbaby-affiliate-editorial-v3106.sb-affiliate-page--article .entry-content :is(
	.sb-amazon-module,
	.sb-amazon-module-luxury,
	.sb-amazon-luxury,
	[data-sb-component="article-specific-amazon-recommendation"]
) a:is([data-sb-contrast-role="amazon-button"], [href*="sleepbaby-20"]):hover {
	background: linear-gradient(135deg, #795424 0%, #543814 100%) !important;
	background-image: linear-gradient(135deg, #795424 0%, #543814 100%) !important;
}

.sleepbaby-affiliate-editorial-v3106.sb-affiliate-page--article .entry-content :is(
	[data-sb-amazon-role="premium"],
	.sb-amazon-module-luxury,
	.sb-amazon-luxury
) a:is([data-sb-contrast-role="amazon-button"], [href*="sleepbaby-20"]):hover {
	background: linear-gradient(135deg, #866591 0%, #50365d 100%) !important;
	background-image: linear-gradient(135deg, #866591 0%, #50365d 100%) !important;
}

.sleepbaby-affiliate-editorial-v3106.sb-affiliate-page--article .entry-content :is(
	.sb-amazon-module,
	.sb-amazon-module-luxury,
	.sb-amazon-luxury,
	[data-sb-component="article-specific-amazon-recommendation"]
) a:is([data-sb-contrast-role="amazon-button"], [href*="sleepbaby-20"]):focus-visible {
	outline: 3px solid #24160a !important;
	outline-offset: 4px !important;
	box-shadow: 0 0 0 7px #f2d18c !important;
}

/* Win over older article focus declarations that carry additional selector weight. */
.sleepbaby-affiliate-editorial-v3106.sleepbaby-affiliate-editorial-v3106.sb-affiliate-page--article .entry-content :is(
	.sb-amazon-module,
	.sb-amazon-module-luxury,
	.sb-amazon-luxury,
	[data-sb-component="article-specific-amazon-recommendation"]
) a:is([data-sb-contrast-role="amazon-button"], [href*="sleepbaby-20"]):focus-visible:focus-visible {
	outline: 3px solid #24160a !important;
	outline-offset: 4px !important;
	box-shadow: 0 0 0 7px #f2d18c !important;
}

/* The colored moon and wordmark remain legible on every route, not just posts. */
.sleepbaby-affiliate-editorial-v3106 .sb-editorial-footer .sb-editorial-logo {
	display: inline-flex !important;
	max-width: 280px !important;
	padding: .5rem .7rem !important;
	overflow: hidden !important;
	border: 1px solid rgba(81, 57, 78, .16) !important;
	border-radius: 18px !important;
	background: #fff7ec !important;
	background-image: none !important;
	box-shadow: 0 10px 28px rgba(12, 7, 18, .2) !important;
	filter: none !important;
	mix-blend-mode: normal !important;
	opacity: 1 !important;
}

.sleepbaby-affiliate-editorial-v3106 .sb-editorial-footer .sb-editorial-logo::before,
.sleepbaby-affiliate-editorial-v3106 .sb-editorial-footer .sb-editorial-logo::after {
	content: none !important;
	display: none !important;
	background: none !important;
	background-image: none !important;
}

.sleepbaby-affiliate-editorial-v3106 .sb-editorial-footer .sb-editorial-logo img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	filter: none !important;
	mix-blend-mode: normal !important;
	opacity: 1 !important;
}

@media (max-width: 680px) {
	.sleepbaby-affiliate-editorial-v3106.sb-affiliate-page--article .entry-content :is(
	.sb-amazon-module,
	.sb-amazon-module-luxury,
	.sb-amazon-luxury,
	[data-sb-component="article-specific-amazon-recommendation"]
	) a:is([data-sb-contrast-role="amazon-button"], [href*="sleepbaby-20"]) {
		width: 100% !important;
	}

	.sleepbaby-affiliate-editorial-v3106 .sb-editorial-footer .sb-editorial-logo {
		max-width: 230px !important;
	}
}

@media (forced-colors: active) {
	.sleepbaby-affiliate-editorial-v3106.sb-affiliate-page--article .entry-content :is(
	.sb-amazon-module,
	.sb-amazon-module-luxury,
	.sb-amazon-luxury,
	[data-sb-component="article-specific-amazon-recommendation"]
	) a:is([data-sb-contrast-role="amazon-button"], [href*="sleepbaby-20"]):is(:link, :visited, :hover, :focus, :focus-visible, :active),
	.sleepbaby-affiliate-editorial-v3106 .sb-editorial-footer .sb-editorial-logo {
		border-color: ButtonText !important;
		color: ButtonText !important;
		-webkit-text-fill-color: ButtonText !important;
		background: ButtonFace !important;
		background-image: none !important;
		box-shadow: none !important;
		filter: none !important;
		forced-color-adjust: auto !important;
	}

	.sleepbaby-affiliate-editorial-v3106.sb-affiliate-page--article .entry-content :is(
	.sb-amazon-module,
	.sb-amazon-module-luxury,
	.sb-amazon-luxury,
	[data-sb-component="article-specific-amazon-recommendation"]
	) a:is([data-sb-contrast-role="amazon-button"], [href*="sleepbaby-20"]):focus-visible {
		outline-color: Highlight !important;
	}
}
