/* Approved reviews on a product's page and the charm bar's (views/reviews-section.js) */

/* five stars; the second row is clipped to the rating, so 4.6 fills part of the fifth */
.rvs-stars{position:relative;display:inline-flex;flex:none;line-height:0;vertical-align:middle}
.rvs-stars__base,.rvs-stars__fill{display:inline-flex;gap:1px}
.rvs-stars__fill{position:absolute;inset:0 auto 0 0;overflow:hidden;white-space:nowrap}
.rvs-stars svg{flex:none}
.rvs-stars__base svg{fill:var(--lilac-soft)}
.rvs-stars__fill svg{fill:var(--marigold)}

/* beside the price: stars, average and count, linking down to the section */
.rvs-summary{display:inline-flex;align-items:center;gap:8px;margin-top:10px;font:14px var(--sans);color:var(--plum-ink)}
.rvs-summary__count{color:var(--stone)}
.rvs-summary:hover .rvs-summary__count{color:var(--violet);text-decoration:underline}

.rvs{margin-top:56px;padding-top:36px;border-top:1px solid var(--hairline);scroll-margin-top:96px}
.rvs__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:10px 24px}
.rvs__title{margin:0;font:500 34px/1.15 var(--serif);color:var(--plum)}
.rvs__overall{margin:0;display:inline-flex;align-items:center;gap:10px;font:15px var(--sans);color:var(--plum-ink)}
.rvs__overall strong{font-weight:600}

.rvs__list{list-style:none;margin:22px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rvs-item{background:var(--paper);border:1px solid var(--hairline);border-radius:16px;padding:20px 22px;display:flex;flex-direction:column;gap:12px;min-width:0}
.rvs-item__top{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.rvs-item__name{font:600 15px var(--sans);color:var(--plum-ink);overflow-wrap:anywhere}
.rvs-item__badge{font:500 11px var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--sage);background:#EEF3E6;border-radius:999px;padding:3px 9px}
.rvs-item__date{margin-left:auto;font:13px var(--sans);color:var(--stone)}
.rvs-item__body{font:15px/1.65 var(--sans);color:var(--plum-ink);overflow-wrap:break-word}
.rvs-item__body p{margin:0 0 10px}
.rvs-item__body p:last-child{margin-bottom:0}
.rvs-item__photos{display:flex;flex-wrap:wrap;gap:8px}
.rvs-item__photo{display:block;border-radius:12px;overflow:hidden;line-height:0}
.rvs-item__photo img{width:96px;height:96px;object-fit:cover;background:var(--lilac-soft);transition:transform .2s ease}
.rvs-item__photo:hover img{transform:scale(1.04)}
.rvs-item__photo:focus-visible{outline:2px solid var(--violet);outline-offset:2px}
.rvs__more{margin:16px 0 0;font:13px var(--sans);color:var(--stone)}

/* the charm bar: the section sits under the builder, inside its own container */
.cb .rvs{margin-top:48px}

@media (max-width:760px){
  .rvs{margin-top:40px;padding-top:28px}
  .rvs__title{font-size:28px}
  .rvs__list{grid-template-columns:minmax(0,1fr)}
  .rvs-item{padding:18px}
  .rvs-item__photo img{width:84px;height:84px}
}
