<div id="module_<?php echo($module_instance_id); ?>" class="module shop-cart-module <?php echo($module_class); ?>">
	<?php
	if($title && $title_heading_level)
	{
		?><<?php echo($title_heading_level); ?> class="module-title"><?php echo($title); ?></<?php echo($title_heading_level); ?>><?php
	}
	?>
	<div class="row">
		<div class="col-6"><a href="#" onclick="shopCartSummary(jQuery(this), true);return false;" title="View Cart" aria-title="View Cart" class="shop-cart-button"><em class="fas fa-fw fa-lg fa-shopping-basket fa-shopping-basket-big" aria-hidden="true"></em><span class="shop-cart-quantity ml-2"><em class="fas fa-spinner fa-spin" aria-hidden="true"></em></span></a></div>
		<div class="col-6">
			<div class="text-right">
				<a href="#" onclick="shopCartSummary(jQuery(this), true);return false;"><span class="shop-cart-summary"><em class="fas fa-spinner fa-spin" aria-hidden="true"></em></span></a>
			</div>
		</div>
	</div>

	<div id="shop-cart-floater-details">
		<div class="shop-cart-details"></div>
		<div class="alert alert-light">Shipping costs and applicable taxes will be updated at the checkout.</div>
		<div class="text-right">
			<a class="btn btn-secondary" href="<?php echo($cart_url); ?>" title="View Cart" aria-title="View Cart"><em class="fas fa-fw fa-shopping-basket" aria-hidden="true"></em> Edit Cart</a>
			<a class="btn btn-primary" href="<?php echo($checkout_url); ?>">Checkout <em class="fas fa-fw fa-caret-right" aria-hidden="true"></em></a>
		</div>
	</div>

	<div id="shop-cart-floater">
		<a href="#" onclick="shopCartSummary(jQuery(this), true);return false;" class="shop-cart-button"><em class="fas fa-fw fa-2x fa-shopping-basket"></em><span class="shop-cart-quantity"><em class="fas fa-spinner fa-spin" aria-hidden="true"></em></span></a>
	</div>
</div>
<script>
jQuery(window).scroll( function()
{
    shopCheckCartButton();
});

jQuery(window).on("load", function()
{
	// Move the floater div to the <body> in case our parent div ever gets hidden.
	jQuery("body").append(jQuery("#shop-cart-floater-details").detach());
	shopGetCart();
    shopCheckCartButton();
});
</script>
