{{#if alreadyOwns}}
  <div class="game-details__in-library">
    <span class="cl-green inline-block pd-x-2">{{i18n 'In Your Library'}}</span>
  </div>
{{else if isGameExternallyEntitled}}
  <a href="{{externalEntitlementLink}}" rel="noopener noreferrer" target="_blank">{{i18n 'Sign up for the Breakaway Alpha'}}</a>
{{else if isGameUnavailable}}
  <i class="sub-text">{{i18n 'This game is currently unavailable'}}</i>
{{else if canClaimViaPrime}}
  <div class="flex flex--verticalCenter">
    <div class="flex__item pd-r-1">
      {{svg-icon path='svg/twitch-prime/crown' classNames='product__prime-logo'}}
    </div>
    <div class="flex__item">
      {{#common/button-element isDisabled=isClaimingOffer onClick=(action 'claimOffer')}}
        <span class="inline-block pd-x-2">{{i18n 'Claim Offer'}}</span>
      {{/common/button-element}}
    </div>
    {{#if isGameForSale}}
      <div class="flex__item product__discount product__discount--wing sub-text">
        {{usd-currency gameDetail.product.price.price 2}}
      </div>
    {{/if}}
  </div>
{{else if isGameAvailableViaPrime}}
  <div class="flex flex--verticalCenter">
    {{#if isGameForSale}}
      <div class="flex__item mg-r-1">
        {{svg-icon path='svg/twitch-prime/crown' classNames='product__prime-logo inline'}}
        <span class="strong">{{i18n 'Free'}}</span>
        {{log gameDetail.product.price}}
        <span class="product__discount sub-text">{{usd-currency gameDetail.product.price.price 2}}</span>
      </div>
    {{else}}
      <div class="flex__item mg-r-1">
        {{svg-icon path='svg/twitch-prime/crown' classNames='product__prime-logo'}}
      </div>
    {{/if}}
    <div class="flex__item">
      {{#directory/game-details/get-game-card/offer/dropdown}}
        <div class="flex flex--nowrap flex--stretch pd-1">
          {{#if canClaimViaPrimeTrial}}
            <div class="flex__item pd-1">
              <a class="button full-width align-center pd-x-3" href={{landingUrl}} rel="noopener noreferrer" target='_blank'>
                {{i18n 'Start Your 30-day Free Trial'}}
              </a>
              <p>
                <span class="sub-text">{{i18n 'Already an Amazon Prime member?'}}</span><br>
                <a href="{{linkingUrl}}" rel="noopener noreferrer" target="_blank">{{i18n 'Connect your account'}}</a>
              </p>
            </div>
          {{else if claimViaPrimeUnavailable}}
            <p class="flex__item pd-0">
              <span class="sub-text">{{i18n 'Sorry Twitch Prime is not available in your country'}}</span><br>
              <a href={{learnMoreUrl}}>{{i18n 'Learn More'}}</a>
            </p>
          {{/if}}

          {{#if isGameForSale}}
            <div class="flex__item pd-t-2 pd-x-1">
              <div class="product-offer__separator">
                <span class="sub-text">{{i18n 'OR'}}</span>
                <div class="product-offer__line"></div>
              </div>
            </div>
            <div class="flex__item pd-1">
              {{#common/button-element classNames='button--purchase' onClick=(action 'buyGame')}}
                <span class="inline-block pd-x-2">{{i18n 'Buy this Game'}}</span>
                <span class="button__num-block">{{usd-currency gameDetail.product.price.price 2}}</span>
              {{/common/button-element}}
            </div>
          {{/if}}
        </div>
      {{/directory/game-details/get-game-card/offer/dropdown}}
    </div>
  </div>
{{else}}
  {{#common/button-element classNames='button--purchase' onClick=(action 'buyGame')}}
    <span class="inline-block pd-x-2">{{i18n 'Buy this Game'}}</span>
    <span class="button__num-block">{{usd-currency gameDetail.product.price.price 2}}</span>
  {{/common/button-element}}
{{/if}}
