/* 
Theme Name: Ohmyfoodness Theme
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Ohmyfoodness Theme is a child theme of Hello Elementor, the most lightweight theme for Elementor page builder.
Author: Roefja
Author URI: https://roefja.com
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

#searchbar {
	position: fixed;
	/*top: -20px;*/
	width: 100%;
	margin-top: -20px;
	z-index: 99999;
	max-width: var(--container-max-width);
}

#searchbar search form {
	box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
	border-radius: var(--e-search-submit-border-radius);

}


.omf-random-recipe {
	--radius: 30px;
	border-radius: var(--radius);
	color: var(--e-global-color-primary);
	display: flex;
	cursor: pointer;
}

.omf-random-recipe.loading {
	opacity: 0.6;
	cursor: progress;
}

.omf-random-recipe_left {
	border-top-left-radius: var(--radius);
	border-bottom-left-radius: var(--radius);

	background-color: rgba(193, 126, 109, 0.5);
	font-size: 1.4em;
	font-weight: 700;
	padding: 10px 40px;
	display: flex;
	justify-content: center;

}

.omf-random-recipe_left>span,
.omf-random-recipe_right>span {

	margin: auto;
}

.omf-random-recipe_right {
	border-top-right-radius: var(--radius);
	border-bottom-right-radius: var(--radius);
	background-color: rgba(193, 126, 109, 1);
	padding: 10px 20px;
	font-size: 1.8em;
	margin-top: auto;
	margin-bottom: auto;
	display: flex;
	justify-content: center;

}

.omf-category-circle {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.omf-category-circle_image {
	display: block;
	border-radius: 50%;
	--size: 100%;
	width: var(--size);
	padding-top: var(--size);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	margin-bottom: 20px;
	margin-left: auto;
	margin-right: auto;

}

.omf-category-circle_name {
	text-align: center;
	font-family: var(--e-global-typography-primary-font-family);
	color: #000;
	font-weight: bold;
	font-size: .9em;
	max-width: 90%;

}

#header-rating {
	flex-direction: row-reverse;
}

#header-rating:hover i {
	font-weight: 400;
	;
}

#header-rating:hover i::before {
	content: "\f005";
}

#header-rating i:hover::before,
#header-rating i:hover~i::before {
	font-weight: bold;
}

.omf-tax-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
	gap: 15px;
}

.omf-tax-item {
	display: flex;
	flex-direction: column;
	--radius: 20px;
	min-width: 200px;
}

.omf-tax-item img {
	width: 100%;
	border-top-left-radius: var(--radius);
	border-top-right-radius: var(--radius);
	object-fit: cover;
}

.omf-tax-item_name {
	border-bottom-left-radius: var(--radius);
	border-bottom-right-radius: var(--radius);
	background-color: var(--e-global-color-primary);
	padding: 10px;font-family: "Lovan", Sans-serif;
	color: var(--e-global-color-text);
	text-align: center;
	font-size: 1.2em;
}



.bypostauthor .comment-author::after{
	content: " - Ohmyfoodness";
	display: inline;
	color: #000;
}

.bypostauthor .comment-author{
	color: var(--e-global-color-accent);
}

.recipes-grid .elementor-grid{
    grid-template-columns: repeat(auto-fill,minmax(350px,1fr));
}


#searchbar:not(.show) {
    display: none
}

#rank-math-toc,
section#comments {
    border: 3px solid var(--e-global-color-accent);
    border-radius: 35px;
    padding: 20px;
}

#rank-math-toc {
    margin: 40px 0;
}

section#comments {
    margin-bottom: 40px;
}



#rank-math-toc h2 {
    text-align: center;
    font-family: "Lovan", Sans-serif;
}

#rank-math-toc nav li {
    list-style: none;

}

#rank-math-toc nav li a {
    color: #000;
}

#rank-math-toc>nav>ul>li {
    list-style: none;
    padding: 0;
    font-weight: bold;
}


#rank-math-toc nav>ul>li ul {
    padding-left: 20px;
    font-weight: normal;
}




section#comments .comment-author b {
    font-weight: bold;
}

#comments .comment-meta {
    justify-content: flex-start;
    gap: 5px;
}


#comments .comment-metadata {
    margin: auto 0;
}

#comments .comment-metadata time {
    color: #000;
    margin-left: 10px;
}

#comments .reply {
    text-align: right;
}


#comments .reply a {
    border: 1px solid var(--e-global-color-accent);
    border-radius: 10px;
    padding: 10px;
    color: var(--e-global-color-accent);
    font-weight: 600;
}

#comments textarea {
    border: 1px solid var(--e-global-color-accent);
    border-radius: 35px;
}

#comments input {
    border: 1px solid var(--e-global-color-accent);
    border-radius: 15px;
}

#comments input[type=submit] {
    border: 1px solid var(--e-global-color-accent);
    border-radius: 10px;
    padding: 10px;
    color: #fff;
    background-color: var(--e-global-color-accent);
    font-weight: 600;
}

#comments form label {
    margin-bottom: 10px;
}



#comments a {
    color: var(--e-global-color-accent);
}

