/* Reviews (includes/reviews.php): stars, the product page section and the leave-a-review page. */

.ufo-stars { position: relative; display: inline-block; font-size: 17px; line-height: 1; letter-spacing: 2px; color: rgba(21, 26, 29, 0.18); white-space: nowrap; }
.ufo-stars__on { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--ember, #e05a2a); }
.ufo-stars--lg { font-size: 24px; }

/* Beside the price. */
#et-boc .ufo-rating-line { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--ink-muted, #4b5459); font-size: 15px; text-decoration: none; }
#et-boc .ufo-rating-line:hover span:last-child { text-decoration: underline; }

/* Product page section, above "Goes well with". */
#et-boc .ufo-reviews { max-width: 880px; margin: 0 auto 72px; scroll-margin-top: 120px; }
#et-boc .ufo-reviews__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
#et-boc .ufo-reviews__head h2 { margin: 0; font-size: clamp(30px, 4.4vw, 44px); }
#et-boc .ufo-reviews__summary { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; color: var(--ink-muted, #4b5459); font-size: 16px; }
#et-boc .ufo-reviews__summary b { color: var(--ink, #151a1d); font-size: 22px; }
#et-boc .ufo-reviews__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
#et-boc .ufo-review { margin: 0; padding: 20px 22px; background: #fff; border: 1px solid var(--line-light, rgba(21, 26, 29, 0.14)); border-radius: 10px; }
#et-boc .ufo-reviews:not(.is-open) .ufo-review.is-more { display: none; }
#et-boc .ufo-review blockquote { margin: 10px 0 0; padding: 0; border: 0; font-size: 17px; line-height: 1.55; color: var(--ink, #151a1d); font-style: normal; }
#et-boc .ufo-review blockquote p { margin: 0 0 8px; padding: 0; }
#et-boc .ufo-review__by { margin: 10px 0 0; padding: 0; font-size: 14px; color: var(--ink-muted, #4b5459); }
#et-boc .ufo-review__by b { color: var(--ink, #151a1d); }
#et-boc .ufo-review__verified { display: inline-block; margin: 0 6px; padding: 2px 8px; border-radius: 99px; background: rgba(26, 82, 170, 0.08); color: var(--heritage, #1a52aa); font-size: 12.5px; font-weight: 600; }
#et-boc .ufo-review__reply { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--heritage, #1a52aa); background: #f6f4ef; font-size: 15px; }
#et-boc .ufo-review__reply b { display: block; margin-bottom: 4px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 14px; }
#et-boc .ufo-review__reply p { margin: 0; padding: 0; }
#et-boc .ufo-reviews__more { margin-top: 18px; }

/* The leave-a-review page. */
#et-boc .ufo-review-page { max-width: 720px; margin: 0 auto; padding: 56px 20px 80px; }
#et-boc .ufo-review-page h1 { margin: 0 0 12px; font-size: clamp(34px, 6vw, 52px); }
#et-boc .ufo-review-page__lede, #et-boc .ufo-review-page p { font-size: 18px; line-height: 1.55; }
#et-boc .ufo-review-page__thanks { padding: 14px 18px; border-radius: 8px; background: #e8f3ec; color: #1d5a35; }
#et-boc .ufo-review-form { display: grid; gap: 18px; margin-top: 28px; }
#et-boc .ufo-review-item { margin: 0; padding: 20px 22px 22px; border: 1px solid var(--line-light, rgba(21, 26, 29, 0.14)); border-radius: 12px; background: #fff; }
#et-boc .ufo-review-item__head { display: flex; align-items: center; gap: 14px; padding: 0; font-family: var(--font-display); font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: 0.03em; }
#et-boc .ufo-review-item__head img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line-light, rgba(21, 26, 29, 0.14)); }
#et-boc .ufo-stars-pick { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin: 14px 0 6px; }
#et-boc .ufo-stars-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#et-boc .ufo-stars-pick label { display: grid; place-items: center; width: 46px; height: 46px; font-size: 36px; line-height: 1; color: rgba(21, 26, 29, 0.2); cursor: pointer; transition: color 0.12s; }
#et-boc .ufo-stars-pick label:hover, #et-boc .ufo-stars-pick label:hover ~ label, #et-boc .ufo-stars-pick input:checked ~ label { color: var(--ember, #e05a2a); }
#et-boc .ufo-stars-pick input:focus-visible + label { outline: 2px solid var(--heritage, #1a52aa); outline-offset: 2px; border-radius: 6px; }
#et-boc .ufo-review-item__text, #et-boc .ufo-review-form__name { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
#et-boc .ufo-review-form textarea, #et-boc .ufo-review-form input[type="text"] { width: 100%; padding: 12px 14px; border: 1px solid rgba(21, 26, 29, 0.25); border-radius: 8px; font: inherit; font-weight: 400; font-size: 17px; background: #fff; }
#et-boc .ufo-review-form__note { margin: 0; font-size: 14px !important; color: var(--ink-muted, #4b5459); }
#et-boc .ufo-review-form button { justify-self: start; }
#et-boc .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 600px) {
  #et-boc .ufo-reviews { margin-bottom: 48px; }
  #et-boc .ufo-reviews__head { flex-direction: column; align-items: center; text-align: center; }
  #et-boc .ufo-review { padding: 16px; }
  #et-boc .ufo-review-page { padding-top: 32px; }
  #et-boc .ufo-review-form button { justify-self: stretch; }
}
