<div class="purchase-options-tile__heading" [class.muted]="hasNoInStoreAvailability$ | async">
  <div class="icon-wrapper">
    <shared-icon icon="isa-shopping-bag"></shared-icon>
  </div>
  <span class="purchase-option-name">Rücklage</span>
</div>
<div class="purchase-options-tile__body" [class.muted]="hasNoInStoreAvailability$ | async">
  Artikel zurücklegen lassen oder sofort mitnehmen?
</div>
<div class="purchase-options-tile__actions group">
  <button type="button" class="w-[176px] flex flex-row items-center justify-between" (click)="sharedBranchSelector.focus()">
    <span class="grow text-left truncate">{{ inStoreBranch$ | async | branchName }}</span>
    <span class="transition-all group-focus-within:rotate-180">
      <shared-icon icon="menu-down"></shared-icon>
    </span>
  </button>
  <shared-branch-selector
    #sharedBranchSelector
    class="absolute inset-x-0 invisible"
    [ngModel]="undefined"
    (ngModelChange)="setInStoreBranch($event)"
    [branchType]="1"
    [orderBy]="auth.hasRole('Store') ? 'distance' : 'name'"
  ></shared-branch-selector>
</div>
