.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;
    }
}
