/* tema: alinhar avaliações ao visual do v3-final (Plus Jakarta Sans + paleta quente).
   Modal vai no <body> (fora do .fg-app), por isso os tokens ficam nos proprios containers. */
.pd-reviews, #reviews-page, .rpm-overlay {
  --shopee-orange:#1351d8;
  font-family:'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:#211c15;
}
/* mata o flash: esconde os tst-card nativos antes do reviews.js trocar a secao */
section.sec.tst{display:none !important;}

:root{--shopee-orange: #1351d8}


    
    .pd-reviews {
      background: #fffefb;
      padding: 16px;
    }


    .pd-reviews-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }


    .pd-reviews-title {
      font-size: 15px;
      font-weight: 500;
      color: #211c15;
      display: flex;
      align-items: center;
      gap: 6px;
    }


    .pd-reviews-title .star {
      color: #f5a623;
      font-size: 18px;
    }


    .pd-reviews-more {
      font-size: 13px;
      color: #968d7e;
    }


    .pd-reviews-tags {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      margin-bottom: 20px;
      padding-bottom: 4px;
    }


    .pd-reviews-tags::-webkit-scrollbar {
      display: none;
    }


    .review-tag {
      white-space: nowrap;
      padding: 5px 12px;
      border: 1px solid #eee8e0;
      border-radius: 20px;
      font-size: 12px;
      color: #5b544a;
      background: #fffefb;
      cursor: pointer;
      user-select: none;
      transition: all 0.2s ease;
    }


    .review-tag.active {
      border-color: var(--shopee-orange);
      color: var(--shopee-orange);
      background: #e9f7ef;
    }


    .pd-review-card {
      padding: 16px 0;
      border-top: 1px solid #f6f2eb;
      cursor: pointer;
    }


    .review-user-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }


    .review-user-left {
      display: flex;
      align-items: center;
      gap: 8px;
    }


    .review-avatar-circle {
      width: 24px;
      height: 24px;
      background: #eee8e0;
      border-radius: 50%;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }


    .review-username {
      font-size: 13px;
      color: #211c15;
      font-weight: 400;
    }


    .review-useful {
      font-size: 11px;
      color: #968d7e;
      display: flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      user-select: none;
      transition: all 0.2s ease;
    }


    .review-useful svg {
      transition: all 0.2s ease;
    }


    .pd-review-stars {
      color: #f5a623;
      font-size: 10px;
      margin-bottom: 10px;
      letter-spacing: 1px;
    }


    .review-criteria {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin-bottom: 12px;
    }


    .review-criteria-item {
      font-size: 12px;
      color: #968d7e;
      font-weight: 400;
    }


    .review-criteria-item span {
      color: #211c15;
      font-weight: 600;
    }


    .pd-review-text {
      font-size: 14px;
      color: #211c15;
      line-height: 1.5;
      margin-bottom: 12px;
    }


    .review-media-grid {
      display: flex;
      gap: 8px;
      margin-top: 10px;
    }


    .media-thumb {
      width: calc((100% - 16px) / 3);
      aspect-ratio: 1;
      border-radius: 4px;
      overflow: hidden;
      position: relative;
      background: #f6f2eb;
    }


    .media-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }


    .media-badge {
      position: absolute;
      right: 6px;
      bottom: 6px;
      background: rgba(0, 0, 0, 0.5);
      color: #fffefb;
      font-size: 9px;
      padding: 1px 4px;
      border-radius: 2px;
      display: flex;
      align-items: center;
      gap: 3px;
    }


    
    .reviews-page {
      position: fixed;
      inset: 0;
      background: #fbf8f3;
      z-index: 300;
      transform: translateX(100%);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      overflow-y: auto;
    }


    .rp-header {
      position: sticky;
      top: 0;
      background: #fffefb;
      display: flex;
      align-items: center;
      padding: 12px 16px;
      border-bottom: 1px solid #eee8e0;
      z-index: 10;
    }


    .rp-back {
      background: none;
      border: none;
      color: var(--shopee-orange);
      cursor: pointer;
      padding: 4px;
      margin-right: 12px;
    }


    .rp-title {
      font-size: 16px;
      font-weight: 500;
      color: #211c15;
    }


    .rp-summary {
      background: #fffefb;
      padding: 16px;
      display: flex;
      gap: 20px;
      margin-bottom: 8px;
    }


    .rp-score {
      font-size: 28px;
      font-weight: 700;
      color: var(--shopee-orange);
    }


    .rp-stars-row {
      color: var(--shopee-orange);
      font-size: 12px;
    }


    .rp-filters {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }


    .rp-filter-btn {
      padding: 4px 10px;
      border: 1px solid #eee8e0;
      background: #fffefb;
      border-radius: 4px;
      font-size: 11px;
      color: #5b544a;
      cursor: pointer;
      user-select: none;
      transition: all 0.2s ease;
    }


    .rp-filter-btn.active {
      border-color: var(--shopee-orange);
      color: var(--shopee-orange);
      background: #e9f7ef;
    }


    .rp-review {
      background: #fffefb;
      padding: 16px;
      border-bottom: 1px solid #eee8e0;
    }


    .rp-reviewer-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }


    .rp-reviewer-left {
      display: flex;
      align-items: center;
      gap: 8px;
    }


    .rp-avatar {
      width: 24px;
      height: 24px;
      background: #f6f2eb;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }


    .rp-username {
      font-size: 12px;
      color: #211c15;
    }


    .rp-util {
      font-size: 11px;
      color: #968d7e;
      cursor: pointer;
    }


    .rp-review-stars {
      color: #f5a623;
      font-size: 10px;
      margin-bottom: 4px;
    }


    .rp-variation {
      font-size: 11px;
      color: #968d7e;
      margin-bottom: 8px;
    }


    .rp-review-text {
      font-size: 13px;
      color: #211c15;
      line-height: 1.5;
      margin-bottom: 12px;
    }


    .rp-photos {
      display: flex;
      gap: 6px;
      margin-bottom: 12px;
    }


    .rp-photo-main {
      width: 60%;
      aspect-ratio: 16/9;
      border-radius: 4px;
      position: relative;
    }


    .rp-photo-col {
      width: 38%;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }


    .rp-photo-sm, .rp-photo-sm2 {
      flex: 1;
      border-radius: 4px;
    }


    .rp-date {
      font-size: 11px;
      color: #968d7e;
      margin-bottom: 10px;
    }


    .rp-vendor-reply {
      background: #f6f2eb;
      padding: 10px;
      border-radius: 4px;
      font-size: 12px;
      color: #5b544a;
      line-height: 1.4;
      position: relative;
    }


    .rp-vendor-text {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }


    .rp-chevron {
      position: absolute;
      right: 10px;
      bottom: 10px;
    }


    
    .rpm-overlay {
      position: fixed;
      inset: 0;
      background: #000;
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
    }


    .rpm-close {
      position: absolute;
      top: 20px;
      right: 20px;
      color: #fffefb;
      cursor: pointer;
      z-index: 21;
    }


    .rpm-img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }


    
    .rpm-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.9);
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s ease;
    }


    .rpm-img {
      max-width: 95%;
      max-height: 85%;
      object-fit: contain;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }


    .rpm-close {
      position: absolute;
      top: 20px;
      right: 20px;
      color: #fffefb;
      cursor: pointer;
      padding: 10px;
    }


    .rp-util.active {
      color: var(--shopee-orange);
    }


    .rp-util.active svg {
      stroke: var(--shopee-orange);
      fill: var(--shopee-orange);
    }


    .rp-vendor-reply {
      cursor: pointer;
    }


    .rp-vendor-text {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      transition: all 0.3s ease;
    }


    .rp-chevron {
      transition: transform 0.3s ease;
    }


    .rp-summary {
      background: #fffefb;
      padding: 16px;
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 6px;
    }


    .rp-score {
      font-size: 36px;
      font-weight: 900;
      color: #211c15;
      line-height: 1;
    }


    .rp-stars-row {
      color: #f5a623;
      font-size: 18px;
      margin-top: 4px;
    }


    .rp-filter-btn {
      border: 1.5px solid #eee8e0;
      background: #fffefb;
      border-radius: 20px;
      padding: 6px 14px;
      font-size: 12px;
      font-weight: 600;
      color: #5b544a;
      cursor: pointer;
    }


    .rp-review {
      background: #fffefb;
      padding: 16px;
      margin-bottom: 6px;
    }


    .rp-reviewer-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
    }


    .rp-reviewer-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }


    .rp-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #eee8e0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      color: #968d7e;
      flex-shrink: 0;
    }


    .rp-username {
      font-size: 13px;
      color: #211c15;
      font-weight: 500;
    }


    .rp-util {
      font-size: 12px;
      color: #968d7e;
      display: flex;
      align-items: center;
      gap: 8px;
    }


    .rp-review-stars {
      color: #f5a623;
      font-size: 15px;
      margin-bottom: 4px;
    }


    .rp-variation {
      font-size: 12px;
      color: #968d7e;
      margin-bottom: 8px;
    }


    .rp-review-text {
      font-size: 14px;
      color: #211c15;
      line-height: 1.6;
      margin-bottom: 10px;
    }


    .rp-photos {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 4px;
      margin-bottom: 10px;
      border-radius: 8px;
      overflow: hidden;
    }


    .rp-photo-main {
      background: #c8b89a;
      aspect-ratio: 1.1;
      position: relative;
      display: flex;
      align-items: flex-end;
      padding: 6px;
    }


    .rp-photo-col {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }


    .rp-photo-sm {
      background: #b8a888;
      flex: 1;
      min-height: 60px;
    }


    .rp-photo-sm2 {
      background: #a89070;
      flex: 1;
      min-height: 60px;
    }


    .rp-date {
      font-size: 12px;
      color: #968d7e;
      margin-bottom: 10px;
    }


    .rp-vendor-reply {
      background: #f6f2eb;
      border-radius: 8px;
      padding: 12px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      margin-bottom: 10px;
    }


    .rp-vendor-text {
      font-size: 13px;
      color: #5b544a;
    }


    .rp-vendor-text strong {
      color: #211c15;
    }


