/* Gem Theory's product reviews (local-reviews.js): summary under the product title, the review list
   under the product, the homepage's "What our customers say", the review form and /admin/reviews. */
.gr, .gr *, .gr-form *, .gr-admin__item * { box-sizing: border-box; }
.gr-stars { display: inline-flex; gap: 1px; color: var(--gt-gold, #D4A64A); font-size: 16px; line-height: 1; letter-spacing: 0; white-space: nowrap; }
.gr-stars__off { color: #D9D2C4; }
.gr-stars--small { font-size: 13px; }
.gr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* under the product title */
.gr-summary { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 8px; font-size: 14px; color: var(--gt-ink, #0B3B3C) !important; text-decoration: none !important; }
.gr-summary b { font-weight: 700; }
.gr-summary > span:last-child { color: #5C6B69; text-decoration: underline; text-underline-offset: 3px; }

/* the section under the product, and on the homepage */
.gr { padding: 40px 0; border-top: 1px solid var(--gt-line, #E9DFD0); background: var(--gt-cream, #FBF8F3); }
.gr-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.gr h2 { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(21px, 2.2vw, 27px); font-weight: 600; color: var(--gt-ink, #0B3B3C); text-transform: none; letter-spacing: 0; }
.gr-overview { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; margin: 0 0 22px; }
.gr-overview__score { display: grid; justify-items: start; gap: 4px; margin: 0; }
.gr-overview__score b { font-size: 40px; line-height: 1; color: var(--gt-ink, #0B3B3C); }
.gr-overview__score .gr-stars { font-size: 20px; }
.gr-overview__score span:last-child { font-size: 13px; color: #5C6B69; }
.gr-bars { display: grid; gap: 6px; min-width: 240px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: #3E5250; }
.gr-bars li { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 10px; }
.gr-bar { display: block; height: 8px; border-radius: 4px; background: #E7E0D3; overflow: hidden; }
.gr-bar span { display: block; height: 100%; background: var(--gt-gold, #D4A64A); }
.gr-empty { margin: 0 0 12px; font-size: 15px; color: #3E5250; }
.gr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gr-list--row { grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.gr-list--row .gr-review { scroll-snap-align: start; }
.gr-review { display: grid; align-content: start; gap: 8px; padding: 18px; border: 1px solid var(--gt-line, #E9DFD0); border-radius: 12px; background: #fff; }
.gr-review__title { margin: 0; font-size: 15px; font-weight: 700; color: var(--gt-ink, #0B3B3C); text-transform: none; letter-spacing: 0; }
.gr-review__body { margin: 0; font-size: 14px; line-height: 1.6; color: #33504F; overflow-wrap: anywhere; }
.gr-review footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: #5C6B69; }
.gr-review footer b { color: var(--gt-ink, #0B3B3C); font-size: 13px; }
.gr-verified { padding: 2px 8px; border-radius: 999px; background: var(--gt-teal-tint, #E3F0EE); color: var(--gt-teal, #0E5E62); font-weight: 600; }
.gr-review__product { font-size: 13px; font-weight: 600; color: var(--gt-teal, #0E5E62) !important; }
.gr-note { margin: 18px 0 0; font-size: 13px; color: #5C6B69; }
.gr-note a { color: var(--gt-teal, #0E5E62); text-decoration: underline; }

/* My account: order lines */
.gr-write, .gr-mine { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; }
.gr-mine { color: #5C6B69; }

/* the review form: stars from right to left in the markup, so "this one and the ones before it" light up */
.gr-rate { margin: 0; padding: 0; border: 0; }
.gr-rate legend { margin-bottom: 6px; font-weight: 600; }
.gr-rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.gr-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gr-rate__stars label { font-size: 34px; line-height: 1; color: #D9D2C4; cursor: pointer; padding: 2px; }
.gr-rate__stars input:checked ~ label, .gr-rate__stars label:hover, .gr-rate__stars label:hover ~ label { color: var(--gt-gold, #D4A64A); }
.gr-rate__stars input:focus-visible + label { outline: 2px solid var(--gt-teal, #0E5E62); outline-offset: 2px; border-radius: 4px; }
.gr-form textarea { width: 100%; min-height: 140px; padding: 12px; border: 1px solid #CFC6B6; border-radius: 10px; font: inherit; resize: vertical; }

/* /admin/reviews */
.gr-admin__item { display: grid; gap: 8px; margin: 0 0 14px; padding: 16px; border: 1px solid var(--gt-line, #E9DFD0); border-left-width: 4px; border-radius: 10px; background: #fff; }
.gr-admin__item--pending { border-left-color: var(--gt-gold, #D4A64A); }
.gr-admin__item--approved { border-left-color: var(--gt-teal, #0E5E62); }
.gr-admin__item--rejected { border-left-color: #A32B2B; opacity: .75; }
.gr-admin__item h3 { margin: 0; font-size: 15px; }
.gr-admin__item p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.gr-admin__item header a { font-weight: 600; }
.gr-admin__item footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: #5C6B69; }
.gr-admin__item footer form { display: flex; gap: 8px; margin-left: auto; }
.gr-admin__state { text-transform: capitalize; font-weight: 600; }

@media (max-width: 749px) {
  .gr { padding: 30px 0; }
  .gr-wrap { padding: 0 16px; }
  .gr-list:not(.gr-list--row) { grid-template-columns: 1fr; }
  .gr-list--row { grid-auto-columns: 85%; }
  .gr-bars { min-width: 0; width: 100%; }
  .gr-admin__item footer form { margin-left: 0; }
}
