/* Verified post-launch fixes: contained media and an accessible back-to-top control. */

:is(.entry-content, .em26-entry__content, .woocommerce-product-details__short-description, .woocommerce-Tabs-panel) :is(iframe, embed, video) {
	max-inline-size: 100%;
}

:is(.entry-content, .em26-entry__content, .woocommerce-Tabs-panel) iframe:is([src*="youtube.com"], [src*="youtu.be"]) {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 16 / 9;
}

:is(.entry-content, .em26-entry__content, .woocommerce-Tabs-panel) .instagram-media {
	min-inline-size: 0 !important;
	max-inline-size: 100% !important;
	inline-size: 100% !important;
}

.em26-fil-weight-stock {
	margin-block: 0.75rem 1rem;
	padding: 0.875rem 1rem;
	border: 1px solid color-mix(in srgb, var(--em26-magenta, #c80b72) 28%, transparent);
	border-radius: 0.75rem;
	background: color-mix(in srgb, var(--em26-magenta, #c80b72) 7%, var(--em26-surface, #fffefa));
	color: var(--em26-ink, #16353d);
}

.em26-fil-weight-stock a {
	font-weight: 800;
	color: var(--em26-cobalt, #1d5dbb);
}

.em26-to-top {
	--em26-to-top-size: 3rem;
	--em26-to-top-gap: 1.5rem;
	--em26-to-top-lift: 0px;
	position: fixed;
	z-index: 55;
	right: max(var(--em26-to-top-gap), env(safe-area-inset-right, 0px));
	bottom: calc(var(--em26-to-top-gap) + var(--em26-to-top-lift) + env(safe-area-inset-bottom, 0px));
	display: grid;
	place-items: center;
	inline-size: var(--em26-to-top-size);
	block-size: var(--em26-to-top-size);
	padding: 0;
	border: 1px solid var(--em26-border-strong, #7f9195);
	border-radius: 50%;
	background: var(--em26-surface, #fffefa);
	color: var(--em26-ink, #16353d);
	box-shadow: 0 0.375rem 1.25rem rgba(22, 53, 61, 0.14);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.5rem);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease, background-color 160ms ease, color 160ms ease;
}

.em26-to-top svg { inline-size: 1.25rem; block-size: 1.25rem; }
.em26-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.em26-to-top:hover { border-color: var(--em26-ink, #16353d); background: var(--em26-ink, #16353d); color: var(--em26-surface, #fffefa); }
.em26-to-top:focus-visible { outline: 3px solid var(--em26-cobalt, #1d5dbb); outline-offset: 3px; }
.em26-to-top:active { transform: scale(0.94); }

body:is(.em26-cart-open, .em26-nav-open, .em26-home-real-is-drawer-open) .em26-to-top,
.em26-to-top.is-typing { opacity: 0; visibility: hidden; }

@media (min-width: 90rem) {
	.em26-to-top { right: max(1.5rem, calc((100vw - 80rem) / 2 - var(--em26-to-top-size) - 1.5rem)); }
}

@media (max-width: 63.99rem) { .em26-to-top { --em26-to-top-gap: 1.25rem; } }
@media (max-width: 37.49rem) { .em26-to-top { --em26-to-top-size: 2.75rem; --em26-to-top-gap: 1rem; } }
@media (prefers-reduced-motion: reduce) { .em26-to-top { transition: none; } }
@media print { .em26-to-top { display: none; } }
