/**
 * Styles for the restored product tabs: Ingredients, Cannabinoid Chart, Award Winner.
 *
 * Ported from the Perfmatters code snippet css/4-single-product-page.css
 * (ClickUp 86eyfma06). Only the rules that style the markup in
 * custom/product-tabs.php are here; the rest of that snippet styles parts of the
 * product page this task does not touch.
 *
 * editor-friendly-ok: this styles PHP-rendered WooCommerce product tabs, not block
 * content, so there is nothing to edit in the block editor and no preset palette
 * slug exists for the chart's own cream and green. Values are the client's, copied
 * from the snippet byte for byte so live matches the reference build.
 *
 * Contrast ratios below were measured on the reference build
 * (mettah-opti.blz.au/product/full-spectrum-cbd-tincture/) from computed styles
 * against the real rendered backgrounds, 2026-08-12.
 */

/* Tab headings read left-aligned in the accordion layout. */
html .woocommerce-tabs[data-type*="type-3"] .ct-accordion-heading {
	text-align: left;
}

html .product-information-award-winner a,
html .product-information-cannabinoid-chart a {
	text-decoration: none !important;
}

/* Ingredients tab: copy on the left, gauge on the right. */
.product-ingredients {
	display: flex;
	gap: 24px;
	flex-flow: row;
}

.product-ingredients .ingredients__content {
	flex: 1 1 0;
}

.product-ingredients .ingredients__thc {
	flex: 1 1 0;
}

/* Cannabinoid chart table. */
.cannabinoid-chart-wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

html .cannabinoid-chart {
	max-width: 800px;
	margin: 0 auto;
}

.cannabinoid-chart {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
}

.cannabinoid-chart thead th {
	background-color: #f5f0e0; /* 6.88:1 with the #3a5a2c 17.6px bold heading */
	color: #3a5a2c; /* 6.88:1 on #f5f0e0 */
	font-weight: 700;
	font-size: 1.1em;
	text-align: center;
	padding: 20px 16px;
}

.cannabinoid-chart thead th:first-child {
	background-color: #f5f0e0; /* 6.88:1, same pair as the other heading cells */
}

.cannabinoid-chart tbody td {
	padding: 20px 16px;
	border-bottom: 1px solid #e5e5e5;
	text-align: center;
	font-size: 1em;
}

.cannabinoid-chart__label {
	font-weight: 700;
	white-space: nowrap;
}

.cannabinoid-chart__value {
	color: #333; /* 12.63:1 on the white table background */
	font-weight: 700;
}

.cannabinoid-chart tbody tr:last-child td {
	border-bottom: none;
}

/* Award Winner tab. */
html .award-winner-holder {
	/* contrast-exempt: 10% yellow tint sits behind images only, no text on it */
	display: flex;
	background-color: #c3bb2e1a;
	align-items: center;
}

html .award-winner-holder > * {
	width: 50%;
}

html .award-winner-holder .award-image-left img {
	aspect-ratio: 1/1;
}

html .award-winner-holder .award-winner-gallery {
	padding: 1rem 0;
}

html .award-winner-holder figure img {
	object-fit: cover;
}

html .award-winner-holder .owl-nav {
	position: absolute;
	top: 45%;
	width: 100%;
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 0 24px;
}

html .award-winner-holder .owl-carousel .owl-nav button.owl-next,
html .award-winner-holder .owl-carousel .owl-nav button.owl-prev {
	margin: 0;
	width: 44px;
	height: 44px;
	padding: 10px !important;
	border-radius: 999px !important;
	background: #333333 !important; /* 12.63:1 with the white arrow glyph */
}

html .award-winner-holder .owl-carousel .owl-nav button.owl-next svg,
html .award-winner-holder .owl-carousel .owl-nav button.owl-prev svg {
	stroke: white; /* 12.63:1 on #333333 */
}

html .award-winner-holder .owl-carousel.owl-theme .owl-dots {
	margin-top: 2rem;
}

/* Mobile: stack the award images, stack the ingredients columns. */
@media (max-width: 769px) {
	html .award-winner-holder > * {
		width: 100%;
	}

	html .award-winner-holder {
		flex-flow: column;
	}

	html .award-winner-holder .award-winner-gallery {
		padding: 3rem 0;
	}

	html .award-winner-holder figure {
		width: 100%;
	}
}

@media screen and (max-width: 992px) {
	.product-ingredients {
		flex-flow: column;
	}
}
