<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

?>

<?php
/** @var \Magento\Checkout\Block\Cart\Totals $block */
/** @var \Magento\Framework\Escaper $escaper */
?>

<?php if ($block->getTotals()): ?>
    <?php $colspan = 3; ?>
    <?= /* @noEscape */ $block->renderTotals(null, $colspan) ?>
    <?= /* @noEscape */ $block->renderTotals('footer', $colspan) ?>
    <?php if ($block->needDisplayBaseGrandtotal()): ?>
    <tr class="totals charge">
        <th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
            <?= $escaper->escapeHtml(__('Your credit card will be charged for')) ?>
        </th>
        <td class="amount" data-th="<?= $escaper->escapeHtml(__('Your credit card will be charged for')) ?>">
            <?= /* @noEscape */ $block->displayBaseGrandtotal() ?>
        </td>
    </tr>
    <?php endif ?>
<?php endif ?>
