<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <move element="checkout.cart.coupon" destination="cart.summary" after="checkout.cart.totals.container"/>

        <referenceContainer name="checkout.cart.container">
            <container name="htmltag.checkout_cart_top_block" htmlTag="div" htmlClass="checkout-cart-top-block" before="-">
                <block class="Magento\Cms\Block\Block" name="checkout_cart_top_block">
                    <arguments>
                        <argument name="block_id" xsi:type="string">checkout-cart-top-block</argument>
                    </arguments>
                </block>
            </container>
        </referenceContainer>
        <!-- this is needed to move before amasty promo/free gift block -->
        <move element="htmltag.checkout_cart_top_block" destination="checkout.cart.container" before="-"/>
        <move element="cart.summary" destination="checkout.cart.container" after="checkout.cart.form"/>
    </body>
</page>
