.review-container {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.review-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111827;
}

.review-details {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

.review-body {
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  white-space: pre-line;
  margin-bottom: 16px;
}

.breakdown-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 12px;
  background: #f9fafb;
  font-size: 14px;
  color: #374151;
}

@media (max-width: 768px) {
  .breakdown-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .breakdown-container {
    grid-template-columns: 1fr;
  }
}

/* Reviews pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
  padding-bottom: 8px; /* prevent visual clipping in tight containers */
}

.pagination .pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 8px 12px; /* use padding instead of fixed height */
  line-height: 1; /* avoid text clipping */
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.pagination .pagination-link:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.pagination .pagination-link.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.pagination .pagination-link[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
}

.pagination .pagination-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}


