/*
 * Product boxes ("What I Used" and [rwp_products]).
 * Inside a recipe card they use the card's own colors (--rwp-*), so
 * they match whatever theme styles the card. Outside a card the
 * fallbacks after each comma apply.
 */
.rwp-products {
	--rwp-p-border: var(--rwp-border, rgba(0, 0, 0, 0.14));
	--rwp-p-muted: var(--rwp-muted, #6b6b6b);
	--rwp-p-accent: var(--rwp-accent, #b5401f);
	--rwp-p-accent-text: var(--rwp-accent-text, #fff);
	--rwp-p-radius: var(--rwp-radius, 6px);
	margin: 1.5em 0 0.5em;
	padding-top: 1em;
	border-top: 1px dashed var(--rwp-p-border);
}
.rwp-products__title {
	margin: 0 0 0.35em;
	font-family: var(--rwp-font-heading, inherit);
	font-weight: var(--rwp-heading-weight, 700);
	font-size: 1.15rem;
}
.rwp-products__disclosure {
	margin: 0 0 0.9em;
	font-size: 0.8rem;
	line-height: 1.45;
	color: var(--rwp-p-muted);
	font-style: italic;
}
.rwp-products__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.85em;
}
.rwp-product {
	display: flex;
	gap: 0.85em;
	align-items: flex-start;
	margin: 0;
}
.rwp-product__image img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: var(--rwp-p-radius);
	border: 1px solid var(--rwp-p-border);
	background: #fff;
}
.rwp-product__body {
	display: flex;
	flex-direction: column;
	gap: 0.2em;
	min-width: 0;
}
.rwp-product__name {
	font-weight: 700;
	line-height: 1.3;
}
.rwp-product__note {
	font-size: 0.9em;
	color: var(--rwp-p-muted);
	line-height: 1.4;
}
.rwp-product__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35em 0.8em;
	margin-top: 0.3em;
	font-size: 0.85rem;
}
.rwp-product__button {
	display: inline-block;
	padding: 0.35em 0.85em;
	border-radius: var(--rwp-p-radius);
	background: var(--rwp-p-accent);
	color: var(--rwp-p-accent-text) !important;
	text-decoration: none !important;
	font-weight: 600;
	line-height: 1.3;
}
.rwp-product__button:hover,
.rwp-product__button:focus-visible {
	filter: brightness(0.92);
}
.rwp-product__alt {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}
/* Wide spaces outside the card: two columns. */
@media (min-width: 900px) {
	.entry-content > .rwp-products .rwp-products__list,
	.wp-block-post-content > .rwp-products .rwp-products__list {
		grid-template-columns: 1fr 1fr;
	}
}
@media print {
	.rwp-products { display: none; }
}
