<div class="pdp-price-container">
  {{#if isDiscount}}
    <div class="pdp__badges pdp-price-container__badges price__badges-v2 price__badges-v2-{{badge-color}}
      {{#if badge-text-color}}price__badges-v2-text-{{badge-text-color}}{{/if}}
      {{#if badge-wide}}price__badges-v2-wide{{/if}}">
      {{#ifCond switch-vat '&&' badge-text-exc}}
        <div class="pdp__badge including-vat">{{badge-text}}</div>
        <div class="pdp__badge excluding-vat d-none">{{badge-text-exc}}</div>
      {{else}}
        <div class="pdp__badge">{{badge-text}}</div>
      {{/ifCond}}
    </div>
  {{/if}}
  <div class="pdp-price">
    <div class="pdp-price__value">
      {{#if switch-vat}}
        <div class="pdp-price-sale__value including-vat">
          {{#if isDiscount}}
            <div class="pdp-price__old-price"><s>&pound;119.99</s></div>
            <div class="main-price">
              <div class="main-price__value pdp-price__new-price">&pound;79.99</div>
              <div class="main-price__vat">Inc.VAT</div>
            </div>
            {{#if isSQM}}
              <div class="pdp-price__sqm">&pound;40 per SQM</div>
            {{/if}}
            <div class="pdp-price__remainder">You save &pound;40</div>
            {{#if isExcludingDelivery}}
              <a href="#" class="pdp-price__excluding-delivery">Excluding delivery</a>
            {{/if}}
            {{#if isDescription}}
              {{#if isCashback}}
                <div class="pdp-price__description">
                  *Cashback offer valid until 31st May 2019.
                  Claim by 31st July 2019.
                  Terms & conditions apply.
                </div>
                <div class="pdp-price__terms">
                  <a href="#">
                    Cashback Terms and Conditions
                  </a>
                </div>
              {{else}}
                <div class="pdp-price__description">
                  Offer price equivalent to &pound;24 per item
                </div>
              {{/if}}
            {{/if}}

          {{else}}
            <div class="pdp-price__price">&pound;79.99</div>
          {{/if}}
        </div>
        <div class="pdp-price-sale__value excluding-vat d-none">
          {{#if isDiscount}}
            <div class="pdp-price__old-price"><s>&pound;118.99</s></div>
            <div class="main-price">
              <div class="main-price__value pdp-price__new-price">&pound;78.99</div>
              <div class="main-price__vat">Exc.VAT</div>
            </div>
            {{#if isSQM}}
              <div class="pdp-price__sqm">&pound;39 per SQM</div>
            {{/if}}
            <div class="pdp-price__remainder">You save &pound;39</div>
            {{#if isExcludingDelivery}}
              <a href="#" class="pdp-price__excluding-delivery">Excluding delivery</a>
            {{/if}}
            {{#if isDescription}}
              {{#if isCashback}}
                <div class="pdp-price__description">
                  *Cashback offer valid until 31st May 2019.
                  Claim by 31st July 2019.
                  Terms & conditions apply.
                </div>
                <div class="pdp-price__terms">
                  <a href="#">
                    Cashback Terms and Conditions
                  </a>
                </div>
              {{else}}
                <div class="pdp-price__description">
                  Offer price equivalent to &pound;23 per item
                </div>
              {{/if}}
            {{/if}}

                    {{else}}
                        <div class="pdp-price__price">&pound;79.99</div>
                    {{/if}}
                </div>
      {{else}}
        <div class="pdp-price-sale__value">
          {{#if isDiscount}}
            <div class="pdp-price__old-price"><s>&pound;119.99</s></div>
            <div class="pdp-price__new-price">&pound;79.99</div>
            {{#if isSQM}}
              <div class="pdp-price__sqm">&pound;40 per SQM</div>
            {{/if}}
            <div class="pdp-price__remainder">You save &pound;40</div>
            {{#if isExcludingDelivery}}
              <a href="#" class="pdp-price__excluding-delivery">Excluding delivery</a>
            {{/if}}
            {{#if isDescription}}
              {{#if isCashback}}
                <div class="pdp-price__description">
                  *Cashback offer valid until 31st May 2019.
                  Claim by 31st July 2019.
                  Terms & conditions apply.
                </div>
                <div class="pdp-price__terms">
                  <a href="#">
                    Cashback Terms and Conditions
                  </a>
                </div>
              {{else}}
                <div class="pdp-price__description">
                  Long offer message Lorem ipsum dolor sit amet,
                  consectetur adipiscing elit.
                  Aenean euismod bibendum laoreet
                </div>
              {{/if}}
            {{/if}}
          {{else}}
            <div class="pdp-price__price">&pound;79.99</div>
          {{/if}}
        </div>
      {{/if}}
      {{#if currentlyInStock}}
        <div class="pdp-price__value pdp-price__value_extended">
          <div class="pdp-price__delivery">
            <span class="delivery-link">Delivery</span>
            <span class="delivery-info">Available to certain postcodes</span>
          </div>
        </div>
      {{else if notifyMe}}
        <div class="pdp-price__oos">
          <a href="#" class="btn btn-primary btn_full btn--notify-open" data-target="#modal-notify-me">
            <i class="fas fa-bell"></i>
            <span class="btn__text">Notify Me</span>
          </a>
          <p>Currently out of stock, use our Notify Me button to receive an email when this product is available</p>
        </div>
      {{else}}
        <div class="pdp-price__oos">
          <strong>Out of Stock</strong>
          <p>Sorry, this product is out of stock</p>
        </div>
        <div class="pdp-price__in-store-only">
          <p>In Store Only</p>
        </div>
      {{/if}}
      {{#if klarna-placement}}
        <div class="pdp-price__klarna-payment">
          <klarna-placement
          data-key="credit-promotion-badge"
          data-locale="en-GB"
          data-purchase-amount="12000"
          {{#if klarna-method-ids}}data-custom-payment-method-ids="{{klarna-method-ids}}"{{/if}}
          ></klarna-placement>
        </div>
      {{/if}}
      {{#if billie-placement}}
        <div class="pdp-price__billie-payment">
          {{> billie-online-messaging}}
        </div>
      {{/if}}
      {{#if clearpay-placement}}
        {{> clearpay}}
      {{/if}}
    </div>
    <div class="pdp-price__controls">
      {{#if isSize}}
        <div class="pdp-price__size">
          {{> form-row row-mod="sort-order-by" dropdown="true" id="d1" placeholder="Please select a size"}}
        </div>
      {{/if}}

      {{#if (or (not isQuantity) (not default-store))}}
        <div class="pdp-price__control-holder {{#unless wisdom}}{{#if big-wins}}control-holder__big-wins{{/if}}{{/unless}}">
          {{#unless isQuantity}}
            <label for="quantity-field" class="quantity-label">Quantity: </label>
            <input type="text" inputmode="numeric" pattern="[0-9]*" id="quantity-field"
                   class="tbx tbx_quantity"
                   value="1">
          {{/unless}}
          {{#unless default-store}}
            <div class="pdp-price__calculator-wrapper">
              <a href="#">
              <span class="icon">
                <i class="far fa-calculator"></i>
              </span>
                Calculator
              </a>
            </div>
          {{/unless}}
        </div>
      {{/if}}

      {{#if mfeProductCalculator}}
        <div class="pdp-price__quantity-calculator">MFE Calculator Placeholder</div>
      {{/if}}
      {{#if currentlyInStock}}
        {{> pdp-price-actions
        installation=install
        order-sample=sample
        c-and-c=cc
        delivery=delivery
        big-wins=big-wins
        wisdom=wisdom
        mcfc=mcfc
        available=available
        stock-accordion="stock-accordion"
        isUserNonRegistered=isUserNonRegistered
        nearest-purchase=nearest-purchase
        unhappy=unhappy
        nearestAmount=nearestAmount
        nearestName=nearestName
        }}
        <div class="pdp-price__call-to-actions">
          {{#unless default-store}}
            <div class="pdp-price__control-holder pdp-price__actions">
              <a href="#" class="link-secondary">Check stock in your local store</a>
            </div>
          {{/unless}}
        </div>
      {{/if}}
    </div>
  </div>
</div>
