/* Tainacan collections list: make metadata values (esp. description) wrap and be responsive */
.tainacan-exhibition-container .tainacan-exhibition .media .media-body .list-metadata .metadata-value{
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: initial !important;
	line-height: 1.5 !important;
}

/* If a textarea-like value is used for description, allow more space */
.tainacan-exhibition-container .tainacan-exhibition .media .media-body .list-metadata .metadata-type-textarea .metadata-value{
	white-space: normal !important;
	max-width: 100% !important;
}

/* Default Tainacan items list: let metadata rows fill available width */
.items-list-area .tainacan-list-container .tainacan-list .list-metadata,
.theme-items-list .tainacan-list-container .tainacan-list .list-metadata{
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	width: 100%;
}

/* Labels and values must wrap naturally (no ellipsis boxes) */
.items-list-area .list-metadata .metadata-label,
.items-list-area .list-metadata .metadata-value,
.theme-items-list .list-metadata .metadata-label,
.theme-items-list .list-metadata .metadata-value{
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: initial !important;
	line-height: 1.5 !important;
	width: 100%;
	display: block;
}

/* Long description/textarea type values should stretch across card */
.items-list-area .metadata-type-textarea .metadata-value,
.theme-items-list .metadata-type-textarea .metadata-value{
	max-width: 100% !important;
}

/* WooCommerce product cards: JS sets only the per-row offset needed before price */
.woocommerce.archive :is(.tmb.product, .tmb-woocommerce) .t-entry .price,
.woocommerce-page.archive :is(.tmb.product, .tmb-woocommerce) .t-entry .price,
.post-type-archive-product :is(.tmb.product, .tmb-woocommerce) .t-entry .price,
.tax-product_cat :is(.tmb.product, .tmb-woocommerce) .t-entry .price,
.tax-product_tag :is(.tmb.product, .tmb-woocommerce) .t-entry .price,
.page :is(.tmb.product, .tmb-woocommerce) .t-entry .price{
	display: block;
	margin-top: var(--atvira-price-align-offset, 0px) !important;
	margin-bottom: 8px !important;
}

.woocommerce.archive :is(.tmb.product, .tmb-woocommerce) .t-entry-readmore.t-entry-extra-add-to-cart,
.woocommerce-page.archive :is(.tmb.product, .tmb-woocommerce) .t-entry-readmore.t-entry-extra-add-to-cart,
.post-type-archive-product :is(.tmb.product, .tmb-woocommerce) .t-entry-readmore.t-entry-extra-add-to-cart,
.tax-product_cat :is(.tmb.product, .tmb-woocommerce) .t-entry-readmore.t-entry-extra-add-to-cart,
.tax-product_tag :is(.tmb.product, .tmb-woocommerce) .t-entry-readmore.t-entry-extra-add-to-cart,
.page :is(.tmb.product, .tmb-woocommerce) .t-entry-readmore.t-entry-extra-add-to-cart{
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

:is(.tmb.product, .tmb-woocommerce) .product-author-value a{
	color: inherit;
	text-decoration: none;
}

:is(.tmb.product, .tmb-woocommerce) .product-author-value a:hover{
	text-decoration: underline;
}

:is(.tmb.product, .tmb-woocommerce) .product-author-more{
	display: inline;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.woocommerce.archive :is(.tmb.product, .tmb-woocommerce) .t-entry .price,
	.woocommerce-page.archive :is(.tmb.product, .tmb-woocommerce) .t-entry .price,
	.post-type-archive-product :is(.tmb.product, .tmb-woocommerce) .t-entry .price,
	.tax-product_cat :is(.tmb.product, .tmb-woocommerce) .t-entry .price,
	.tax-product_tag :is(.tmb.product, .tmb-woocommerce) .t-entry .price,
	.page :is(.tmb.product, .tmb-woocommerce) .t-entry .price{
		margin-top: 0 !important;
	}
}
