.amazon-review {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  font-size: inherit;
  line-height: 1.2;
}

.amazon-rating {
  color: #111827;
  font-weight: 700;
  font-size: inherit;
}

.amazon-stars {
  --rating: 0;
  display: inline-block;
  color: transparent;
  background: linear-gradient(
    90deg,
    #de7921 0,
    #de7921 calc(var(--rating) * 20%),
    #d1d5db calc(var(--rating) * 20%),
    #d1d5db 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  font-size: inherit;
  letter-spacing: -.08em;
}

.amazon-count {
  color: #475467;
  font-size: inherit;
}

.valuper-best-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 4px auto 0;
  padding: 2px 6px;
  border: 1px solid #e8c76f;
  border-radius: 999px;
  background: #fff7df;
  color: #9a6a00;
  font-size: .54rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: none;
  position: static;
  inset: auto;
  transform: none;
  box-shadow: none;
}

.valuper-best-value-cell {
  text-align: center !important;
}

.valuper-best-value-cell .ppp-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  height: auto !important;
  min-height: 40px !important;
  overflow: visible !important;
}

.valuper-best-value-cell .ppp {
  display: block !important;
  position: static !important;
  line-height: 1.15 !important;
}

.valuper-best-value-cell .valuper-best-value {
  display: flex !important;
  position: static !important;
  margin: 0 auto !important;
}

table th.col-value,
table th.col-value .sort-arrow {
  font-weight: 400 !important;
  color: #475467 !important;
}

table th.valuper-unit-price-header,
table th.valuper-unit-price-header .sort-arrow {
  font-weight: 400 !important;
}

table th.valuper-unit-price-header {
  color: #475467 !important;
  text-transform: uppercase !important;
  letter-spacing: .03em !important;
}

table th.col-value .sort-arrow,
table th.valuper-unit-price-header .sort-arrow {
  color: #98a2b3 !important;
}

table th:last-child,
table th:last-child .sort-arrow {
  font-weight: 400 !important;
  color: #475467 !important;
}

.valuper-best-value-cell .unit-price-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  height: auto !important;
  min-height: 40px !important;
  overflow: visible !important;
}