#comments .form-submit {
    text-align: right;
}


#comments .comment-form-author,
#comments .comment-form-email {
    width: calc(50% - 10px);
    margin-left: 10px;
    float: left;
}


#comments .comment-reply-title a {
    margin-left: 5px;
}


#comments ol.comment-list .children::before {
   border: 1px solid var(--e-global-color-accent);
  content: "";
  width: 20px;
  height: 50px;
  left: 50px;
  top: -31px;
  border-top: none;
  border-right: none;
  border-bottom-left-radius: 0;
  border-bottom: none;
}


#comments .says {
    display: none;
}

#comments .comment .comment-body,
#comments .pingback .comment-body {
    border-block-end: none;

}








.wprm-recipe-container {
    border: 3px solid var(--e-global-color-accent);
    border-radius: 35px;
    padding: 30px;
    background: #fff;
}


.wprm-header-block>.wprm-line {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-bottom: 10px;
}

.wprm-recipe-container .wprm-recipe-rating {
    text-align: center;
}

h2.wprm-recipe-name {
    color: var(--e-global-color-accent);
    text-align: center;
    font-family: "Lovan", Sans-serif;
    font-weight: normal;


}


.wprm-header-block .wprm-prevent-sleep+.wprm-recipe-meta-container {
    margin-top: auto;
    margin-bottom: auto;
}


.wprm-header-block .wprm-prevent-sleep+.wprm-recipe-meta-container>.wprm-recipe-block-container {
    display: flex;
    flex-direction: row-reverse;
}


.wprm-recipe-servings {
    color: var(--e-global-color-accent);
    margin-right: 5px;
    display: inline-block;
    font-weight: bold;
}


.wprm-recipe-container h3 {
    color: #5E6F2E;
    font-family: "Mont", Sans-serif;
    margin-top: 30px;
    margin-bottom: 10px;
}

.wprm-toggle-switch .wprm-toggle-switch-slider {
    background: none;
    border: 1px solid var(--e-global-color-accent);
}


.wprm-toggle-switch .wprm-toggle-switch-slider::before {
    background-color: var(--e-global-color-accent);
    ;
}

.wprm-toggle-switch input:checked+.wprm-toggle-switch-slider {
    background: var(--e-global-color-accent);
}


h3.wprm-recipe-instructions-header {
    text-align: center;
    margin-bottom: 20px;

}


.wprm-ts-main-meta .wprm-recipe-meta-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.wprm-header_holder {
    max-width: 700px;
    margin: 10px auto;
}



/*
.wprm-ts-main-meta>.wprm-recipe-meta-container .wprm-recipe-block-container>span:before {
    content: '\f86b';
    font-family: "Font Awesome 7 Pro", "Font Awesome 6 Pro", "Font Awesome 5 Pro";
    margin-right: 10px;
}

.wprm-ts-main-meta span.wprm-recipe-time:before {
    content: '\f017' !important;
}


.wprm-ts-main-meta span.wprm-recipe-custom-field-key-waar_te_bewaren:before {
    content: '\e026' !important;
}

*/


.wprm-header-block > .wprm-line{
    justify-content: center;
}

/*
.wprm-ts-main-meta span.wprm-recipe-custom-field-key-hoe_lang_te_bewaren:before {
    content: '\f467' !important;
}
*/


body:not(.home).single h1 {
    font-size: 50px !important;
}

.elementor-location-single a[target="_blank"]:not(.no-icon, .wprm-recipe-link, [href*="ohmyfoodness.nl"])::after {
    content: "\f14d"; /* share-from-square icon */
    font-family: "Font Awesome 7 Pro", "Font Awesome 7 Free","Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 00;
    font-size: 0.8em;
    line-height: 1em;
    margin-left: 0.35em;
    color: currentColor;
}


.comments-pagination .prev.page-numbers,
.comments-pagination .next.page-numbers {
    display: none;
}

.comments-pagination{
	text-align:center
}

header .elementor-sub-item{
	padding-left: 30px;
}


.wp-block-paragraph a{
    text-decoration: underline;
}

.wprm-header-block .wprm-prevent-sleep{
	margin-top: 0 !important;
	margin-bottom: auto !important;
}


@media (max-width: 767px){
	header nav .sub-arrow{
		background-color: var(--e-global-color-secondary);padding-inline-end: 10px !important;color: #fff;
	}

	header .elementor-nav-menu a, header .elementor-nav-menu a:focus, header .elementor-nav-menu a:hover{
		padding-right: 0
	}

	header nav li:not(:last-child){
		border-bottom: 1px solid var(--e-global-color-secondary) !important
	}

    .omf-recipe-meta #header-rating ~ span{
        font-size: .5em
    }
    .omf-recipe-meta #header-rating{
        /*flex-direction: column*/
    }

	.wprm-recipe-block-container-table{
		border: none !important
	}
}


