/* Licensed Pixel Diamond post-v2 review bars and overall score, rendered as semantic HTML/SVG.
 * The server always renders the final values. JavaScript only enhances first-viewport entry.
 */
.fz-pd-review {
  --fz-review-track: #ebebeb;
  --fz-review-label: #363636;
  --fz-review-bubble: #363636;
  --fz-review-gradient-start: #5216fd;
  --fz-review-gradient-end: #ff055d;
  margin-block: 48px;
  color: var(--fz-text, #363636);
  clear: both;
}

:root[data-theme="dark"] .fz-pd-review {
  --fz-review-track: #383c45;
  --fz-review-label: #f5f5f5;
  --fz-review-bubble: #505661;
}

.fz-pd-review .fz-pd-review-heading {
  margin-block: 0 12px;
  font: 700 24px/1.3 var(--fz-font-heading, Exo, sans-serif);
  text-transform: uppercase;
}

.fz-pd-review .fz-pd-review-summary {
  margin-block: 0;
  color: var(--fz-muted, #62656b);
  overflow-wrap: anywhere;
}

.fz-pd-review .review-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  inline-size: 100%;
  max-inline-size: 570px;
  margin: 55px auto 0;
}

.fz-pd-review .review-block-left {
  flex: 1 1 340px;
  min-inline-size: 0;
}

.fz-pd-review .review-score-bars {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fz-pd-review .progress-bar-wrap {
  position: relative;
  inline-size: calc(100% - 40px);
  min-inline-size: 0;
  max-inline-size: 300px;
}

.fz-pd-review .progress-bar-wrap + .progress-bar-wrap {
  margin-block-start: 22px;
}

.fz-pd-review .progress-bar {
  position: relative;
  isolation: isolate;
  block-size: 22px;
  inline-size: 100%;
  border-radius: 11px;
  background: var(--fz-review-track);
}

.fz-pd-review .fz-pd-review-fill {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fz-review-gradient-start), var(--fz-review-gradient-end));
  transform: scaleX(calc(var(--fz-review-score, 0) / 100));
  transform-origin: left center;
  transition: transform 1.6s cubic-bezier(.16, 1, .3, 1);
}

.fz-pd-review .fz-pd-review-criterion-label {
  display: block;
  position: relative;
  overflow: hidden;
  padding-inline: 12px;
  color: var(--fz-review-label);
  font: 700 10px/22px var(--fz-font-heading, Exo, sans-serif);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Two-toned text follows the source canvas while remaining real, selectable text. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .fz-pd-review .fz-pd-review-criterion-label {
    background: linear-gradient(90deg, #ffffff calc(var(--fz-review-score, 0) * 1%), var(--fz-review-label) calc(var(--fz-review-score, 0) * 1%));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
}

.fz-pd-review .bar-progress-wrap {
  position: absolute;
  isolation: isolate;
  inset-block-start: -6px;
  inset-inline-end: -40px;
  inline-size: 28px;
  block-size: 28px;
  border-radius: 50%;
  background: var(--fz-review-bubble);
}

.fz-pd-review .bar-progress-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: 8px;
  inset-inline-start: -3px;
  inline-size: 12px;
  block-size: 12px;
  background: inherit;
  transform: rotate(45deg);
}

.fz-pd-review .bar-progress-text {
  position: relative;
  margin: 0;
  padding: 0;
  color: #ffffff;
  font: 700 10px/28px var(--fz-font-heading, Exo, sans-serif);
  text-align: center;
  white-space: nowrap;
}

.fz-pd-review .review-block-right {
  flex: 0 0 170px;
  text-align: center;
}

.fz-pd-review .fz-pd-review-overall {
  position: relative;
  inline-size: 170px;
  block-size: 170px;
  margin-inline: auto;
}

.fz-pd-review .fz-pd-review-overall svg {
  display: block;
  inline-size: 170px;
  block-size: 170px;
  overflow: visible;
  transform: rotate(-90deg);
}

.fz-pd-review .fz-pd-review-ring-track,
.fz-pd-review [data-fz-review-ring] {
  fill: none;
  stroke-width: 18px;
}

.fz-pd-review .fz-pd-review-ring-track {
  stroke: var(--fz-review-track);
}

.fz-pd-review [data-fz-review-ring] {
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--fz-review-score, 0));
  transition: stroke-dashoffset 1.6s cubic-bezier(.16, 1, .3, 1);
}

.fz-pd-review [data-fz-review-ring][data-score="0"],
.fz-pd-review [data-fz-review-ring][data-score="0.00"] {
  stroke-linecap: butt;
  stroke-opacity: 0;
}

.fz-pd-review .fz-pd-review-overall-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin: 0;
  color: var(--fz-text, #363636);
  font: 700 50px/1 var(--fz-font-heading, Exo, sans-serif);
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}

.fz-pd-review .fz-pd-review-overall-value small {
  align-self: center;
  margin-block-start: 14px;
  font-size: 16px;
}

