/* ============================================================
   ObraX Original — aba "Avaliações" do motor (lc_reviews_tab_content, inc/legacy-helpers.php)
   ------------------------------------------------------------
   As regras .nob-review* moram no lc-redesign.css do motor, que este skin não carrega (EXCLUDE_FILES: ele recolore
   a vitrine inteira). Aqui vai o mesmo bloco (lc-redesign.css 2242-2778 @ skins-p0, pinado no skin.conf) com as cores
   do ObraX no lugar dos tokens --nob-* (marinho #0E2A5C, verde #1FB96B, estrela #F5A623, Nunito Sans herdada) e, no
   fim, o acabamento (números tabulares, text-wrap, :active, foco, contorno das fotos). Só é carregado na PDP com
   avaliação. O comportamento (filtros, ordenação, fotos) está em ob-product.js.
   ============================================================ */
/* PDP reviews block */
.nob-review-suite {
  background: #f4f5f6;
  border-radius: 8px;
  margin: -24px -28px;
  padding: 28px;
  font-family: inherit;
}
.nob-review-suite__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.nob-review-suite__title {
  margin: 0;
  color: #252228;
  font-family: inherit;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
}
.nob-review-suite__title span {
  font-weight: 700;
}
.nob-review-suite__subtitle {
  margin: 6px 0 0;
  color: #6f7379;
  font-size: 13px;
}
.nob-review-suite__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nob-review-select {
  min-width: 178px;
  min-height: 46px;
  border: 1px solid #d8dce1;
  border-radius: 999px;
  background: #fff;
  color: #1A1A1A;
  font-size: 14px;
  font-weight: 700;
  padding: 0 42px 0 18px;
  box-shadow: 0 2px 8px rgba(37,34,40,.04);
}
.nob-review-select--rating {
  min-width: 138px;
}
.nob-review-suite__panel {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 34px;
  background: #fff;
  border: 1px solid #d7dbe0;
  border-radius: 12px;
  padding: 34px;
  box-shadow: 0 14px 34px rgba(37,34,40,.05);
}
.nob-review-summary {
  align-self: start;
  background: #f8f9fa;
  border: 1px solid #dfe3e7;
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 8px 20px rgba(37,34,40,.05);
}
.nob-review-summary__score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.nob-review-summary__score {
  color: #1A1A1A;
  font-family: inherit;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}
