/*=============================================
=            Review summary layout             =
=============================================*/

// Box for the top of a review: tag strip, logo + CTA | title, rating, specs,
// then terms. v2 only, no legacy counterpart.
.affr-layout.affr-layout--summary {
	margin-bottom: 20px;
	background-color: var(--affr-box-bg-color);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
	line-height: 1.6;

	// Tag strip. Hidden when the review has no tag, so there's no empty band.
	.affr-layout__head {
		padding: 12px 25px;
		background: rgba(0, 0, 0, 0.03);

		&:not(:has(.affr-tag)) {
			display: none;
		}

		.affr-tag {
			display: inline-block;
		}
	}

	.wp-block-columns.affr-layout__columns {
		margin: 0;

		@include affr-columns(
			$bases: (
				"affr-layout__thumb": 36%,
				"affr-layout__content": 64%
			),
			$stack: (
				600px: (
					"affr-layout__thumb",
					"affr-layout__content"
				)
			)
		);
	}

	.affr-layout__thumb {
		padding: 25px;
		display: flex;
		flex-direction: column;

		.affr-thumb {
			height: auto;
			padding: 0;

			img {
				height: auto;
			}
		}
	}

	.affr-layout__content {
		padding: 25px 25px 25px 0;
		min-width: 0;

		@container (max-width: 600px) {
			padding: 0 25px 25px;
		}
	}

	.wp-block-post-title {
		margin: 0;
		font-size: 1.375rem;
		font-weight: 700;
		line-height: 1.3;
	}

	.affr-terms {
		background: rgba(0, 0, 0, 0.02);
	}
}

/*=====  End of Review summary layout  ======*/
