/* Local reviews layout — replaces broken Judge.me CSS */
#jdgm-review-snippet-wrapper,
.jdgm-review-snippet-widget-v2,
.jdgm-ssr-ai-content,
.jdgm-rev__actions,
.jdgm-rev__reply,
.jdgm-rev__custom-form,
.jdgm-rev__vids,
.jdgm-rev__social,
.jdgm-rev__votes,
.jdgm-rev__pinned,
.jdgm-rev__br,
.jdgm-rev__location,
.jdgm-rev__transparency-badge-wrapper,
.jdgm-rev__buyer-badge-wrapper {
  display: none !important;
}

.jdgm-preview-badge .jdgm-prev-badge {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  color: #121212 !important;
}

.jdgm-prev-badge__text {
  color: #121212 !important;
}

.jdgm-review-widget,
#judgeme_product_reviews {
  color: #121212 !important;
  background: #fff !important;
  max-width: 760px;
  margin: 0 auto 4rem;
  font-family: inherit;
  opacity: 1 !important;
}

.reviews-local-header {
  max-width: 760px;
  margin: 0 auto 2.4rem;
  padding: 0 0 1.6rem;
  border-bottom: 1px solid #ececec;
  color: #121212;
}

.reviews-local-header h2 {
  font-size: 2rem !important;
  margin: 0 0 1rem;
  color: #121212;
  letter-spacing: 0.02em;
}

.reviews-local-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}

.reviews-local-score {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}

.reviews-local-meta {
  font-size: 1.4rem;
  color: #555;
}

.reviews-local-stars {
  color: #c1121f;
  letter-spacing: 0.12em;
  font-size: 1.6rem;
}

.reviews-local-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #d8f3e4;
  color: #0f6b3d;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.jdgm-ssr-reviews,
.jdgm-ssr-reviews__list {
  display: block !important;
  color: #121212 !important;
}

.jdgm-rev {
  display: block !important;
  padding: 2.2rem 0;
  border-top: 1px solid #ececec;
  color: #121212;
}

.jdgm-ssr-reviews__list .jdgm-rev:first-child {
  border-top: 0;
}

.jdgm-rev__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.15rem;
  margin-bottom: 1rem;
}

.jdgm-rev__icon {
  order: 1;
  width: 4.2rem !important;
  height: 4.2rem !important;
  min-width: 4.2rem;
  border-radius: 50% !important;
  background: #f3e6e8 !important;
  color: #a10c2f !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  overflow: hidden;
}

.jdgm-rev__author-wrapper {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.jdgm-rev__author {
  font-weight: 700;
  color: #121212;
}

.jdgm-rev[data-verified-buyer="true"] .jdgm-rev__author::after {
  content: "Verificado";
  display: inline-block;
  margin-left: 0.6rem;
  background: #d8f3e4;
  color: #0f6b3d;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 1.1rem;
  font-weight: 600;
  vertical-align: middle;
}

.jdgm-rev__rating {
  order: 3;
  color: #c1121f;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  margin-left: auto;
}

.jdgm-star {
  font-family: inherit !important;
  font-style: normal;
  font-size: 0 !important;
  display: inline-block;
  width: 1.15em;
}

.jdgm-star.jdgm--on::before,
.jdgm-star.jdgm--off::before {
  font-size: 1.5rem;
  line-height: 1;
}

.jdgm-star.jdgm--on::before {
  content: "★";
  color: #c1121f;
}

.jdgm-star.jdgm--off::before {
  content: "★";
  color: #ddd;
}

.jdgm-rev__timestamp,
.jdgm-rev__timestamp.jdgm-spinner {
  order: 4;
  flex: 0 0 100%;
  padding-left: 5.2rem;
  margin: 0;
  font-size: 1.2rem;
  color: #777 !important;
  animation: none !important;
  background: none !important;
  border: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}

.jdgm-rev__content {
  padding-left: 5.2rem;
}

.jdgm-rev__title {
  display: block;
  margin-bottom: 0.4rem;
  color: #121212;
  font-size: 1.6rem;
}

.jdgm-rev__title:empty {
  display: none !important;
}

.jdgm-rev__body,
.jdgm-rev__body p {
  color: #333 !important;
  font-size: 1.5rem;
  line-height: 1.55;
  margin: 0 0 0.6rem;
}

.jdgm-rev__pics:empty {
  display: none !important;
}

.jdgm-rev__pics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.jdgm-rev__pic-link {
  display: block;
  width: 9rem;
  height: 9rem;
  overflow: hidden;
  border-radius: 0.6rem;
  background: #f4f4f4;
  text-indent: -999px;
  color: transparent;
}

.jdgm-rev__pic-img {
  width: 9rem;
  height: 9rem;
  object-fit: cover;
  border-radius: 0.6rem;
  display: block;
}

@media (max-width: 749px) {
  .jdgm-rev__rating {
    margin-left: 0;
    flex: 1 1 100%;
    padding-left: 5.2rem;
    order: 4;
  }
  .jdgm-rev__timestamp,
  .jdgm-rev__timestamp.jdgm-spinner {
    order: 5;
  }
}
