/* Felices PageSpeed helpers (2026-11-25). Chat launcher is position:fixed so it should not push #pagewrap. */
#hubspot-messages-iframe-container,
#hubspot-messages-iframe-container iframe {
	position: fixed !important;
	z-index: 999999;
}

/*
 * Reserve the in-flow announcement bar height before JS clones it out of <template>.
 * Measured from the live page: 62px at 412px-wide, 47px at 1350px-wide (25 Nov 2026).
 * When the bar is present, :has() drops the padding so the bar occupies the same space.
 */
body.felices-ps-reserve-announcement:not(.logged-in):not(:has(#announcement_bar_slider.themify_announcement)) {
	padding-top: 62px;
}
@media (min-width: 781px) {
	body.felices-ps-reserve-announcement:not(.logged-in):not(:has(#announcement_bar_slider.themify_announcement)) {
		padding-top: 47px;
	}
}

/* Product tiles: keep the image's own aspect ratio reserved before it loads (no crop, no stretch). */
ul.products figure.post-image img.wp-post-image,
ul.loops-wrapper figure.post-image img.wp-post-image,
.wc-products figure.product-image img.wp-post-image {
	width: 100%;
	height: auto;
	display: block;
}

/* Homepage hero: reserve the right box for mobile (800×931) vs desktop (1600×872). */
@media (max-width: 680px) {
	picture.felices-hero-picture,
	picture.felices-hero-picture img {
		width: 100%;
		height: auto;
		aspect-ratio: 800 / 931;
		object-fit: cover;
		display: block;
	}
}
@media (min-width: 681px) {
	picture.felices-hero-picture,
	picture.felices-hero-picture img {
		width: 100%;
		height: auto;
		aspect-ratio: 1600 / 872;
		object-fit: cover;
		display: block;
	}
}
