{{#extend "checkout" pageClass="page_checkout-delivery-new page_checkout-confirmation-new" title="Checkout - Payment details with Apple Pay" isAsideSticky="true"}}
{{#content "steps"}}
{{> steps-three-steps active-step-index="2"}}
{{/content}}

  {{#content "head" mode="append"}}
    <link type="text/css" rel="stylesheet" href="./css/pages/checkout-new.css">
    <link type="text/css" rel="stylesheet" href="./css/pages/page_checkout_delivery-new.css">
    <link type="text/css" rel="stylesheet" href="./css/components/payment-details-BPS-form.css">
    <link type="text/css" rel="stylesheet" href="./css/components/checkout-payment-details-v2.css">

    <script src="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js"></script>
  {{/content}}

  {{#content "aside"}}
    {{> order-summary delivery-address-v2.summary no-action=true id=1 basket-id=true}}
  {{/content}}


{{#content "main"}}



    <div class="delivery-block">
        <h3 class="delivery-block__heading">Delivery Information</h3>
        <div class="delivery-block__wrapper">
            {{#with checkoutOrder.deliveryPayments.[0]}}
                <div class="checkout-order">
                    {{> checkout-order-block}}
                </div>
            {{/with}}
        </div>
    </div>

    <div class="click-collect-block">
        <h3 class="click-collect-block__heading">Click & Collect</h3>
        <div class="click-collect-block__wrapper">
          {{#with checkoutOrder.clickCollectDeliveryAddress.[0]}}
            <div class="checkout-order">
                {{> checkout-order-block}}
            </div>
          {{/with}}
        </div>
    </div>

    <div class="billing-payment-block">
        <h3 class="billing-payment-block__heading">Billing & Payment</h3>
        <div class="billing-payment-block__wrapper">
            {{> checkout-payment-details-v2 klarna-method=true apple-pay=true}}
        </div>
    </div>

{{/content}}

{{#content "foot" mode="append"}}
    <script defer src="./js/page/checkout-confirmation-new.js"></script>
    <script defer src="./js/page/checkout-payment-details.js"></script>
    <script defer src="./js/page/klarna-modal-scroll-disable.js"></script>
    {{> checkout-terms-and-conditions-modal }}
    {{> payment-loader hidden=true}}
{{/content}}
{{/extend}}
