/*
 * Central Heat reviews: stars, the line under the product name, and the "Customer reviews" section.
 * Sizes are in pixels: the theme's root font size is 10px.
 */

/* Five stars; the filled part is a second row of gold stars cut to a width. */
.ch-stars { position: relative; display: inline-block; flex: 0 0 auto; font-size: 16px; line-height: 1; letter-spacing: 2px; white-space: nowrap; color: #d5d8df; }
.ch-stars::before { content: "\2605\2605\2605\2605\2605"; }
.ch-stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; color: #c8922e; }
.ch-stars__fill::before { content: "\2605\2605\2605\2605\2605"; }
.ch-stars--large { font-size: 22px; }

.ch-reviews-summary { margin: 10px 0 0; }
.ch-reviews-summary__link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #3d475c; text-decoration: none; }
.ch-reviews-summary__link strong { color: #01123b; }
.ch-reviews-summary__link > span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.ch-reviews-summary__link--empty { color: #6b7892; }

/* Parts switched off with the "hidden" attribute stay hidden, whatever display the rules below give them. */
.ch-reviews [hidden] { display: none !important; }

.ch-reviews { padding-top: 56px; padding-bottom: 56px; color: #01123b; scroll-margin-top: 110px; }
.ch-reviews__title { margin: 0 0 28px; font-size: 32px; font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; }
.ch-reviews__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.ch-reviews__grid > * { min-width: 0; }
.ch-reviews__aside { padding: 24px; border-radius: 20px; background: #f5f3ee; align-self: start; }
.ch-reviews__score { display: flex; align-items: center; gap: 16px; }
.ch-reviews__score strong { font-size: 56px; font-weight: 400; line-height: 1; letter-spacing: -0.04em; }
.ch-reviews__score > div > span:last-child { display: block; margin-top: 6px; font-size: 13px; color: #6b7892; }
.ch-reviews__bars { margin: 20px 0 0; padding: 0; list-style: none; }
.ch-reviews__bars li { display: grid; grid-template-columns: 56px minmax(0, 1fr) 24px; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 13px; color: #3d475c; }
.ch-reviews__bars li span:last-child { text-align: right; }
.ch-reviews__bar { display: block; height: 8px; border-radius: 999px; background: #e1ddd2; overflow: hidden; }
.ch-reviews__bar i { display: block; height: 100%; border-radius: 999px; background: #c8922e; }
.ch-reviews__none { margin: 0; font-size: 15px; line-height: 1.55; color: #3d475c; }
.ch-reviews__write { display: block; width: 100%; height: 50px; margin-top: 22px; border: 0; border-radius: 999px; background: #01123b; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.ch-reviews__write:hover { background: #0a2463; }

.ch-reviews__list { margin: 0; padding: 0; list-style: none; }
.ch-review { margin: 0; padding: 22px 0; border-bottom: 1px solid #e3e6ec; }
.ch-review:first-child { padding-top: 0; }
.ch-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ch-review__title { font-size: 16px; font-weight: 600; }
.ch-review__text { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: #1b2540; overflow-wrap: anywhere; }
.ch-review__by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 12px 0 0; font-size: 13px; color: #6b7892; }
.ch-review__by span:first-child { font-weight: 600; color: #01123b; }
.ch-review__badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: #e6f4ec; color: #0f7a47; font-size: 12px; font-weight: 600; }
.ch-review__badge::before { content: "\2713"; }
.ch-reviews__more { display: block; height: 46px; margin: 24px auto 0; padding: 0 26px; border: 1px solid rgba(1, 18, 59, 0.3); border-radius: 999px; background: #fff; color: #01123b; font-size: 14px; font-weight: 600; cursor: pointer; }
.ch-reviews__more:hover { background: #f5f3ee; }

.ch-reviews__form { margin: 0 0 32px; padding: 24px; border: 1px solid #e3e6ec; border-radius: 20px; background: #fff; }
.ch-reviews__form h3 { margin: 0 0 16px; font-size: 20px; font-weight: 500; line-height: 1.3; }
.ch-reviews__verified { display: inline-block; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px; background: #e6f4ec; color: #0f7a47; font-size: 13px; font-weight: 600; }
.ch-reviews__rating { margin: 0 0 18px; padding: 0; border: 0; }
.ch-reviews__rating legend, .ch-reviews__field > span { display: block; margin: 0 0 6px; padding: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: #01123b; }
/* The stars are listed 5 to 1 and shown right to left, so "this star and those after it in the code" are the ones to its left. */
.ch-reviews__stars-input { display: inline-flex; flex-direction: row-reverse; }
.ch-reviews__stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ch-reviews__stars-input label { padding: 0 3px; font-size: 34px; line-height: 1; color: #d5d8df; cursor: pointer; }
.ch-reviews__stars-input label::before { content: "\2605"; }
.ch-reviews__stars-input label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ch-reviews__stars-input input:checked ~ label,
.ch-reviews__stars-input label:hover,
.ch-reviews__stars-input label:hover ~ label { color: #c8922e; }
.ch-reviews__stars-input input:focus-visible + label { outline: 2px solid #01123b; outline-offset: 2px; border-radius: 4px; }
.ch-reviews__field { display: block; margin: 0 0 16px; }
.ch-reviews__field input, .ch-reviews__field textarea { display: block; width: 100%; padding: 12px 14px; border: 1px solid #c6c4bd; border-radius: 12px; background: #fff; font-size: 16px; line-height: 1.5; color: #01123b; }
.ch-reviews__field input:focus, .ch-reviews__field textarea:focus { border-color: #01123b; outline: 2px solid rgba(1, 18, 59, 0.2); outline-offset: 1px; }
.ch-reviews__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ch-reviews__message { margin: 0 0 14px; font-size: 14px; color: #b42318; }
.ch-reviews__form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ch-reviews__send { height: 50px; padding: 0 28px; border: 0; border-radius: 999px; background: #01123b; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.ch-reviews__send:hover { background: #0a2463; }
.ch-reviews__send:disabled { opacity: 0.6; cursor: default; }
.ch-reviews__cancel { padding: 10px; border: 0; background: none; color: #6b7892; font-size: 14px; text-decoration: underline; cursor: pointer; }
.ch-reviews__small { margin: 14px 0 0; font-size: 12px; color: #6b7892; }
.ch-reviews__thanks { margin: 0 0 28px; padding: 16px 20px; border-radius: 14px; background: #e6f4ec; color: #0f7a47; font-size: 15px; font-weight: 600; }

@media (min-width: 900px) {
    .ch-reviews__grid { grid-template-columns: 320px minmax(0, 1fr); gap: 56px; }
    .ch-reviews__aside { position: sticky; top: 120px; }
}
