<div class="product-health" [class.product-health--compact]="compact()">
  <div class="product-health__bar" role="progressbar" [attr.aria-valuenow]="completionPercent()" aria-valuemin="0" aria-valuemax="100">
    <div class="product-health__bar-fill" [style.width.%]="completionPercent()"></div>
  </div>
  <span class="product-health__percent">{{ completionPercent() }}%</span>
  @if (!compact()) {
    <ul class="product-health__list">
      @for (item of items(); track item.labelKey) {
        <li [class.product-health__list-item--done]="item.done">
          <span aria-hidden="true">{{ item.done ? '✓' : '○' }}</span>
          <span>{{ item.labelKey | translate }}</span>
        </li>
      }
    </ul>
  }
</div>