.valuper-best-value-cell .unit-price-main {
  display: block !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

.valuper-table-books th:nth-child(1),.valuper-table-books td:nth-child(1){width:48% !important}
.valuper-table-books th:nth-child(2),.valuper-table-books td:nth-child(2){width:7% !important}
.valuper-table-books th:nth-child(3),.valuper-table-books td:nth-child(3){width:7% !important}
.valuper-table-books th:nth-child(4),.valuper-table-books td:nth-child(4){width:11% !important}
.valuper-table-books th:nth-child(5),.valuper-table-books td:nth-child(5){width:11% !important}

/* Shared Amazon data freshness notice used across all comparison sections. */
.valuper-data-notice {
  margin: 4px 0 8px;
  border: 1px solid #d7deea;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  padding: 8px 10px;
  color: #475467;
  font-size: .68rem;
  line-height: 1.45;
}

.valuper-data-notice strong {
  color: inherit;
}

footer .valuper-footer-guides { position: relative; }
footer .valuper-footer-guides > summary { cursor: pointer; list-style: none; color: inherit; }
footer .valuper-footer-guides > summary::-webkit-details-marker { display: none; }
footer .valuper-footer-guides > summary:hover,
footer .valuper-footer-guides > summary:focus-visible { color: #172554; text-decoration: underline; }
footer .valuper-footer-guides-info {
  position: absolute; z-index: 30; right: 0; bottom: calc(100% + 10px); width: 300px;
  padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff;
  box-shadow: 0 12px 36px rgba(16,24,40,.18); color: #667085; font-size: .78rem; line-height: 1.55;
}
footer .valuper-footer-guides-info strong,
footer .valuper-footer-guides-info span { display: block; }
footer .valuper-footer-guides-info strong { margin-bottom: 5px; color: #172554; font-size: .9rem; }
footer .valuper-footer-guides-info a { display: inline-block; margin-top: 8px; color: #172554; font-weight: 700; }
@media (max-width: 700px) {
  footer .valuper-footer-guides-info { position: fixed; right: 16px; bottom: 16px; left: 16px; width: auto; }
}

.valuper-table-books th:nth-child(6),.valuper-table-books td:nth-child(6){width:16% !important}

.valuper-table-products th:nth-child(1),.valuper-table-products td:nth-child(1){width:34% !important}
.valuper-table-products th:nth-child(2),.valuper-table-products td:nth-child(2){width:18% !important}
.valuper-table-products th:nth-child(3),.valuper-table-products td:nth-child(3){width:12% !important}
.valuper-table-products th:nth-child(4),.valuper-table-products td:nth-child(4){width:11% !important}
.valuper-table-products th:nth-child(5),.valuper-table-products td:nth-child(5){width:12% !important}
.valuper-table-products th:nth-child(6),.valuper-table-products td:nth-child(6){width:13% !important}

.valuper-table-books th:last-child,.valuper-table-books td:last-child,
.valuper-table-products th:last-child,.valuper-table-products td:last-child {
  padding-left: 5px !important;
  padding-right: 5px !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.valuper-pet-page footer {
  background: #f3efff !important;
  border-top-color: #d8cdf3 !important;
}

/* v117: one consistent header style across all comparison tables. */
table thead th,
table thead th.col-value,
table thead th.valuper-unit-price-header,
table thead th:last-child {
  color: #475467 !important;
  font-size: .66rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: .03em !important;
  text-transform: uppercase !important;
}

table thead th:nth-last-child(2),
table tbody td:nth-last-child(2) {
  text-align: center !important;
}

/* v119: vertically center the complete $/Page value group in Books rows. */
.valuper-table-books tbody td.col-value {
  vertical-align: middle !important;
}

.valuper-table-books tbody td.col-value .ppp-stack {
  position: static !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 44px !important;
}

.valuper-table-books tbody td.col-value .ppp {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: block !important;
  width: 100% !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

/* v121: green Most Pages treatment, distinct from the gold Best Value badge. */
.valuper-table-books .badge-pages {
  background: #ecfdf3 !important;
  color: #087443 !important;
  border-color: #a6e3bd !important;
}

/* v122: show the measurement beside every available unit price. */
.unit-price-amount {
  color: inherit;
  font: inherit;
  font-weight: 800 !important;
}

.unit-price-unit {
  margin-left: 3px;
  color: #667085 !important;
  font-size: .88em !important;
  font-weight: 400 !important;
  white-space: nowrap;
}

/* v123: match the Books table-to-guides spacing to the other sections. */
.compare.book-category-content {
  padding-bottom: 0 !important;
}

/* v126: consistent unavailable-review label across all four sections. */
.review-not-listed {
  color: #667085 !important;
  font-size: inherit !important;
  font-style: normal !important;
  font-weight: 400 !important;
  white-space: nowrap;
}

/* v134: consistent horizontal alignment across all comparison tables. */
.valuper-table-books thead th:first-child,
.valuper-table-books tbody td:first-child {
  text-align: left !important;
}

.valuper-table-books thead th:not(:first-child),
.valuper-table-books tbody td:not(:first-child) {
  text-align: center !important;
}

.valuper-table-products thead th:nth-child(-n+2),
.valuper-table-products tbody td:nth-child(-n+2) {
  text-align: left !important;
}

.valuper-table-products thead th:nth-child(n+3),
.valuper-table-products tbody td:nth-child(n+3) {
  text-align: center !important;
}

/* v137: definitive per-column alignment, including nested cell content. */
html body table.valuper-table-books tr > :first-child,
html body table.valuper-table-books tr > :first-child > * {
  text-align: left !important;
}

html body table.valuper-table-books tr > :nth-child(n+2),
html body table.valuper-table-books tr > :nth-child(n+2) > * {
  text-align: center !important;
}

html body table.valuper-table-products tr > :nth-child(-n+2),
html body table.valuper-table-products tr > :nth-child(-n+2) > * {
  text-align: left !important;
}

html body table.valuper-table-products tr > :nth-child(n+3),
html body table.valuper-table-products tr > :nth-child(n+3) > * {
  text-align: center !important;
}
