/*
 * AI Watch Content Engine — product cards, disclosure and ad units.
 * Quiet editorial styling that inherits the theme's fonts and colours.
 */

.aiwce-disclosure {
	margin: 0 0 1.5em;
	padding: 0.75em 1em;
	border-left: 3px solid currentColor;
	font-size: 0.85em;
	line-height: 1.5;
	opacity: 0.8;
}

.aiwce-products {
	margin: 2em 0;
}

.aiwce-products__items {
	display: grid;
	gap: 1.25em;
}

.aiwce-products--grid .aiwce-products__items {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.aiwce-product {
	display: flex;
	flex-direction: column;
	gap: 0.75em;
	padding: 1.25em;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.6);
}

.aiwce-products--list .aiwce-product {
	flex-direction: row;
	align-items: center;
}

.aiwce-product__media {
	display: block;
	flex: none;
}

.aiwce-product__media img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 180px;
	object-fit: contain;
}

.aiwce-products--list .aiwce-product__media img {
	width: 140px;
	height: 140px;
}

.aiwce-product__body {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	min-width: 0;
	flex: 1;
}

.aiwce-product__brand {
	font-size: 0.75em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.65;
}

.aiwce-product__title {
	margin: 0;
	font-size: 1.05em;
	line-height: 1.35;
}

.aiwce-product__title a {
	color: inherit;
	text-decoration: none;
}

.aiwce-product__title a:hover,
.aiwce-product__title a:focus {
	text-decoration: underline;
}

.aiwce-product__desc {
	margin: 0;
	font-size: 0.9em;
	line-height: 1.5;
	opacity: 0.85;
}

.aiwce-product__price {
	margin: 0.25em 0 0;
	font-variant-numeric: tabular-nums;
}

.aiwce-product__amount {
	font-weight: 600;
}

.aiwce-product__basis {
	margin-left: 0.35em;
	opacity: 0.6;
}

.aiwce-product__asof {
	display: block;
	font-size: 0.75em;
	opacity: 0.65;
}

.aiwce-product__cta {
	align-self: flex-start;
	display: inline-block;
	margin-top: 0.4em;
	padding: 0.55em 1.1em;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.9em;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.aiwce-product__cta:hover,
.aiwce-product__cta:focus {
	text-decoration: underline;
}

.aiwce-products__scroll {
	overflow-x: auto;
}

.aiwce-products__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
}

.aiwce-products__table th,
.aiwce-products__table td {
	padding: 0.7em 0.6em;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	text-align: left;
	vertical-align: middle;
}

.aiwce-products__name {
	display: flex;
	align-items: center;
	gap: 0.75em;
}

.aiwce-products__name img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	flex: none;
}

.aiwce-products__disclaimer {
	margin: 0.75em 0 0;
	font-size: 0.75em;
	line-height: 1.5;
	opacity: 0.65;
}

.aiwce-ad {
	clear: both;
	margin: 2em 0;
	text-align: center;
}

.aiwce-ad__label {
	display: block;
	margin-bottom: 0.35em;
	font-size: 0.7em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.55;
}

.aiwce-ad__unit--mobile {
	display: none;
}

@media (max-width: 767px) {
	.aiwce-ad__unit--desktop {
		display: none;
	}

	.aiwce-ad__unit--mobile {
		display: block;
	}

	.aiwce-products--list .aiwce-product {
		flex-direction: column;
		align-items: stretch;
	}

	.aiwce-products--list .aiwce-product__media img {
		width: 100%;
	}
}
