/* Customer reviews page /reviews (information/reviews.twig). The stars and review cards it shares with the home page
   block are in main.css. */
.hs-reviews {
	margin: 0 0 40px;
	color: #555;
}

.hs-reviews h2 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	color: #222;
}

/* Summary */
.hs-reviews-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px 40px;
	padding: 24px;
	border: 1px solid #e5e5e5;
	background: #fff;
}

.hs-reviews-score {
	text-align: center;
}

.hs-reviews-average {
	margin: 0 0 6px;
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
	color: #222;
}

.hs-reviews-average span {
	font-size: 20px;
	font-weight: 500;
	color: #777;
}

.hs-reviews-count {
	margin: 6px 0 0;
	font-size: 13px;
	color: #777;
}

.hs-reviews-bars {
	flex: 1 1 260px;
	max-width: 420px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-reviews-bars li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0;
	font-size: 13px;
}

.hs-bar-label {
	flex: 0 0 52px;
	white-space: nowrap;
}

.hs-bar {
	flex: 1;
	height: 8px;
	overflow: hidden;
	border-radius: 4px;
	background: #eee;
}

.hs-bar span {
	display: block;
	height: 100%;
	background: #e69b00;
}

.hs-bar-count {
	flex: 0 0 32px;
	text-align: right;
	color: #777;
}

.hs-reviews-empty {
	flex: 1 1 300px;
	margin: 0;
	font-size: 15px;
}

.hs-reviews-cta {
	margin-left: auto;
}

/* Trustpilot */
.hs-reviews-trustpilot {
	margin-top: 20px;
	padding: 20px 24px;
	border: 1px solid #e5e5e5;
	background: #fff;
}

.hs-reviews-trustpilot .trustpilot-widget {
	margin: 12px 0;
}

.hs-reviews-trustpilot p {
	margin: 0;
}

.hs-reviews-trustpilot a {
	color: #1d4f74;
	text-decoration: underline;
}

/* List */
.hs-reviews-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin: 30px 0 15px;
}

.hs-reviews-results {
	margin: 0;
	font-size: 13px;
	color: #777;
}

.hs-reviews-sort {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hs-reviews-sort label {
	margin: 0;
	font-size: 13px;
	white-space: nowrap;
}

.hs-reviews-sort select.form-control {
	width: auto;
	height: auto;
	min-height: 36px;
	padding: 6px 10px;
}

.hs-reviews-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 768px) {
	.hs-reviews-list {
		grid-template-columns: 1fr 1fr;
	}
}

.hs-reviews-pagination {
	margin-top: 20px;
	text-align: center;
}

/* Leave a Review form */
.hs-review-form {
	position: relative;
	margin-top: 30px;
	/* "Write a review" jumps here; the sticky header (121px, 180px on mobile) must not cover the heading */
	scroll-margin-top: 140px;
	padding: 24px;
	border: 1px solid #e5e5e5;
	background: #fff;
}

.hs-review-form > p {
	margin: 0 0 20px;
}

.hs-review-form form {
	max-width: 640px;
}

.hs-review-form fieldset {
	min-width: 0;
	padding: 0;
	border: 0;
}

.hs-review-form legend {
	width: auto;
	margin: 0 0 5px;
	padding: 0;
	border: 0;
	font-size: inherit;
}

.hs-review-form .control-label {
	font-weight: 600;
	color: #222;
}

.hs-review-form .has-error .form-control {
	border-color: #c62828;
}

.hs-review-form .text-danger {
	margin-top: 5px;
	font-size: 13px;
	color: #c62828;
}

.hs-review-help {
	margin: 6px 0 0;
	font-size: 13px;
	color: #777;
}

.hs-rating-input {
	display: inline-flex;
}

.hs-rating-input input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	opacity: 0;
}

.hs-rating-input label {
	margin: 0;
	padding: 0 3px;
	font-size: 28px;
	line-height: 1;
	color: #d9d9d9;
	cursor: pointer;
}

.hs-rating-input[data-rating="1"] label:nth-of-type(-n+1),
.hs-rating-input[data-rating="2"] label:nth-of-type(-n+2),
.hs-rating-input[data-rating="3"] label:nth-of-type(-n+3),
.hs-rating-input[data-rating="4"] label:nth-of-type(-n+4),
.hs-rating-input[data-rating="5"] label:nth-of-type(-n+5),
.hs-rating-input:hover label {
	color: #e69b00;
}

.hs-rating-input:hover label:hover ~ label {
	color: #d9d9d9;
}

.hs-rating-input input:focus-visible + label {
	outline: 2px solid #1d4f74;
	outline-offset: 2px;
}

/* Honeypot: hidden from people, left for bots */
.hs-review-extra {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 991px) {
	.hs-review-form {
		scroll-margin-top: 200px;
	}
}

@media (max-width: 575px) {
	.hs-reviews-summary,
	.hs-review-form {
		padding: 18px;
	}

	.hs-reviews-score,
	.hs-reviews-bars,
	.hs-reviews-cta {
		flex-basis: 100%;
		max-width: none;
	}

	.hs-reviews-cta .btn {
		width: 100%;
	}
}