/* regras de ESTADO (open/active/liked/expanded) — recuperadas da fonte;
   sem elas o modal/lightbox/filtros nao abriam */


    .review-tag.active {
      border-color: var(--shopee-orange);
      color: var(--shopee-orange);
      background: #e9f7ef;
    }


    .review-useful.liked {
      color: var(--shopee-orange);
      font-weight: 500;
    }


    .review-useful.liked svg {
      fill: var(--shopee-orange);
      stroke: var(--shopee-orange);
    }


    .reviews-page.open {
      transform: translateX(0);
    }


    .rp-filter-btn.active {
      border-color: var(--shopee-orange);
      color: var(--shopee-orange);
      background: #e9f7ef;
    }


    .rp-vendor-reply.expanded .rp-vendor-text {
      -webkit-line-clamp: unset;
    }


    .rpm-overlay.open {
      display: flex;
    }


    .rpm-overlay.open {
      display: flex;
      opacity: 1;
    }


    .rp-util.active {
      color: var(--shopee-orange);
    }


    .rp-util.active svg {
      stroke: var(--shopee-orange);
      fill: var(--shopee-orange);
    }


    .rp-vendor-reply.expanded .rp-chevron {
      transform: rotate(180deg);
    }


    .rp-tab.active {
      color: var(--shopee-orange);
      border-bottom-color: var(--shopee-orange);
    }

/* cabeçalho da prévia: rating alinhado ao buy-rating nativo (5 estrelas + score + contagem) */
.pd-reviews-title{ white-space:nowrap; }
.pd-reviews-title .star{ letter-spacing:1px; line-height:1; }
.pd-reviews-title strong{ font-weight:700; color:#211c15; }
.pd-reviews-count{ color:#968d7e; font-weight:400; font-size:13px; }
.pd-reviews-more{ flex:none; white-space:nowrap; }

/* remover a seção branca "FORMAS DE PAGAMENTO / PIX" (a pedido) */
section.pay{ display:none !important; }
