/* Keep horizontal scrolling inside the existing data-table region. */
.review-table-wrap {
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.review-table-wrap > .review-table :is(th, td) {
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 900px) {
  .review-table-wrap > .review-table {
    --table-reading-width: 28rem;
    width: max(100%, var(--table-reading-width));
  }

  .review-table-wrap > .review-table:has(> thead > tr > :nth-child(3)) {
    --table-reading-width: 36rem;
  }

  .review-table-wrap > .review-table:has(> thead > tr > :nth-child(5)) {
    --table-reading-width: 44rem;
  }

  .review-table-wrap > .review-table:has(> thead > tr > :nth-child(7)) {
    --table-reading-width: 52rem;
  }
}
