@page {
    size: A4 portrait !important; /* A4 size, portrait orientation */
    margin: 2cm; /* 2cm margins on all sides */
}

section.newsletter,
section.related-recipes,
section.related-products .view-all,
section.comments,
footer.site-footer,
body.single-recipe .post-meta,
.rmp-widgets-container,
.ingredients .portions button,
iframe,
video,
.main-menu-container, .mobile-additional-icons, .mobile-menu-button, .nav ul, .nav ol {
    display: none !important;
}

/* Uncode's wrapper clips the end of the page in print */
.box-wrapper {
    overflow: visible !important;
}

a {
    color: #000 !important;
    text-decoration: none !important;
}

/* Fixed elements repeat on every printed page */
.menu-container {
    position: static !important;
}

.logo-container {
    position: relative !important;
    margin: 0 auto !important;
}

body.single-recipe .post-wrapper aside section {
    background-color: transparent !important;
}

.ingredients ul,
.wp-block-sail-recipes-step,
.wp-block-sail-recipes-steps ul {
    break-inside: avoid !important;
    list-style: disc !important;
    margin-left: 1rem !important;
}

.wp-block-sail-recipes-step input {
    display: none !important;
}

body.single-recipe .post-wrapper {
    display: block !important;
}

body.single-recipe article.page-body {
    margin: 0 !important;
    padding-inline: 2rem;
    width: 100% !important;
}

body.single-recipe .has-post-thumbnail > .wp-post-image {
    max-height: 8cm;
}

h1, h2, h3,
.wp-block-sail-recipes-steps .steps-title {
    break-after: avoid;
}

img {
    break-inside: avoid;
}

.ingredients .portions input {
    border: 0 !important;
    width: auto !important;
    padding: 0 !important;
}

.ingredients .portions label {
    width: auto !important;
}

* {
    box-shadow: none !important;
}