$border-color: #eee;
$cards-gap: 20px;

.marketplace-reviews-cards__container {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 24px;

	.marketplace-reviews-cards__reviews-title {
		font-family: Recoleta, $sans;
		color: var(--studio-gray-80);
		font-size: $font-title-medium;
	}

	.marketplace-reviews-cards__reviews-subtitle {
		font-family: "SF Pro Text", $sans;
		color: var(--studio-gray-60);
		font-size: $font-body-small;
	}

	.marketplace-reviews-cards__read-all {
		font-family: "SF Pro Text", $sans;
		font-size: $font-body-small;
		position: absolute;
		right: 0;
		top: 25px;
	}

	.marketplace-reviews-cards__content {
		display: flex;
		gap: $cards-gap;
	}

	.rating .rating__overlay .is-empty,
	.rating .rating__star-outline .is-empty {
		fill: var(--studio-yellow-20);
	}

	.rating .rating__overlay .gridicon,
	.rating .rating__star-outline .gridicon {
		fill: var(--studio-yellow-20);
	}
}


.marketplace-reviews-card__container {
	padding: 24px 30px;

	display: flex;
	flex-direction: column;
	gap: 16px;
}

.marketplace-reviews-card__container,
.marketplace-reviews-card__leave-a-review,
.marketplace-reviews-card__empty-container {
	border: 1px solid $border-color;
	border-radius: 4px;
	width: calc((100% - $cards-gap)/2); // Half of the available space
	box-sizing: border-box;
}

.marketplace-reviews-card__review-data {
	font-family: "SF Pro Text", $sans;
	color: var(--studio-gray-80);
	font-size: $font-body-small;
	line-height: 20px;

	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.marketplace-reviews-card__author {
	font-family: "SF Pro Text", $sans;
	color: var(--studio-gray-60);
	font-size: $font-body-extra-small;
	line-height: 20px;
	font-weight: 500;

	.marketplace-reviews-card__author-name {
		color: var(--studio-black);
		font-family: Inter, $sans;
	}
}

.marketplace-reviews-card__leave-a-review {
	display: flex;
	gap: 8px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 40px;
	cursor: pointer;

	.marketplace-reviews-card__leave-a-review-message {
		font-family: "SF Pro Text", $sans;
		color: var(--studio-gray-100);
		font-size: $font-body;
		font-weight: 500;
		line-height: 24px;
		text-align: center;
	}
}

.marketplace-reviews-card__empty-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 30px;

	.marketplace-reviews-card__empty-title {
		font-family: Recoleta, $sans;
		color: var(--studio-gray-100);
		font-size: $font-title-medium;
	}

	.marketplace-reviews-card__empty-subtitle {
		font-family: "SF Pro Text", $sans;
		color: var(--studio-gray-60);
		font-size: $font-body-small;
		text-align: center;
	}
}
