/* Hosts for Thridify's card icons need a positioning context. */
[data-thridify-card] {
	position: relative;
}
/* Images / 3D tabs slot: in flow under the gallery, never wrapping it. */
[data-thridify-slot="viewer-tabs"] {
	display: block;
	width: 100%;
	clear: both;
}
/*
 * Inline (Images / 3D) mode: the viewer fills the gallery's own box. Thridify's
 * runtime sizes it from the gallery height measured at mount, which on
 * WooCommerce's slider gallery can be the height of every slide stacked before
 * the slider initialises — a viewer thousands of pixels tall.
 */
.thridify-viewer-panel > thridify-view,
.thridify-viewer-panel > iframe {
	height: 100% !important;
	min-height: 400px;
}

/*
 * 3D icon on product cards and the gallery: a frosted disc so the icon reads on
 * any product photo, light or dark (the icon itself is drawn in the brand colour).
 */
[data-thridify-card] .view-360-button-container,
[data-thridify-slot="gallery"] .view-360-button-container {
	background: rgba(255, 255, 255, 0.9);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-color: rgba(255, 255, 255, 0.9) !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22) !important;
	transition: transform 0.2s ease;
}
[data-thridify-card] .view-360-button-container:hover,
[data-thridify-slot="gallery"] .view-360-button-container:hover {
	transform: scale(1.08);
}
@media (prefers-reduced-motion: reduce) {
	[data-thridify-card] .view-360-button-container,
	[data-thridify-slot="gallery"] .view-360-button-container {
		transition: none;
	}
}

/*
 * WordPress core sets `word-break/overflow-wrap: break-word` on Columns blocks.
 * Those inherit into the viewer's shadow DOM and split its tooltip labels one
 * letter per line. Reset them on the viewer element (Thridify's viewer resets
 * them itself from 12.10.5; this covers older viewer builds).
 */
thridify-view {
	word-break: normal;
	overflow-wrap: normal;
	hyphens: manual;
	letter-spacing: normal;
	text-transform: none;
}
