/* SleepBaby.org 2.5.0 — shared bonus and tip illustration system. */

body.sleepbaby-homepage .sb-home-tip-art,
body.sb-home-precovid-2019 .sb-home-tip-art {
	display: block !important;
	float: none !important;
	inline-size: clamp(108px, 12vw, 148px) !important;
	block-size: auto !important;
	margin: 10px auto 24px !important;
	padding: 0 !important;
	overflow: visible !important;
	color: inherit !important;
	background: transparent !important;
	filter: none !important;
	pointer-events: none;
	user-select: none;
}

body.sleepbaby-homepage .sb-home-tip-art > img,
body.sb-home-precovid-2019 .sb-home-tip-art > img {
	display: block;
	inline-size: 100% !important;
	block-size: auto !important;
	aspect-ratio: 1;
	margin: 0 !important;
	object-fit: contain;
	filter: drop-shadow(0 12px 16px rgba(51, 37, 59, .16));
}

body.sb-home-precovid-2019 #tve_editor .sb-home-reasons__checklist::after {
	display: table;
	clear: both;
	content: "";
}

body.sb-home-precovid-2019 #tve_editor .sb-home-reasons__sticker {
	display: block;
	float: right;
	inline-size: clamp(126px, 15vw, 154px);
	block-size: auto;
	margin: -12px -2px 12px 24px;
	filter: drop-shadow(0 12px 16px rgba(51, 37, 59, .14));
	pointer-events: none;
	user-select: none;
}

body.sleepbaby-homepage #tve_editor :is(
	[data-css="tve-u-1698df6d879"],
	[data-css="tve-u-1698dfe5106"],
	[data-css="tve-u-1698df53d70"]
),
body.sb-home-precovid-2019 #tve_editor :is(
	[data-css="tve-u-1698df6d879"],
	[data-css="tve-u-1698dfe5106"],
	[data-css="tve-u-1698df53d70"]
) {
	float: none !important;
	inline-size: min(100%, 308px) !important;
	margin: 8px auto 30px !important;
	overflow: visible !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.sleepbaby-homepage #tve_editor :is(
	[data-css="tve-u-1698df6d879"],
	[data-css="tve-u-1698dfe5106"],
	[data-css="tve-u-1698df53d70"]
) img,
body.sb-home-precovid-2019 #tve_editor :is(
	[data-css="tve-u-1698df6d879"],
	[data-css="tve-u-1698dfe5106"],
	[data-css="tve-u-1698df53d70"]
) img {
	display: block;
	inline-size: 100% !important;
	block-size: auto !important;
	aspect-ratio: 458 / 731;
	object-fit: cover;
	object-position: center;
	border: 1px solid rgba(74, 54, 82, .18) !important;
	border-radius: 22px !important;
	background: #f4f1f5;
	box-shadow: 0 22px 44px rgba(50, 36, 58, .17), 0 1px 0 rgba(255, 255, 255, .84) inset !important;
}

@media (max-width: 480px) {
	body.sb-home-precovid-2019 #tve_editor .sb-home-reasons__sticker {
		float: none;
		inline-size: clamp(78px, 26vw, 92px);
		margin: -4px auto 10px;
	}

	body.sleepbaby-homepage .sb-home-tip-art,
	body.sb-home-precovid-2019 .sb-home-tip-art {
		inline-size: clamp(92px, 30vw, 116px) !important;
		margin-block-end: 18px !important;
	}

	body.sleepbaby-homepage #tve_editor :is(
		[data-css="tve-u-1698df6d879"],
		[data-css="tve-u-1698dfe5106"],
		[data-css="tve-u-1698df53d70"]
	),
	body.sb-home-precovid-2019 #tve_editor :is(
		[data-css="tve-u-1698df6d879"],
		[data-css="tve-u-1698dfe5106"],
		[data-css="tve-u-1698df53d70"]
	) {
		inline-size: min(78vw, 270px) !important;
	}
}

@media (max-width: 300px) {
	body.sleepbaby-homepage .sb-home-tip-art,
	body.sb-home-precovid-2019 .sb-home-tip-art {
		inline-size: 86px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.sleepbaby-homepage .sb-home-tip-art,
	body.sb-home-precovid-2019 .sb-home-tip-art,
	body.sb-home-precovid-2019 #tve_editor .sb-home-reasons__sticker {
		animation: none !important;
		transition: none !important;
	}
}
