<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="checkout_cart_item_renderers"/>
    <body>
        <referenceContainer name="checkout.cart.container">
            <container name="checkout.cart.container.left" as="checkout.cart.container.left" htmlTag="div" htmlClass="opc-container-cart" before="-">
                <container name="checkout.cart.container.left.wrapper" as="checkout.cart.container.left.wrapper" htmlTag="div" htmlClass="opc-checkout-cart-wrapper">
                    <block class="Magento\Checkout\Block\Cart" name="checkout.cart.extra" as="checkout.cart.extra" after="checkout.cart.form" template="Magento_Checkout::cart/extra.phtml">
                        <container name="extra.gifts" as="extra.gifts" htmlTag="div" htmlClass="cart-gifts" />
                    </block>
                </container>
            </container> 
            <container name="checkout.cart.container.right" as="checkout.cart.container.right" htmlTag="div" htmlClass="opc-sidebar" after="checkout.cart.container.left" />
        </referenceContainer>

        <!-- Reinssurance -->
        <container name="cart.reinssurance" as="cart.reinssurance" label="cart.reinssurance" htmlTag="div" htmlClass="product-reinssurance">
            <block class="Magento\Cms\Block\Block" name="push_reinssurance">
                <arguments>
                    <argument name="block_id" xsi:type="string">push_reinssurance</argument>
                </arguments>
            </block>
        </container>

        <move element="checkout.cart.form" destination="checkout.cart.container.left.wrapper" before="-" />
        <move element="soon_promogift.cart.gift_list" destination="extra.gifts" before="-" />
        <move element="checkout.cart.order.actions.gift_options" destination="extra.gifts" after="soon_promogift.cart.gift_list" />
        <move element="cart.summary" destination="checkout.cart.container.right" before="-" />
        <move element="cart.reinssurance" destination="main.wrapper" after="main.content" />

        <!-- Move alma button after checkout button and paypal -->
        <referenceContainer name="checkout.cart.methods">
            <block class="Alma\MonthlyPayments\Block\Cart\Eligibility" name="alma.cart.eligibility"
                template="Alma_MonthlyPayments::cart/eligibility.phtml" before="bml.right.logo">
                <arguments>
                    <argument name="section" xsi:type="string">checkout</argument>
                    <argument name="position" xsi:type="number">1</argument>
                </arguments>
            </block>
        </referenceContainer>

        <referenceBlock name="page.main.title" remove="true" />
        <referenceBlock name="toplinks" remove="true" />
        <referenceBlock name="top.links" remove="true" />
        <referenceBlock name="top.search" remove="true" />
        <referenceBlock name="minicart" remove="true" />
        <referenceBlock name="dihnvan.switcher" remove="true" />
        <referenceBlock name="dinhvan_megamenu_top" remove="true" />
        <referenceBlock name="dinhvan_menu_home" remove="true" />
        <referenceBlock name="dinhvan_account_header" remove="true" />

        <referenceBlock name="checkout.cart.item.renderers.default.actions.move_to_wishlist" remove="true" />
        <referenceBlock name="checkout.cart.item.renderers.simple.actions.move_to_wishlist" remove="true" />
        <referenceBlock name="checkout.cart.item.renderers.bundle.actions.move_to_wishlist" remove="true" />
        <referenceBlock name="checkout.cart.item.renderers.configurable.actions.move_to_wishlist" remove="true" />
        <referenceBlock name="checkout.cart.item.renderers.downloadable.actions.move_to_wishlist" remove="true" />
        <referenceBlock name="checkout.cart.item.renderers.grouped.actions.move_to_wishlist" remove="true" />
        <referenceBlock name="checkout.cart.item.renderers.virtual.actions.move_to_wishlist" remove="true" />

    </body>
</page>
