.wc-block-grid.alignwide li {
	text-align: center;
}

.wc-block-featured-product .woocommerce-Price-amount {
	color: var(--go-caption--color--text, var(--go--color--text));
}

.wp-block-woocommerce-all-reviews {

	.wc-block-sort-select__select {
		-moz-appearance: none;
		-webkit-appearance: none;
		display: inline;
		padding: 5px 10px !important;
		width: auto;
	}

	.wc-block-review-list {
		padding-left: 0;

		.wc-block-review-list-item__item {
			margin: 0 0 40px;

			&:last-child {
				margin: 0;
			}

			.wc-block-review-list-item__rating__stars span::before {
				color: var(--go--color--primary);
				color: var(--go--hyperlink--color--text, var(--go--color--primary));
			}
		}
	}
}

.wc-block-grid__product-add-to-cart a.added_to_cart {
	margin-top: 0.5rem !important;
}

h2 + .wc-block-grid {
	margin-top: 3rem;
}

.wc-block-grid__products .wc-block-grid__product-image img {
	width: auto;
}

.wc-block-grid {

	.wc-block-grid__product-rating {
		margin-bottom: 1em;

		.star-rating span::before {
			color: var(--go--color--primary);
			color: var(--go--hyperlink--color--text, var(--go--color--primary));
		}
	}

	.wc-block-grid__product-link {
		text-decoration: none;
	}

	.wc-block-grid__product-image {
		margin-bottom: 0;
	}

	.wc-block-grid__product-onsale {
		background-color: transparent;
		border-radius: unset;
		display: inline-block;
		font-size: inherit;
		height: unset;
		left: unset;
		letter-spacing: inherit;
		margin: 0.25rem 0 0.75rem 0;
		pointer-events: none;
		text-transform: inherit;
		top: unset;
		width: unset;
	}

	li .price {
		margin: 0.5em 0;

		+ .wc-block-grid__product-add-to-cart {
			margin-top: 1em;
		}
	}

	ul {
		justify-content: space-between;
		max-width: 100%;
		width: 100%;

		li {
			margin: 0;
		}
	}

	&.has-1-columns li.wc-block-grid__product .wc-block-grid__product-image img {
		max-width: 300px;
	}

	&.has-2-columns > ul > .wc-block-grid__product,
	&.has-3-columns > ul > .wc-block-grid__product,
	&.has-4-columns > ul > .wc-block-grid__product {
		flex-basis: 100%;
		max-width: 100%;

		@include media(small) {
			flex-basis: 50%;
			margin: 0;
			max-width: calc(100% / 2 - 1rem);
		}
		@include media(large) {
			max-width: calc(100% / 2 - 2rem);
		}
	}

	&.has-3-columns > ul > .wc-block-grid__product,
	&.has-4-columns > ul > .wc-block-grid__product {
		@include media(large) {
			flex-basis: 33.33%;
			max-width: calc(100% / 3 - 2rem);
		}
	}

	&.has-4-columns > ul > .wc-block-grid__product {
		@include media(large) {
			flex-basis: 25%;
			max-width: calc(100% / 4 - 2rem);
		}
	}
}

.wp-block-group.is-vertical .wc-block-grid {
	width: 100%;

	ul {
		justify-content: space-evenly;
	}
}
