@font-face {
  font-family: 'RPGR Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/reviews/poppins-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'RPGR Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/reviews/poppins-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.rpgr, .rpgr-modal {
  --rpgr-star: #fbc531;
  --rpgr-ink: #000;
  --rpgr-ink-2: #282828;
  --rpgr-line: #e8e8e8;
  font-family: 'RPGR Poppins', Poppins, sans-serif;
  font-size: 12px;
  line-height: 17.1429px;
  color: var(--rpgr-ink);
  text-align: left;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
}
.rpgr *, .rpgr *::before, .rpgr *::after,
.rpgr-modal *, .rpgr-modal *::before, .rpgr-modal *::after { box-sizing: border-box; }
.rpgr button, .rpgr-modal button {
  font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer;
  letter-spacing: normal; text-transform: none; min-height: 0; box-shadow: none;
}
.rpgr button::before, .rpgr button::after { display: none; }
.rpgr p, .rpgr-modal p { margin: 0; }
.rpgr-star { display: block; width: 1em; height: 1em; color: var(--rpgr-star); flex: none; }
.rpgr-stars { display: inline-flex; gap: 2px; vertical-align: middle; }

/* ---------- Header ---------- */
.rpgr { position: relative; width: 100%; padding: 0 0 30px; }
.rpgr__header {
  position: relative; display: flex; align-items: center; flex-wrap: wrap;
  padding: 20px 7px 0; min-height: 60px; z-index: 3;
}
.rpgr__summary { display: inline-flex; align-items: center; gap: 10px; height: 25px; color: var(--rpgr-ink-2); }
.rpgr__summary .rpgr-stars { font-size: 24px; }
.rpgr__count { font-size: 16px; line-height: 25px; white-space: nowrap; }
.rpgr__summary .rpgr-chevron { width: 20px; height: 20px; margin-left: -4px; transition: transform .15s; }
.rpgr__summary[aria-expanded="true"] .rpgr-chevron { transform: rotate(180deg); }
.rpgr__actions { margin-left: auto; display: flex; gap: 7px; }
.rpgr__btn {
  height: 40px; padding: 6px 12px !important; border: 1px solid var(--rpgr-line) !important; border-radius: 2px;
  font-size: 16px !important; line-height: normal !important; color: var(--rpgr-ink) !important; white-space: nowrap;
}
.rpgr__btn:hover, .rpgr__btn[aria-expanded="true"] { background: #f5f5f5 !important; }
.rpgr__sort-btn { width: 37px; padding: 8px 6px 2px !important; display: flex; align-items: flex-start; justify-content: center; }
.rpgr__sort-btn svg { width: 20px; height: 20px; }

/* Dropdowns */
.rpgr__dropdown {
  position: absolute; top: 64px; background: #fff; border-radius: 4px;
  box-shadow: 0 6px 14px -4px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.03); z-index: 5;
}
.rpgr__dist { left: 6px; width: 403px; padding: 20px 20px 16px; }
.rpgr__dist-avg { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; font-size: 32px; line-height: 40px; color: var(--rpgr-ink-2); }
.rpgr__dist-avg .rpgr-star { width: 34px; height: 34px; }
.rpgr__dist-row {
  display: flex; align-items: center; width: 100%; height: 30px; padding: 0 4px !important; border-radius: 4px;
  font-size: 14px !important; color: var(--rpgr-ink-2) !important;
}
.rpgr__dist-row:hover, .rpgr__dist-row.is-active { background: #f5f5f5 !important; }
.rpgr__dist-row .rpgr-stars { font-size: 18px; width: 100px; }
.rpgr__bar { flex: 1; height: 8px; margin: 0 10px; background: #f0f0f0; border-radius: 0; overflow: hidden; }
.rpgr__bar span { display: block; height: 100%; background: #7d7d7d; }
.rpgr__dist-row .rpgr__num { width: 42px; text-align: left; }
.rpgr__sort { right: 7px; width: 275px; padding: 20px; }
.rpgr__sort-title { font-size: 18px; line-height: 26px; font-weight: 600; margin-bottom: 10px; }
.rpgr__sort-opt {
  display: flex; align-items: center; justify-content: space-between; width: 100%; height: 45px;
  font-size: 14px !important; line-height: 21px !important; color: var(--rpgr-ink) !important;
}
.rpgr__sort-opt svg { width: 20px; height: 20px; visibility: hidden; }
.rpgr__sort-opt.is-active svg { visibility: visible; }

/* ---------- Grid ---------- */
.rpgr__grid { position: relative; margin-top: 14px; transition: height .2s; }
.rpgr__item { position: absolute; top: 0; left: 0; padding: 7px; }
.rpgr__card {
  display: block; width: 100%; background: #fff; border-radius: 2px; overflow: hidden; cursor: pointer;
  box-shadow: 0 0 3px 0 rgba(0,0,0,.2); text-align: left;
}
.rpgr__card:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.rpgr__media { position: relative; margin: -1px -1px 0; background: #181818; overflow: hidden; }
.rpgr__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rpgr__multi {
  position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 2px;
  padding: 2px 6px 2px 4px; border-radius: 14px; background: rgba(255,255,255,.75); color: #222;
  font-size: 14px; line-height: 20px;
}
.rpgr__multi svg { width: 20px; height: 20px; }
.rpgr__main { padding: 10px 0 10px; }
.rpgr__item.no-img .rpgr__main { padding-top: 10px; }
.rpgr__title {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 7px; padding: 0 10px;
  font-size: 16px; line-height: 22.8571px; font-weight: 700; font-synthesis: none;
}
.rpgr__verified { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; font-size: 12px; line-height: 18px; white-space: nowrap; }
.rpgr__verified svg { width: 14px; height: 14px; }
.rpgr__card .rpgr-stars { display: flex; font-size: 14px; height: 20px; align-items: center; padding: 0 10px; margin-top: 6px; }
.rpgr__text { margin-top: 10px; padding: 0 10px; font-size: 14px; line-height: 19px; white-space: pre-wrap; overflow-wrap: break-word; }

.rpgr__more-wrap { text-align: center; padding-top: 16px; }
.rpgr__more {
  height: 32px; padding: 6px 12px !important; border: 1px solid var(--rpgr-line) !important; border-radius: 2px;
  font-size: 12px !important; line-height: 18px !important; color: var(--rpgr-ink-2) !important;
}
.rpgr__more:hover { background: #f5f5f5 !important; }

/* Narrow container: write button gets its own row */
.rpgr.is-narrow .rpgr__actions { display: contents; }
.rpgr.is-narrow .rpgr__sort-btn { order: 2; margin-left: auto; }
.rpgr.is-narrow .rpgr__write { order: 3; flex: 0 0 100%; width: 100%; margin-top: 8px; padding: 4px 10px !important; }
.rpgr.is-narrow .rpgr__dropdown { order: 4; }
.rpgr.is-narrow .rpgr__header { padding-bottom: 0; }
.rpgr.is-narrow .rpgr__summary { gap: 10px; height: 40px; }
.rpgr.is-narrow .rpgr__summary .rpgr-stars { font-size: 19px; }
.rpgr.is-narrow .rpgr__grid { margin-top: 14px; }
.rpgr.is-narrow .rpgr__dist { width: auto; right: 7px; }
.rpgr.is-narrow .rpgr__sort { top: 64px; }

/* ---------- Modal ---------- */
.rpgr-modal {
  position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.714); opacity: 0; transition: opacity .2s;
}
.rpgr-modal.is-open { opacity: 1; }
.rpgr-modal__box {
  position: relative; display: flex; width: 813px; max-width: calc(100vw - 32px); height: 584px; max-height: calc(100vh - 32px);
  background: #fff; box-shadow: 0 0 35px -10px rgba(0,0,0,.25); overflow: hidden; border-radius: 8px;
}
.rpgr-modal.no-img .rpgr-modal__box { width: 420px; height: auto; min-height: 220px; }
.rpgr-modal__media { position: relative; flex: 0 0 438px; background: #181818; overflow: hidden; }
.rpgr-modal__slide { position: absolute; inset: 0; display: none; }
.rpgr-modal__slide.is-active { display: block; }
.rpgr-modal__slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rpgr-modal__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 6px !important;
  border-radius: 8px !important; background: rgba(0,0,0,.4) !important; color: #fff !important; display: flex; z-index: 2;
}
.rpgr-modal__nav svg { width: 24px; height: 24px; }
.rpgr-modal__nav--prev { left: 16px; }
.rpgr-modal__nav--next { right: 16px; }
.rpgr-modal__thumbs { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.rpgr-modal__thumb { width: 56px; height: 56px; padding: 0 !important; border: 2px solid transparent !important; border-radius: 8px !important; overflow: hidden; }
.rpgr-modal__thumb.is-active { border-color: #fff !important; }
.rpgr-modal__thumb img { width: 52px; height: 52px; object-fit: cover; display: block; border-radius: 6px; }
.rpgr-modal__close {
  position: absolute; top: 16px; left: 16px; width: 36px; height: 36px; padding: 6px !important; border-radius: 8px !important;
  background: rgba(0,0,0,.3) !important; color: #fff !important; display: flex; z-index: 3;
}
.rpgr-modal.no-img .rpgr-modal__close { left: auto; right: 16px; background: rgba(0,0,0,.06) !important; color: #000 !important; }
.rpgr-modal__close svg { width: 24px; height: 24px; }
.rpgr-modal__panel { flex: 1; min-width: 0; padding: 24px; overflow-y: auto; position: relative; }
.rpgr-modal.no-img .rpgr-modal__panel { padding-right: 64px; }
.rpgr-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rpgr-modal__name { font-size: 16px; line-height: 24px; font-weight: 500; }
.rpgr-modal__badge { display: flex; align-items: center; gap: 5px; font-size: 14px; line-height: 18px; white-space: nowrap; }
.rpgr-modal__badge svg { width: 16px; height: 16px; }
.rpgr-modal__info { position: relative; display: flex; padding-left: 8px !important; margin-left: 8px !important; border-left: 1px solid #e0e0e0 !important; }
.rpgr-modal__info svg { width: 16px; height: 16px; }
.rpgr-modal__tip {
  position: absolute; top: 46px; right: 20px; width: 300px; padding: 16px; background: #fff; border-radius: 4px;
  box-shadow: 0 8px 10px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.04); font-size: 12px; line-height: 17.1429px; z-index: 4;
}
.rpgr-modal__panel .rpgr-stars { display: flex; font-size: 19px; margin-top: 4px; }
.rpgr-modal__text { margin-top: 12px; font-size: 16px; line-height: 24px; white-space: pre-wrap; overflow-wrap: break-word; }

@media (max-width: 644px) {
  .rpgr-modal { align-items: stretch; }
  .rpgr-modal__box, .rpgr-modal.no-img .rpgr-modal__box { flex-direction: column; width: 100vw; max-width: none; height: 100%; max-height: none; border-radius: 0; }
  .rpgr-modal__media { flex: 0 0 auto; width: 100%; aspect-ratio: 1 / 1; }
  .rpgr-modal__nav { display: none; }
  .rpgr-modal__thumbs { bottom: 16px; }
  .rpgr-modal.no-img .rpgr-modal__panel { padding: 72px 24px 24px; }
  .rpgr-modal.no-img .rpgr-modal__close { left: 16px; right: auto; }
  .rpgr-modal__tip { right: 24px; left: 24px; width: auto; }
}
