.ffyg-rating-section .glsr-button,
.ffyg-rating-section button[type="submit"] {
    font-size: 14px;
    padding: 10px 16px;
    line-height: 1.2;
}

/* FFYG - Compact Header Search */
.mh-header-search .search-form {
    position: relative !important;
    width: 200px !important;
    max-width: 100% !important;
    height: 29px !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.mh-header-search .search-form label {
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: 29px !important;
    margin: 0 !important;
}

.mh-header-search .search-form .search-field {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 29px !important;
    line-height: 29px !important;
    box-sizing: border-box !important;
    padding: 0 36px 0 10px !important;
    margin: 0 !important;
    border: 1px solid #ebebeb !important;
    background: #ffffff !important;
}

/* Small magnifying glass INSIDE the search field */
.mh-header-search .search-form .search-submit {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    float: none !important;
    position: absolute !important;
    top: 1px !important;
    right: 1px !important;
    bottom: auto !important;
    left: auto !important;
    width: 27px !important;
    min-width: 27px !important;
    max-width: 27px !important;
    height: 27px !important;
    min-height: 27px !important;
    max-height: 27px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    background-color: #363636 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.7'/%3E%3Cpath d='M16 16l5 5'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 15px 15px !important;
    color: transparent !important;
    font-size: 0 !important;
    text-indent: -9999px;
    cursor: pointer !important;
}

.mh-header-search .search-form .search-submit:hover {
    background-color: #505050 !important;
}

.mh-header-search .search-form .search-submit:focus-visible {
    outline: 2px solid #777777 !important;
    outline-offset: 1px;
}

/* FFYG - Center Header Search on Mobile Only */
@media only screen and (max-width: 767px) {
    .mh-header-search .search-form {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}





/* FFYG - Divider Above More Recipes to Love */
.ffyg-rating-section + .ffyg-recipe-love {
    border-top: 1px solid #999999;
    padding-top: 8px;
    margin-top: 23px;
}


/* FFYG – Comment Form: Name + Email Side by Side */

body.single-post #respond #commentform {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
}

body.single-post #respond #commentform > * {
    grid-column: 1 / -1;
}

body.single-post #respond #commentform > .comment-form-author {
    grid-column: 1;
}

body.single-post #respond #commentform > .comment-form-email {
    grid-column: 2;
}

body.single-post #respond #commentform .comment-form-author input,
body.single-post #respond #commentform .comment-form-email input {
    width: 100% !important;
    min-height: 36px;
    box-sizing: border-box;
}

/* Stack neatly on smaller screens */
@media (max-width: 600px) {
    body.single-post #respond #commentform {
        grid-template-columns: minmax(0, 1fr);
    }

    body.single-post #respond #commentform > .comment-form-author,
    body.single-post #respond #commentform > .comment-form-email {
        grid-column: 1;
    }
}



/* FFYG – Clean Comment Form Email Privacy Label */

/* Remove redundant message above comment box */
body.single-post #respond #commentform .comment-notes {
    display: none;
}

/* Display privacy message next to Email label */
body.single-post #respond #commentform .comment-form-email label::after {
    content: " (not published)";
    font-size: 14px;
    font-weight: 400;
    color: #555;
}



/* FFYG – Name + Email Side by Side on Mobile */

@media (max-width: 600px) {

    body.single-post #respond #commentform {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
    }

    body.single-post #respond #commentform > .comment-form-author {
        grid-column: 1 / 2;
    }

    body.single-post #respond #commentform > .comment-form-email {
        grid-column: 2 / 3;
    }

    body.single-post #respond #commentform > .comment-form-author,
    body.single-post #respond #commentform > .comment-form-email {
        width: 100%;
        min-width: 0;
    }

    body.single-post #respond #commentform .comment-form-author input,
    body.single-post #respond #commentform .comment-form-email input {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ==========================================
   FFYG – CLEAN RECIPE PRINT & PDF
   Print-only styling. No changes to website.
   ========================================== */

@media print {

    @page {
        size: auto;
        margin: 0.6in;
    }

    /* Hide navigation, sidebars, and footer */
    body.single-post .mh-header,
    body.single-post .mh-navigation,
    body.single-post .mh-main-nav,
    body.single-post .mh-breadcrumb,
    body.single-post .mh-breadcrumbs,
    body.single-post .mh-sidebar,
    body.single-post .widget-area,
    body.single-post .mh-footer,
    body.single-post .mh-copyright-wrap,
    body.single-post .mh-post-nav {
        display: none !important;
    }

    /* Hide toolbar, comments, and recommendations */
    body.single-post .ffyg-recipe-toolbar,
    body.single-post .sharedaddy,
    body.single-post .jetpack-likes-widget-wrapper,
    body.single-post .printfriendly,
    body.single-post .ffyg-comment-note,
    body.single-post #comments,
    body.single-post #respond,
    body.single-post .comments-area,
    body.single-post .jp-relatedposts,
    body.single-post .ffyg-post-video {
        display: none !important;
    }

    /* Hide Google advertisements */
    body.single-post ins.adsbygoogle,
    body.single-post .adsbygoogle,
    body.single-post .google-auto-placed,
    body.single-post .google-vignette,
    body.single-post .ad-container,
    body.single-post .ad-wrapper,
    body.single-post .ad-slot,
    body.single-post [data-ad-client],
    body.single-post [id^="google_ads_iframe"],
    body.single-post [id^="div-gpt-ad"] {
        display: none !important;
    }

    /* Hide embedded videos and consent overlays */
    body.single-post iframe,
    body.single-post .cmplz-cookiebanner,
    body.single-post .cmplz-manage-consent,
    body.single-post #cmplz-manage-consent {
        display: none !important;
    }

    /* Remove unnecessary layout restrictions */
    body.single-post,
    body.single-post .mh-container,
    body.single-post .mh-wrapper,
    body.single-post .mh-main,
    body.single-post .mh-content,
    body.single-post article.post,
    body.single-post .entry-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: visible !important;
        box-shadow: none !important;
    }

	
/* ==========================================
   FFYG – SMOOTH JETPACK LIKE LOADING
   Only changes the temporary loading display.
   Final toolbar buttons remain untouched.
   ========================================== */

/* Hide Jetpack's visible loading message */
article.post .ffyg-recipe-toolbar
.jetpack-likes-widget-wrapper
.likes-widget-placeholder .loading {
    display: none !important;
}

/* Show a calm, stationary placeholder */
article.post .ffyg-recipe-toolbar
.jetpack-likes-widget-wrapper
.likes-widget-placeholder > .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;

    width: 68px !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;

    background: #fff !important;
    color: #555 !important;
    border: 1px solid #dedede !important;
    border-radius: 5px !important;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06) !important;

    font-size: 13px !important;
    line-height: 1 !important;
    opacity: 0.65 !important;
    pointer-events: none !important;
}

/* Temporary star icon */
article.post .ffyg-recipe-toolbar
.jetpack-likes-widget-wrapper
.likes-widget-placeholder > .button::before {
    content: "☆";
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
}

/* Keep placeholder text readable */
article.post .ffyg-recipe-toolbar
.jetpack-likes-widget-wrapper
.likes-widget-placeholder > .button > span {
    display: inline !important;
    font-size: 13px !important;
}
