/**
 * Product page sections below the description: reviews and the review form
 * (2218:3407), Q&A (2162:903), related products (2162:937).
 */

/* Reviews: 96px above the heading, 60px under the cards from 1024, as on
 * the category page. */
@media (min-width: 1024px) {
	.xat-product .home-reviews {
		padding: 96px 0 60px;
	}
}

/* Q&A: 96px above (the component's top space); related products follow
 * with their own 120px. */
.product-page .cat-faq {
	padding-bottom: 0;
}

/* Review form (not designed): under the carousel, Heading/H3, the theme's
 * inputs, stars in orange. */
.review-form {
	max-width: 640px;
	margin-top: var(--space-lg);
}

.review-form__title {
	margin: 0 0 var(--space-sm);
	color: var(--color-black);
	font-family: var(--font-display);
	font-size: var(--text-h3);
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-h3);
	line-height: var(--leading-h3);
}

.review-form__note {
	margin: 0;
	color: var(--color-ink);
	font-size: var(--text-body-m);
	line-height: var(--leading-body-m);
}

.review-form__note a {
	color: inherit;
	font-weight: var(--weight-semibold);
}

.review-form__form {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.review-form__form p {
	margin: 0;
}

.field__input--area {
	height: auto;
	min-height: 140px;
	padding: 14px 20px;
	border-radius: 20px;
	resize: vertical;
}

.review-form__rating {
	margin: 0;
	padding: 0;
	border: 0;
}

.review-form__rating .field__label {
	margin-bottom: var(--space-xs);
	padding: 0;
}

/* Five radios, 5 to 1 in the source, shown 1 to 5: the checked star and
 * every star before it are orange. */
.review-stars {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 2px;
}

.review-stars__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.review-stars__star {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-sm);
	color: var(--color-line);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.15s ease;
}

.review-stars__input:checked ~ .review-stars__star,
.review-stars__star:hover,
.review-stars__star:hover ~ .review-stars__star {
	color: var(--color-orange);
}

.review-form__submit {
	margin: var(--space-xs) 0 0;
}

@media (prefers-reduced-motion: reduce) {
	.review-stars__star {
		transition: none;
	}
}
