<?xml version="1.0"?>
<!--
/**
 * Copyright © Klarna Bank AB (publ)
 *
 * For the full copyright and license information, please view the NOTICE
 * and LICENSE files that were distributed with this source code.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="footer">
            <block class="Klarna\Kec\Block\Footer"
                   name="klarna.kec.footer"
                   template="Klarna_Kec::footer.phtml"
            />
        </referenceBlock>
        <referenceContainer name="checkout.cart.methods">
            <block class="Klarna\Kec\Block\Cart"
                   name="klarna.kec.cart"
                   template="Klarna_Kec::button_cart_page.phtml"
            />
        </referenceContainer>
        <referenceBlock name="minicart">
            <arguments>
                <argument name="jsLayout" xsi:type="array">
                    <item name="components" xsi:type="array">
                        <item name="minicart_content" xsi:type="array">
                            <item name="children" xsi:type="array">
                                <item name="extra_info" xsi:type="array">
                                    <item name="config" xsi:type="array">
                                        <item name="template" xsi:type="string">Klarna_Kec/mini-cart-btn</item>
                                    </item>
                                    <item name="children" xsi:type="array">
                                        <item name="mini_cart_button" xsi:type="array">
                                            <item name="component" xsi:type="string">Klarna_Kec/js/mini-cart-kec-button</item>
                                            <item name="displayArea" xsi:type="string">miniCartButton</item>
                                        </item>
                                    </item>
                                </item>
                            </item>
                        </item>
                    </item>
                </argument>
            </arguments>
        </referenceBlock>
    </body>
</page>
