/* ========================================
   Rank Math Rich Snippet – Review Block
   ======================================== */

#rank-math-rich-snippet-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "title title"
    "image image"
    "data  data"
    "pros  cons";
  gap: 20px;
  border: 1px solid #d1dfee;
  border-radius: 10px;
  background: #fdfeff;
  padding: 24px;
  margin-top: 20px;
}

/* Title */
.rank-math-title {
  grid-area: title;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  padding-bottom: 14px;
  border-bottom: 2px solid #d1dfee;
  color: #0f0f0f;
}

/* Image */
.rank-math-review-image {
  grid-area: image;
  text-align: center;
}

.rank-math-review-image img {
  max-height: 220px;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
  display: inline-block;
}

/* Review data */
.rank-math-review-data {
  grid-area: data;
}

.rank-math-review-data p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #32373c;
}

.rank-math-review-data p:first-child {
  margin-bottom: 12px;
}

/* Rating */
.rank-math-total-wrapper {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-math-total-wrapper > strong {
  width: 100%;
  font-size: 13px;
  color: #55555e;
}

.rank-math-total {
  font-size: 28px;
  font-weight: 700;
  color: #0f0f0f;
  line-height: 1;
}

/* Stars */
.rank-math-review-star {
  display: inline-flex;
  align-items: center;
}

.rank-math-review-result-wrapper {
  position: relative;
  display: inline-flex;
  white-space: nowrap;
  line-height: 1;
}

.rank-math-review-result-wrapper > .rank-math-star::before {
  content: '★';
  color: #e6e6e6;
  font-style: normal;
}

.rank-math-review-result {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  display: inline-flex;
  white-space: nowrap;
}

.rank-math-review-result > .rank-math-star::before {
  content: '★';
  color: #f1d04e;
  font-style: normal;
}

.rank-math-star {
  display: inline-block;
  font-size: 24px;
  width: 24px;
  height: 24px;
  line-height: 1;
}

/* Pros & Cons */
.rank-math-review-notes {
  border-radius: 8px;
  padding: 16px 20px;
}

.rank-math-review-notes h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rank-math-review-notes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-math-review-notes ul li {
  font-size: 13px;
  line-height: 1.5;
  padding: 4px 0 4px 22px;
  position: relative;
  color: #32373c;
}

.rank-math-review-notes ul li::before {
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

/* Pros */
.rank-math-review-pros {
  grid-area: pros;
  background: #f0fdf4;
  border-left: 4px solid #65c466;
}

.rank-math-review-pros h4 {
  color: #2d7a30;
}

.rank-math-review-pros ul li::before {
  content: '✓';
  color: #65c466;
}

/* Cons */
.rank-math-review-cons {
  grid-area: cons;
  background: #fff5f5;
  border-left: 4px solid #e05555;
}

.rank-math-review-cons h4 {
  color: #b91c1c;
}

.rank-math-review-cons ul li::before {
  content: '✗';
  color: #e05555;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {
  #rank-math-rich-snippet-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  #rank-math-rich-snippet-wrapper {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "image"
      "data"
      "pros"
      "cons";
    padding: 16px;
    gap: 14px;
  }

  .rank-math-review-image img {
    max-height: 180px;
  }

  .rank-math-total-wrapper {
    gap: 6px;
  }
}