/*Mediavine Mobile Fix*/ @media only screen and (max-width: 425px) { [data-elementor-type="single-post"] > .elementor-element > .e-con-inner > .elementor-element { padding-right: 10px !important; padding-left: 10px !important; } .wprm-recipe-container { padding-left: 8px !important; padding-right: 8px !important; } } @media only screen and (max-width: 375px) { [data-elementor-type="single-post"] > .elementor-element > .e-con-inner > .elementor-element { padding-right: 6px !important; padding-left: 6px !important; } .wprm-recipe-container { padding-left: 8px !important; padding-right: 8px !important; } } @media only screen and (max-width: 359px) { [data-elementor-type="single-post"] > .elementor-element { padding-left: 10px !important; padding-right: 10px !important; } [data-elementor-type="single-post"] > .elementor-element > .e-con-inner > .elementor-element { padding-left: 0px !important; padding-right: 0px !important; } .wprm-recipe-container { padding-left: 0px !important; padding-right: 0px !important; border: unset !important; } .wprm-recipe-instructions li .mv-ad-box { margin-left: -32px !important; } } /*Mediavine Mobile Fix - END*/






/* Header: hide the sticky header while scrolling down, show it again on scroll up (assets/js/omf-header-hide.js) */
.elementor-location-header .elementor-sticky--active {
	transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.elementor-location-header .elementor-sticky--active.omf-header-hidden {
	transform: translateY(-110%);
}
@media (prefers-reduced-motion: reduce) {
	.elementor-location-header .elementor-sticky--active {
		transition: none;
	}
}

/* OMF feedback 2026-10-13: contrast, recipe card spacing, pagination, header CTA */

/* Recipe card */
.wprm-recipe-name {
	color: #171717 !important;
}
.wprm-header_holder .wprm-line {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 24px 40px;
}
.wprm-ts-main-meta .wprm-recipe-details-container-table {
	width: 100%;
}
.wprm-ts-main-meta .wprm-recipe-block-container-table {
	padding: 12px 16px !important;
}
.wprm-ts-main-meta .wprm-recipe-details-label {
	display: block;
	font-weight: 700;
}
.wprm-call-to-action {
	cursor: pointer;
}
.wprm-call-to-action-header,
.wprm-call-to-action-text a {
	color: #8E493B !important;
}

/* Category pagination */
.elementor-pagination {
	display: flex;
	margin-top: 24px;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.elementor-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 2px solid #8E493B;
	border-radius: 999px;
	color: #8E493B;
	font-weight: 600;
	text-decoration: none;
}
.elementor-pagination a.page-numbers:hover,
.elementor-pagination a.page-numbers:focus-visible,
.elementor-pagination .page-numbers.current {
	background: #8E493B;
	color: #fff;
}

/* "Naar het recept" button in the post header */
.jump-to-recipe a.elementor-button {
	font-size: 18px;
	padding: 16px 36px;
	background: #8E493B;
	color: #fff;
	font-weight: 700;
}
.jump-to-recipe a.elementor-button:hover,
.jump-to-recipe a.elementor-button:focus-visible {
	background: #5E6F2E;
	color: #fff;
	outline: 3px solid #171717;
	outline-offset: 2px;
}

/* "Bekijk reviews" link in the post header */
.omf-review-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 2px solid #8E493B;
	border-radius: 999px;
	color: #8E493B;
	font-weight: 600;
	text-decoration: none;
}
.omf-review-link:hover,
.omf-review-link:focus-visible {
	background: #8E493B;
	color: #fff;
}
#comments {
	scroll-margin-top: 100px; /* clear the sticky header */
}
.omf-recipe-meta:has(.omf-review-link) {
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	white-space: nowrap;
}
.omf-review-link {
	min-height: 36px;
	padding: 0 14px;
	font-size: 15px;
}

/* Comments: small links and names in darker terracotta */
#comments .comment-reply-link,
#comments .comment-author .fn,
#comments .comment-author a.url,
#comments .page-numbers,
.wprm-user-rating-summary-details-no-comments {
	color: #8E493B !important;
}
#comments #cancel-comment-reply-link {
	color: #8E493B !important;
}
#comments .comment-author .says {
	color: #5E6F2E;
}

/* Comment form on recipe posts: review layout (OMF feedback 2026-10-22) */
#commentform textarea#comment {
	height: 105px;
	min-height: 0;
}
.omf-comment-rating {
	margin: 24px 0;
}
.omf-comment-rating__title {
	margin: 0 0 4px;
	font-size: 1.25em;
	color: #171717;
}
.omf-comment-rating__hint {
	margin: 0 0 16px;
	font-size: .875em;
}
.omf-comment-rating .comment-form-wprm-rating {
	margin: 0;
}
.omf-comment-rating .comment-form-wprm-rating label {
	/* the CTA above replaces the visible label; keep it for screen readers */
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.omf-comment-rating .wprm-rating-stars {
	zoom: 1.5; /* the star size is set inline by WPRM */
}
#respond {
	scroll-margin-top: 100px; /* clear the sticky header */
}

/* Homepage: latest post title and "Verras me" text in #171717 (OMF feedback 2026-10-22) */
.elementor-element-c09cd88 .elementor-heading-title {
	color: #171717 !important;
}
.omf-random-recipe_left {
	color: #171717;
}
