<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
?>
<?php echo $this->doctype(); ?>
<html <?php echo $this->htmlDoc() ?>>
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <?php echo $this->headTitle() ?>
    <?php echo $this->favicon() ?>
    <style>
        body {
            background: linear-gradient(180deg, #bec0ce 0%, #d6d8e0 100%);
            min-height: 100vh;
            margin: 0;
            padding: 20px 10px;
            box-sizing: border-box;
        }

        .page {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -ms-flex-direction: column;
            flex-direction: column;
            height: calc(100vh - 40px);
            max-width: 680px;
            margin: auto;
            overflow: hidden;
            border-radius: 4px;
            background-color: #fff;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
        }

        .page-header {
            padding: 24px 10px;
            background-color: #f5f5f5;
            font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, Oxygen-Sans, Ubuntu, Cantarell, “Helvetica Neue”, sans-serif;
            font-style: normal;
            font-weight: 600;
            font-size: 16px;
            line-height: 20px;
        }

        .page-header-inner {
            max-width: 580px;
            margin: auto;
        }

        .page-body {
            flex: auto;
        }

        .page-body iframe {
            border: none;
            position: relative;
            height: 100%;
            width: 100%;
        }
    </style>
</head>
<body>
<div class="page">
    <div class="page-header">
        <div class="page-header-inner">
            <?php echo $this->escape($this->subjectContent); ?>
        </div>
    </div>
    <div class="page-body">
        <iframe src="<?php echo $this->escape($this->textPreviewUrl); ?>"></iframe>
    </div>
</div>
</body>
</html>
