/* 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, #b31368) 28%, transparent);
	border-radius: 0.75rem;
	background: color-mix(in srgb, var(--em26-magenta, #b31368) 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, rgba(22, 53, 61, 0.34));
	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; } }

/* 18 Nov 2026: resin calculator plugin cards (#fdfdfd) → design-system surface. */
html body #product__calculator__main #main-calc-type .type label { background-color: #fffefa; }

/* 18 Nov 2026: tap targets 44 px (design system: tap-target) without touching layout or look:
   a transparent ::after, centred on the control, at least 44 x 44. The control keeps its box. */
.em26-home-real-servicebar nav > a,
.em26-footer__nav a,
.em26-home-real-root__more > a,
nav.em26-breadcrumbs ol > li > a,
a.em26-decor-texture-card__link,
.product_meta .posted_in a,
.em26-resin-sections__nav-rail > a,
button.em26-qty__btn { position: relative; }
.em26-home-real-servicebar nav > a::after,
.em26-footer__nav a::after,
.em26-home-real-root__more > a::after,
nav.em26-breadcrumbs ol > li > a::after,
a.em26-decor-texture-card__link::after,
.product_meta .posted_in a::after,
.em26-resin-sections__nav-rail > a::after,
button.swatch.cgkit-swatch::after,
button.em26-qty__btn::after,
a.em26-home-intro__pin::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  transform: translate(-50%, -50%);
}
/* The quantity buttons grow outwards only, so the number field between them keeps its full width. */
button.em26-qty__btn:first-of-type::after { left: auto; right: 0; transform: translateY(-50%); }
button.em26-qty__btn:last-of-type::after { left: 0; transform: translateY(-50%); }
/* Subsection links inside the homepage section cards (already position: relative; z-index: 2). */
article.em26-home-real-root li > a::after { content: ""; position: absolute; top: 50%; left: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
/* Product gallery arrows (CommerceKit, 42 px; its ::after draws the arrow): a 44 px hit area on ::before. The buttons
   are position: absolute, so they contain it. */
.cg-main-swiper > .swiper-button-next::before, .cg-main-swiper > .swiper-button-prev::before { content: ""; position: absolute; top: 50%; left: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