.nob-review-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #F5A623;
  font-size: 23px;
  line-height: 1;
}
.nob-review-stars .is-empty {
  color: #d9dde3;
}
.nob-review-stars .is-half {
  background: linear-gradient(90deg, #F5A623 52%, #d9dde3 52%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
.nob-review-summary__line {
  height: 1px;
  background: #e5e7ea;
  margin: 22px 0;
}
.nob-review-summary p {
  margin: 0;
  color: #6b7077;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}
.nob-review-summary p strong {
  color: #1A1A1A;
}
.nob-review-summary__recommend strong {
  color: #1FB96B;
}
.nob-review-summary__filter-title {
  color: #1A1A1A;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 22px;
}
.nob-review-summary__filter-subtitle {
  color: #74777d;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}
.nob-review-bar {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  color: #1A1A1A;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.nob-review-bar__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 30px;
  border: 1px solid #e2e5e8;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}
.nob-review-bar__label span {
  color: #F5A623;
}
.nob-review-bar__track {
  height: 9px;
  border-radius: 999px;
  background: #e9ecef;
  overflow: hidden;
}
.nob-review-bar__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #F5A623;
}
.nob-review-bar__percent {
  color: #1A1A1A;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}
.nob-review-bar:hover .nob-review-bar__label,
.nob-review-bar.is-active .nob-review-bar__label {
  border-color: #1FB96B;
  color: #0E2A5C;
}
.nob-review-highlight {
  padding-bottom: 24px;
  border-bottom: 1px solid #dfe3e7;
}
.nob-review-highlight h3 {
  margin: 0 0 14px;
  color: #1A1A1A;
  font-size: 21px;
  font-weight: 900;
}
.nob-review-highlight p {
  margin: 0;
  color: #2d3035;
  font-size: 16px;
  line-height: 1.55;
}
.nob-review-highlight__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #74777d;
  font-size: 13px;
  font-weight: 800;
}
.nob-review-highlight__note svg {
  color: #4f89e8;
  flex-shrink: 0;
}
.nob-review-list {
  display: grid;
}
.nob-review-list.is-scroll-mode {
  max-height: 720px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 12px;
  scroll-behavior: smooth;
  scrollbar-color: #1FB96B #eceff2;
  scrollbar-width: thin;
}
.nob-review-list.is-scroll-mode::-webkit-scrollbar {
  width: 9px;
}
.nob-review-list.is-scroll-mode::-webkit-scrollbar-track {
  background: #eceff2;
  border-radius: 999px;
}
.nob-review-list.is-scroll-mode::-webkit-scrollbar-thumb {
  background: #1FB96B;
  border-radius: 999px;
}
.nob-review-suite.is-scroll-mode .nob-review-content {
  position: relative;
}
.nob-review-suite.is-scroll-mode .nob-review-list {
  border-top: 1px solid #edf0f2;
  border-bottom: 1px solid #edf0f2;
}
.nob-review-card {
  padding: 24px 0;
  border-bottom: 1px solid #edf0f2;
}
.nob-review-card.is-hidden {
  display: none;
}
.nob-review-card__head,
.nob-review-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nob-review-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1A1A1A;
  font-size: 16px;
  font-weight: 900;
}
.nob-review-card__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #a8adb4;
  background: #f0f2f4;
  flex-shrink: 0;
}
.nob-review-card__avatar svg {
  width: 18px;
  height: 18px;
}
.nob-review-card time {
  color: #747b84;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.nob-review-card__stars-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 14px;
}
.nob-review-card__stars {
  font-size: 18px;
}
.nob-review-card__verified {
  color: #1FB96B;
  background: rgba(31,185,107,.12);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
}
.nob-review-card__text {
  color: #2d3035;
  font-size: 16px;
  line-height: 1.55;
}
.nob-review-card__text p {
  margin: 0 0 8px;
}
.nob-review-card__empty {
  color: #7c838b;
  font-style: italic;
}
.nob-review-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.nob-review-images__item {
  appearance: none;
  display: block;
  width: 86px;
  height: 86px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8dce1;
  border-radius: 8px;
  background: #f5f7fa;
  cursor: zoom-in;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.nob-review-images__item:hover,
.nob-review-images__item:focus-visible {
  border-color: #0E2A5C;
  box-shadow: 0 10px 24px rgba(37, 42, 48, .14);
  transform: translateY(-1px);
  outline: none;
}
.nob-review-images__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nob-review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(23, 18, 28, .82);
  backdrop-filter: blur(4px);
}
.nob-review-lightbox.is-open {
  display: grid;
}
.nob-review-lightbox img {
  display: block;
  max-width: min(92vw, 980px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  object-fit: contain;
}
.nob-review-lightbox__close {
  appearance: none;
  position: fixed;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s, transform .16s;
}
.nob-review-lightbox__close:hover,
.nob-review-lightbox__close:focus-visible {
  background: rgba(255,255,255,.24);
  transform: scale(1.04);
  outline: none;
}
body.nob-review-lightbox-open {
  overflow: hidden;
}
.nob-review-card__actions {
  margin-top: 20px;
}
.nob-review-helpful,
.nob-review-icon-btn,
.nob-review-flag {
  appearance: none;
  min-height: 44px;
  border: 1px solid #d8dce1;
  border-radius: 8px;
  background: #fff;
  color: #747b84;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 900;
  font-family: inherit;
  transition: color .16s, border-color .16s, background .16s;
}
.nob-review-helpful {
  padding: 0 16px;
}
.nob-review-icon-btn,
.nob-review-flag {
  width: 46px;
}
.nob-review-flag {
  margin-left: auto;
  border-color: transparent;
}
.nob-review-helpful:hover,
.nob-review-helpful.is-voted,
.nob-review-icon-btn:hover,
.nob-review-flag:hover {
  color: #0E2A5C;
  border-color: rgba(14,42,92,.24);
  background: rgba(14,42,92,.04);
}
.nob-review-no-results {
  display: none;
  margin-top: 24px;
  padding: 18px;
  border-radius: 8px;
  background: #f8f9fa;
  color: #69707a;
  font-weight: 800;
  text-align: center;
}
.nob-review-empty {
  margin-top: 24px;
  color: #69707a;
  font-weight: 800;
}
.nob-review-load-more {
  margin: 22px auto 0;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: #1FB96B;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.nob-review-load-more:hover {
  background: #1AB854;
}
@media (max-width: 1024px) {
  .nob-review-suite__panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
  }
  .nob-review-summary {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(260px, 1fr);
    gap: 18px 24px;
  }
  .nob-review-summary__line {
    display: none;
  }
}
@media (max-width: 720px) {
  .nob-review-suite {
    margin: -24px -28px;
    padding: 18px 14px;
    border-radius: 0;
  }
  .nob-review-suite__top,
  .nob-review-suite__controls,
  .nob-review-card__head {
    align-items: stretch;
    flex-direction: column;
  }
  .nob-review-select,
  .nob-review-select--rating {
    width: 100%;
    min-width: 0;
  }
  .nob-review-suite__panel {
    padding: 16px;
    gap: 22px;
  }
  .nob-review-summary {
    display: block;
    padding: 22px 16px;
  }
  .nob-review-summary__line {
    display: block;
  }
  .nob-review-suite__title {
    font-size: 22px;
  }
  .nob-review-highlight h3 {
    font-size: 18px;
  }
  .nob-review-highlight p,
  .nob-review-card__text {
    font-size: 14px;
  }
  .nob-review-card time {
    white-space: normal;
  }
  .nob-review-list.is-scroll-mode {
    max-height: 620px;
    padding-right: 8px;
  }
  .nob-review-card__actions {
    flex-wrap: wrap;
  }
  .nob-review-flag {
    margin-left: 0;
  }
}

/* ---- ObraX: encaixe na aba e acabamento ------------------------------------ */
.ob-tab-panel .nob-review-suite {
  margin: -28px;
  padding: 28px;
  border-radius: 0 0 var(--obp-radius, 12px) var(--obp-radius, 12px);
  background: #F4F4F4;
}
.nob-review-suite__title { font-weight: 800; text-wrap: balance; }
.nob-review-suite__title span { font-weight: 700; font-variant-numeric: tabular-nums; }
.nob-review-suite__subtitle,
.nob-review-highlight p,
.nob-review-card__text { text-wrap: pretty; }
.nob-review-highlight h3 { font-weight: 800; text-wrap: balance; }
.nob-review-card__author { font-weight: 800; }
.nob-review-select {
  width: auto;
  min-width: 212px;
  padding: 0 38px 0 16px;
  border-radius: 8px;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230E2A5C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 12px;
  cursor: pointer;
}
.nob-review-select--rating { min-width: 150px; }
.nob-review-suite__panel { border-color: #E6E6E6; box-shadow: 0 18px 40px rgba(13, 27, 75, .06); }
.nob-review-summary__score,
.nob-review-bar__percent,
.nob-review-summary p strong,
.nob-review-card time,
.nob-review-helpful b { font-variant-numeric: tabular-nums; }
.nob-review-summary__score { font-weight: 800; }
.nob-review-summary__recommend strong,
.nob-review-card__verified { color: #0F6B39; }
.nob-review-card__verified { font-weight: 800; }
.nob-review-bar__label { font-variant-numeric: tabular-nums; }
.nob-review-bar,
.nob-review-helpful,
.nob-review-icon-btn,
.nob-review-flag,
.nob-review-load-more {
  transition-property: color, border-color, background-color, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.nob-review-bar:active,
.nob-review-helpful:active,
.nob-review-icon-btn:active,
.nob-review-flag:active,
.nob-review-load-more:active { transform: scale(.96); }
.nob-review-bar:focus-visible,
.nob-review-helpful:focus-visible,
.nob-review-icon-btn:focus-visible,
.nob-review-flag:focus-visible,
.nob-review-select:focus-visible,
.nob-review-list:focus-visible {
  outline: 2px solid #FF8533;
  outline-offset: 2px;
}
.nob-review-images__item { transition-property: border-color, box-shadow, transform; }
.nob-review-images__item img {
  outline: 1px solid rgba(0, 0, 0, .1);
  outline-offset: -1px;
}
@media (max-width: 720px) {
  .ob-tab-panel .nob-review-suite { margin: -28px; padding: 18px 14px; border-radius: 0; }
  .nob-review-select,
  .nob-review-select--rating { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nob-review-list.is-scroll-mode { scroll-behavior: auto; }
}
