<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="color-scheme" content="light">
    <meta name="supported-color-schemes" content="light">
    <style>
        @media only screen and (max-width: 600px) {
            .inner-body {
                width: 100% !important;
            }

            .footer {
                width: 100% !important;
            }
        }

        @media only screen and (max-width: 500px) {
            .button {
                width: 100% !important;
            }
        }
    </style>
</head>
<body style="margin: 0; padding: 0; font-family: Arial, sans-serif;">
    <!-- Main Wrapper Table -->
    <table class="wrapper" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="background-color: #f9fafb;">
        <tr>
            <td align="center">
                <!-- Content Table -->
                <table class="content" width="100%" cellpadding="0" cellspacing="0" role="presentation">
                    <!-- Header (Optional) -->
                    {{ $header ?? '' }}
                    <!-- Main Email Body -->
                    <tr>
                        <td class="body" width="100%" cellpadding="0" cellspacing="0">
                            <table class="inner-body" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
                                <!-- Body Content -->
                                <tr>
                                    <td class="content-cell" style="padding: 24px; background-color: #ffffff;">
                                        <!-- Email Slot Content -->
                                        {{ Illuminate\Mail\Markdown::parse($slot) }}

                                        <!-- Optional Subcopy -->
                                        {{ $subcopy ?? '' }}
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <!-- Footer (Optional) -->
                    {{ $footer ?? '' }}
                </table>
            </td>
        </tr>
    </table>

</body>
</html>