.fz-pd-review .fz-pd-review-overall-label {
  margin-block: 14px 0;
  color: var(--fz-muted, #62656b);
  font: 700 12px/1.5 var(--fz-font-heading, Exo, sans-serif);
  overflow-wrap: anywhere;
}

/* Pixel Diamond post-v3: editorial verdict, five stars, and honest pros/cons. */
.fz-pd-review--stars {
  --fz-review-star: #58d819;
}

.fz-pd-review--stars .review-wrap {
  display: grid;
  grid-template-columns: 170px minmax(0, 440px);
  align-items: start;
  justify-content: space-between;
  gap: 30px;
  margin-block: 50px 20px;
  padding-block: 50px 34px;
  border-block: 1px solid var(--fz-border, #dbdbdb);
}

.fz-pd-review--stars .review-score-wrap {
  min-inline-size: 0;
  text-align: center;
}

.fz-pd-review--stars .review-score-number {
  margin: 0;
  color: var(--fz-text, #363636);
  font: 700 68px/1 var(--fz-font-heading, Exo, sans-serif);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.fz-pd-review--stars .rating-ornament {
  position: relative;
  display: inline-flex;
  gap: 3px;
  inline-size: 72px;
  block-size: 12px;
  margin: 20px 0 10px;
  padding: 0;
  vertical-align: middle;
  color: var(--fz-border, #dbdbdb);
}

/* Decimal scores keep the source's 170px column without spilling into the summary. */
.fz-pd-review--stars .review-score-number.is-fractional {
  font-size: 52px;
}

.fz-pd-review--stars .rating-ornament-icon {
  display: block;
  flex: 0 0 12px;
  inline-size: 12px;
  block-size: 12px;
  fill: currentColor;
}

.fz-pd-review--stars .fz-pd-review-stars-fill {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: flex;
  gap: 3px;
  inline-size: calc(var(--fz-review-score, 0) * 1%);
  max-inline-size: 100%;
  block-size: 12px;
  overflow: hidden;
  color: var(--fz-review-star);
}

.fz-pd-review--stars .review-score-text {
  margin: 0;
  color: var(--fz-text, #363636);
  font: 700 12px/1.5 var(--fz-font-heading, Exo, sans-serif);
  overflow-wrap: anywhere;
}

.fz-pd-review--stars .review-info-wrap {
  min-inline-size: 0;
  padding-inline-end: 26px;
}

.fz-pd-review--stars .review-info-text {
  margin: 0;
  color: var(--fz-muted, #777777);
  font: 400 14px/26px var(--fz-font-body, Roboto, sans-serif);
  overflow-wrap: anywhere;
}

.fz-pd-review--stars .review-info-text strong {
  color: var(--fz-text, #363636);
}

.fz-pd-review .review-info-list-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 170px));
  gap: 30px;
  margin-block-start: 20px;
}

.fz-pd-review .review-info-list {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fz-pd-review .review-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--fz-muted, #777777);
  font: 400 14px/1.35 var(--fz-font-body, Roboto, sans-serif);
  overflow-wrap: anywhere;
}

.fz-pd-review .review-info-list li p {
  margin: 0;
  font: inherit;
}

.fz-pd-review .fz-pd-review-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
  inline-size: 14px;
  block-size: 14px;
  margin-block-start: 2px;
  border-radius: 50%;
  background: #8b8b8b;
  color: #ffffff;
  font: 700 12px/1 Arial, sans-serif;
}

.fz-pd-review .fz-pd-review-point-icon svg {
  display: block;
  inline-size: 6px;
  block-size: 6px;
  fill: currentColor;
}

.fz-pd-review .pros .fz-pd-review-point-icon {
  background: var(--fz-review-star, #58d819);
}

.fz-pd-review .fz-pd-review-details {
  margin-block-start: 24px;
}

.fz-pd-review .fz-pd-review-details > summary {
  inline-size: fit-content;
  max-inline-size: 100%;
  color: var(--fz-accent, #0872be);
  font: 700 13px/1.6 var(--fz-font-heading, Exo, sans-serif);
  cursor: pointer;
  overflow-wrap: anywhere;
}

.fz-pd-review .fz-pd-review-details > summary:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.fz-pd-review .fz-pd-review-details .review-score-bars {
  inline-size: 100%;
  max-inline-size: 340px;
  margin-block: 32px 10px;
}

.fz-pd-review[data-fz-review-state="armed"] .fz-pd-review-fill {
  transform: scaleX(0);
  transition: none;
}

.fz-pd-review[data-fz-review-state="armed"] [data-fz-review-ring] {
  stroke-dashoffset: 100;
  transition: none;
}

.fz-pd-review[data-fz-review-state="armed"] .fz-pd-review-criterion-label {
  background: none;
  color: var(--fz-review-label);
}

@media (max-width: 960px) {
  .fz-pd-review--stars .review-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .fz-pd-review--stars .review-info-wrap {
    padding: 0;
  }
}

@media (max-width: 680px) {
  .fz-pd-review .review-block {
    display: block;
  }

  .fz-pd-review .review-block-left {
    max-inline-size: 340px;
    margin-inline: auto;
  }

  .fz-pd-review .review-block-right {
    margin: 60px auto 0;
  }
}

@media (max-width: 400px) {
  .fz-pd-review .review-info-list-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fz-pd-review .fz-pd-review-fill,
  .fz-pd-review[data-fz-review-state="armed"] .fz-pd-review-fill {
    transform: scaleX(calc(var(--fz-review-score, 0) / 100));
    transition: none;
  }

  .fz-pd-review [data-fz-review-ring],
  .fz-pd-review[data-fz-review-state="armed"] [data-fz-review-ring] {
    stroke-dashoffset: calc(100 - var(--fz-review-score, 0));
    transition: none;
  }
}

@media (forced-colors: active) {
  .fz-pd-review .progress-bar {
    outline: 1px solid CanvasText;
  }

  .fz-pd-review .fz-pd-review-fill {
    background: Highlight;
  }

  .fz-pd-review .fz-pd-review-criterion-label,
  .fz-pd-review[data-fz-review-state="armed"] .fz-pd-review-criterion-label {
    background: none;
    color: CanvasText;
  }

  .fz-pd-review .bar-progress-wrap {
    background: Canvas;
    outline: 1px solid CanvasText;
  }

  .fz-pd-review .bar-progress-text {
    color: CanvasText;
  }

  .fz-pd-review .fz-pd-review-ring-track {
    stroke: GrayText;
  }

  .fz-pd-review [data-fz-review-ring] {
    stroke: Highlight;
  }
}
