/*
Theme Name:   GLNC Frost
Description:  Frost child theme for GLNC, halfway
Author:       Weblines
Template:     frost
Version:      0.1
Text Domain:  glncfrost
*/

input,
select,
textarea {
	font-family: var(--wp--preset--font-family--system-font);
	font-size: var(--wp--preset--font-size--small);
	font-size: 14px;
	font-weight: var(--wp--custom--font-weight--regular);
}

b,
strong,
th {
	font-weight: var(--wp--custom--font-weight--bold);
}

/* -- Navigation -- (.wp-block-navigation.mainnav) */
.wp-block-navigation .wp-block-navigation__container > li > .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation__container > .wp-block-page-list > li > .wp-block-navigation-item__content {
	text-transform: uppercase;
	position: relative;
	padding: 6px 0;
}
.wp-block-navigation .wp-block-navigation__container > li > .wp-block-navigation-item__content:before,
.wp-block-navigation .wp-block-navigation__container > .wp-block-page-list > li > .wp-block-navigation-item__content:before {
	content: "";
	position: absolute;
	width: 100%;
	right: 50%;
	bottom: 0;
	height: 1px;
	background-color: transparent;
	transform: scale(0, 0) translate(-50%, 0);
	transition: transform .3s ease-in-out, color .0s ease-in-out;
}
.wp-block-navigation .wp-block-navigation__container > li > .wp-block-navigation-item__content:hover:before,
.wp-block-navigation .wp-block-navigation__container > .wp-block-page-list > li > .wp-block-navigation-item__content:hover:before {
	width: 100%;
	background-color: currentColor;
	transform: scale(1, 1) translate(50%, 0);
}
.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--custom--color--hover);
}
.wp-block-navigation .current-menu-item > a,
.wp-block-navigation .current-menu-ancestor > a {
	color: var(--wp--custom--color--hover) !important;
}
/* -- Navigation Submenu -- */
/* Hamburger menu open */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
	padding: 10px 20px 0;
	gap: 10px;
}
/* Hamburger button */
.wp-block-navigation__responsive-container-close, .wp-block-navigation__responsive-container-open {
	border: none;
	padding: 0;
}
.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open {
}
.wp-block-navigation__responsive-container-close svg, .wp-block-navigation__responsive-container-open svg {
	width: 30px;
	height: 30px;
}

/* Larger screens - not hamburger */
@media (min-width:768px) {
	.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
		background-color: var(--wp--preset--color--base);
		border: var(--wp--preset--color--base);
		color: currentColor;
		padding: 10px;
		box-shadow: 0px 4px 10px -2px rgba(0, 0, 0, 0.1);
	}
	.wp-block-navigation :where(.wp-block-navigation__submenu-container) a {
		padding: 8px 10px;
	}
}

/* Mobile Nav */
/* change mobile menu breakpoint */
@media screen and (max-width: 767px) {
	/* hamburger button */
	.wp-block-navigation__responsive-container-open  {
		display: block !important;
		/*color: var(--wp--preset--color--primary); */
	}
	/* full menu */
	.wp-block-navigation__responsive-container:not(.is-menu-open.has-modal-open) {
		display: none !important;
	}
}

@media (max-width: 1023px) {
	.hide-mid {
		display: none !important;
	}

}

/* Header (with max mega menu) */
/* Max Mega Menu temp */
@media (min-width:1023px) {
	.mega-menu-wrap {
		padding-right: 16px !important;
		flex-shrink: 0;
	}
}

/* Footer */
@media (min-width:480px) and (max-width:767px) {
	.footer-grid.wp-block-group {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width:479px) {
	.footer-grid.wp-block-group {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}

/* Breadcrumbs */
.breadcrumbs {
	font-family: var(--wp--preset--font-family--primary);
}

.breadcrumbs a {
	text-decoration: underline;
}
.breadcrumbs a:hover {
	text-decoration: none;
}

/* Image within row */
.no-shrink {
	flex-shrink: 0;
}

/* File block */
.wp-block-file:not(.wp-element-button) {
	font-size: inherit;
}

/* Button block */
.wp-block-button.is-style-outline>.wp-element-button:hover {
	background-color: var(--wp--custom--color--hover);
	border-color: var(--wp--custom--color--hover);
	color: var(--wp--preset--color--base) !important;
}
.wp-element-button.has-background:hover {
	background-color: var(--wp--custom--color--hover) !important;
	color: var(--wp--preset--color--base) !important;
}
.wp-element-button.has-base-background-color:hover {
	background-color: var(--wp--custom--color--hover) !important;
}
.wp-element-button.has-contrast-color:hover {
	color: var(--wp--preset--color--base) !important;
}

/* Iframe */
iframe {
	display: block;
}

/* Gallery */
.wp-block-gallery.has-nested-images figure.wp-block-image {
	flex-grow: inherit;
}

/* Columns */
/* Support vertical alignment on individual columns */
.wp-block-column {
	display: flex;
	flex-direction: column;
}
.wp-block-column.is-vertically-aligned-center {
	justify-content: center;
	align-self: stretch;
}
.wp-block-column.is-vertically-aligned-top {
	justify-content: flex-start;
	align-self: stretch;
}
.wp-block-column.is-vertically-aligned-bottom {
	justify-content: flex-end;
	align-self: stretch;
}
.wp-block-column.is-vertically-aligned-stretch {
	/* make stretch mean something different for the content */
	justify-content: space-evenly;
	align-self: stretch;
}

/* Media & Text */
:root :where(.wp-block-media-text__content) > * {
	margin-block-start: var(--wp--custom--spacing--gap);
	margin-block-end: 0;
}
:root :where(.wp-block-media-text__content) > :first-child {
	margin-block-start: 0;
}
@media (max-width: 600px) {
	.wp-block-media-text>.wp-block-media-text__content {
		padding: var(--wp--custom--spacing--gap) 0 0;
	}
}

/* Post Nav */
.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous {
	margin-right: 6px;
}
.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next {
	margin-left: 6px;
}
@media (max-width: 767px) {
	.wp-block-post-navigation-link {
	    width: 100%;
	}
}
@media (min-width: 768px) {
	.wp-block-post-navigation-link {
	    max-width: calc(50% - var(--wp--custom--spacing--gap) / 2);
	}
}

/* No floating images for mobile */
@media (max-width: 599px) {
	body .is-layout-constrained > .alignleft,
	body .is-layout-constrained > .alignright,
	body .is-layout-flow > .alignleft,
	body .is-layout-flow > .alignright {
		float: none;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: var(--wp--preset--spacing--normal);
	}
}

/* Shadows */
/* Text shadow */
.is-style-shadow {
	text-shadow: 1px 0 1px #000;
}
/* Better block shadow */
.is-style-subtleshadow {
	box-shadow: 3px 4px 5px rgba(1,2,2,.16);
}
.is-style-allroundshadow {
	/* box-shadow: 0px 45px 90px -22px rgb(0 0 0 / 30%); big all around */
	box-shadow: 4px 4px 20px -10px rgba(1, 2, 2, .16), -4px -4px 20px -10px rgba(1, 2, 2, .16);  /* blur must be bigger than spread */
}

@media (max-width:767px) {
	.wrap-mobile {
		flex-wrap: wrap;
	}
	.wrap-mobile.is-content-justification-space-between {
		justify-content: center;
	}
	.vertical-mobile {
		flex-direction: column;
	}
}
@media(max-width:599px) {
	.wrap-600 {
		flex-wrap: wrap;
	}
	.wrap-600.is-content-justification-space-between {
		justify-content: center;
	}
	.vertical-600 {
		flex-direction: column;
	}
}

/* CF7 */
.wpcf7 {
	max-width: var(--wp--style--global--content-size);
}
@media (min-width: 600px) {
	.wpcf7 .half {
		width: 49%;
		float: left;
	}
	.wpcf7 .half:first-of-type {
		margin-right: 2%;
	}
}
.wpcf7 .captcha-image label > input {
    display: none;
}
input[type=email], input[type=number], input[type=password], input[type=reset], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
	border-width: 1px;
	border-style: solid;
	border-color: #dddddd;
	border-radius: 2px;
	background: #fafafa;
	transition: all .2s linear;
}
input[type=submit] {
	background-color: var(--wp--preset--color--primary);
	border-radius: 5px;
	border-width: 0;
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--medium);
	padding-top: 15px;
	padding-right: 30px;
	padding-bottom: 15px;
	padding-left: 30px;
	text-decoration: none;
	width: auto;
}
input[type=submit]:hover {
	background-color: var(--wp--custom--color--hover);
	border-color: var(--wp--custom--color--hover);
}

/* Corrections */
ins, mark {
	background: 0 0;
  text-decoration: none;
}

/********** WGDB **********/
#frm_form_25_container, #frm_form_19_container, #frm_form_21_container {
	max-width: var(--wp--style--global--wide-size);
}
.page-whole-grain-registered-products-search-aus main, .page-whole-grain-registered-products-search-nz .site-main {
	min-height: 500px;
}
@media only screen and (min-width: 600px) and (max-width: 1023px) {
	.wholegrainsearch .frm_section_heading > .frm_form_field, .wholegrainsearch .frm_fields_container > .frm_submit, .wholegrainsearch .frm_grid_container > .frm_form_field, .wholegrainsearch .frm_fields_container > .frm_form_field {
	    grid-column: 1 / span 6 !important;
	}
	.wholegrainsearch .frm_fields_container > .frm_form_field:nth-child(2n+1) {
	    grid-column: 7 / span 6 !important;
	}
}
/* Make the health star images much smaller in Formidable editing
.frm_form_field.horizontal_radio.tiny {
   --image-size: 50px !important;
}
.frm_form_field.horizontal_radio.tiny .frm_image_options .frm_image_option_container img {
    height: 50px !important;
} */
.wgresults table {
	width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
	border-collapse: collapse;
	border: none;
}
.wgresults td {
   vertical-align: middle;
   font-size: 14px;
   border: none;
   padding-left: 0;
}
.wgresults tr:nth-child(even) {
    background: #eee;
}
.wgresults thead tr {
    background: var(--wp--preset--color--primary);
    color: #fff;
}
.wgresults thead th {
    padding: 18px;
    text-align: left;
}
.wgresults table p {
    margin: 0;
}
.wgresults .prodimage img {
    width: 82.5px;
    max-width: 82.5px;
		height: auto;
		display: block;
}
.wgresults .prodname {
    font-size: 15px;
}
.wgresults .glnc-cert .icon {
    font-size: 17px;
		line-height: 1;
}
@media (min-width: 760px) {
    .wgresults td {
        padding: 6px 10px;
    }
    .wgresults .glnc-cert {
        text-align: center;
    }
}
@media (min-width: 900px) {
    .wgresults .foodcat {
        min-width: 120px;
    }
    .wgresults .wgcontent {
        min-width: 150px;
    }
}
@media (min-width: 1300px) {
    .wgresults td {
        padding: 6px 20px;
    }
}
@media (max-width: 795px) {
    .frm_inline_form .wholegrainsearch .frm_submit {
        display: block;
    }
    .wholegrainsearch .frm_submit::before {
        display: none !important;
    }
}
@media (max-width: 759px) {
    .frm-show-form.wholegrainsearch {
        margin-bottom: 20px;
    }
    .wgresults table td, .wgresults table th {
        display: block;
        width: 100%;
        text-align: left;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
				padding: .7em 0;
    }
    .wgresults .prodimage img {
        width: 110px;
        max-width: 110px;
    }
    .wgresults .glnc-cert {
        padding: 0;
    }
    .wgresults .glnc-cert div {
        padding: 6px 0;
    }
    .wgresults .glnc-cert div:before {
        content: "GLNC Certified: ";
    }
    .wgresults tr {
        display: block;
        padding: 20px;
    }
    .wgresults thead {
        display: none;
    }
    .wgresults h3 {
        font-size: 1.4em;
        color: var(--wp--preset--color--primary);
        border-top: solid 1px #d0d0d0;
        padding-top: 10px;
        margin-top: 30px;
        margin-bottom: 10px;
    }
    .wgresults table {
        margin-top: 0;
    }
}
@media (max-width: 600px) {
    .wholegrainsearch .frm_form_field.frm_sixth {
        width: 100%;
        max-width: 100%;
    }
}

/* Popup individual product */
.prodimage {
    position: relative;
}
.prod-container .prodimage img {
	width: 300px;
}
.health-star, .glnc-cert {
    margin: 0;
}
.health-star .frm_show_images.frm_image_option_container {
    width: 75px;
}
.health-star img {
    height: auto;
    max-width: 100%;
}
table.numbers {
  font-size: 13px;
  max-width: 350px;
  width: 100%;
  margin-bottom: 1em;
  margin-top: 20px;
  border-collapse: separate;
  border-spacing: 0;
  border-width: 1px 0 0 1px;
	border: 1px solid var(--wp--preset--color--neutral);
}
.numbers td, .numbers th {
    border-bottom: solid 1px var(--wp--preset--color--primary);
    padding: 4px 6px;
		border-right: solid 1px var(--wp--preset--color--neutral);
}
.numbers tr {
    border-left: solid 1px var(--wp--preset--color--primary);
    border-right: solid 1px var(--wp--preset--color--primary);
}
.numbers tr.no-border-below th,
.numbers tr.no-border-below td {
    border-bottom: none;
    padding-bottom: 0;
}
.numbers tr.no-border-above th,
.numbers tr.no-border-above td {
    padding-top: 0;
}
.numbers thead th {
    background: var(--wp--preset--color--primary);
    color: white;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    padding: 6px;
}
.numbers thead td {
    background: var(--wp--preset--color--primary);
    color: white;
    line-height: 1.3;
    text-align: left;
    padding: 6px 6px 10px 6px;
}
.numbers th .per {
    display: block;
    font-size: 13px;
}
.numbers tbody th {
    width: 50%;
    font-weight: 500;
}
.numbers tbody td {
    width: 25%;
    text-align: right;
}
.proddesc .product {
    font-weight: 600;
    margin-bottom: 6px;
		margin-top: 0;
}
button.mfp-close, button.mfp-arrow {
    background: transparent;
}
@supports not (display: grid) {
    .mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
        width: 320px;
    }
}
@media screen and (min-width: 640px) {
    .prod-container {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 320px 20px auto;
        grid-template-columns: 320px auto;
        grid-gap: 20px;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        justify-items: center;
    }
}
@media screen and (max-width: 639px) {
    .prod-container {
        text-align: center;
    }
    .numbers {
        margin-left: auto;
        margin-right: auto;
    }
    .mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
        width: auto;
    }
}
/********** End WGDB **********/

/********** Recipes **********/
/* Recipes page - need to finesse, particularly for mobile */
.display-inline {
	display: inline;
}
/* Recipe two-column page must change to one-column for mid screen sizes */
@media (max-width: 959px) {
	body.single-recipe main > .wp-block-columns:not(.hero) {
			flex-wrap: wrap !important;
	}
	body.single-recipe main > .wp-block-columns:not(.hero) > .wp-block-column {
		flex-basis: 100% !important;
		flex-grow: 1 !important;
		border-left-width: 0 !important;
		border-right-width: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}
@media (max-width: 699px) {
	body.single-recipe .is-layout-flow > .alignleft,
	body.single-recipe .is-layout-flow > .alignright {
		float: none;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: var(--wp--preset--spacing--normal);
	}
}

/* Recipeslist shortcode styling */
ul.recipeslist {
  padding: 0;
	list-style: none;
}
.recipeslist li  {
	border-bottom: solid 1px var(--wp--preset--color--neutral);
	padding: 10px 0;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
  gap: 16px;
	align-items: center;
}
.recipeslist p.title {
	margin: 0;
	font-family: var(--wp--preset--font-family--primary);
	font-weight: var(--wp--custom--font-weight--medium);
}
.recipeslist .title a {
	display: block;
	text-decoration: none;
  color: var(--wp--preset--color--contrast);
}
.recipeslist .title a:hover {
  color: var(--wp--preset--color--primary);
}
.recipeslist .featured-image {
	width: 60px;
	margin-bottom: 0;
}
.recipeslist .featured-image img {
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/********** End Recipes **********/

/* GLNC Taxonomy shortcode styling */
a .term-card {
	text-decoration: none !important;
  color: var(--wp--preset--color--dark);
}
a:hover .term-card:hover p:hover,
a:hover .term-card:hover p a:hover {
	text-decoration: none !important;
}
:root a:where(:not(.wp-element-button)):hover .term-card {
	text-decoration: none !important;
}
.term-card a {
	text-decoration: none;
  color: var(--wp--preset--color--contrast);
}
.term-card .featured-image {
	aspect-ratio: 4 / 3;
	margin-bottom: 0;
}
.term-card .featured-image img {
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.term-card {
	min-height: 100%;
}

.term-card.category, .term-card.recipecat {
	border: solid 1px var(--wp--preset--color--neutral);
}
.term-card.category .term-text, .term-card.recipecat .term-text {
  padding-right: var(--wp--preset--spacing--x-small);
  padding-bottom: var(--wp--preset--spacing--small);
  padding-left: var(--wp--preset--spacing--x-small);
}
.term-card h4 a:hover {
	text-decoration: underline;
  color: var(--wp--preset--color--primary);
}
/********* End GLNC Taxonomy *********/

/********* Search & Filter *********/
.horizontal .search-filter-field--input-type-checkbox .search-filter-input-group,
.horizontal.search-filter-field--input-type-checkbox .search-filter-input-group {
	display: flex;
	flex-wrap: wrap;
	column-gap: 20px;
	row-gap: 10px;
}
.is-layout-constrained > .search-filter-field--align-wide {
	max-width: var(--wp--style--global--wide-size);
}
.search-filter-field.centred,
.is-content-justification-center > .search-filter-field {
	align-items: center;
}
.wp-block-group.stretch > .search-filter-field {
	width: 100%;
}
.search-filter-field--control-type-submit .search-filter-input-button:hover:not(.is-disabled):not(.search-filter-input-button--is-selected) {
	background-color: var(--wp--custom--color--hover);
	border-color: var(--wp--custom--color--hover);
	color: var(--wp--preset--color--base);
}
/******* End Search & Filter *******/

/********* Carousel Block *********/
.cb-wrapper {
	align-items: center;
}
/******* End Carousel Block *******/

/******* Hero *******/
.textcolumn {z-index: 2;}
.category-heroimg {
    border: none;
    bottom: 0;
    box-shadow: none;
    height: 100%;
    left: 0;
    margin: 0;
    max-height: none;
    max-width: none;
    object-fit: cover;
    outline: none;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}
.herocurve .imagecolumn {
	position: relative;
}

.hero .wp-block-post-title,
.hero .wp-block-query-title,
.herosize.wp-block-heading  {
	font-size: clamp(32px, 2rem + ((1vw - 3.2px) * 0.909), 40px);
}

@media (min-width:1260px) {
	.widecolumn {
		padding-left: calc(50% - var(--wp--style--global--wide-size) / 2 ) !important;
	}
	.herostack {
		padding-left: calc(50% - var(--wp--style--global--wide-size) / 2 ) !important;
		padding-right: calc(50% - var(--wp--style--global--wide-size) / 2 ) !important;
	}
}
@media (min-width:782px) {
	.herodiag .wp-block-cover img {
		clip-path: polygon(10% 0,100% 0,100% 100%,0 100%);
	}
	.herocurve .imagecolumn:after {
		width: 200px;
		height: 100%;
		aspect-ratio: 2/3;
		clip-path: ellipse(100% 85% at 0 30%);
		background: var(--wp--preset--color--primary);
		content: '';
		position: absolute;
		z-index: 1;
		top: 0;
		left: -100px;
	}
}
@media (max-width:781px) {
	.textcolumn {min-height: 200px; margin-top: -50px !important; padding-bottom: 16px !important;}
	.imagecolumn .wp-block-cover {min-height: 300px !important; }
	.herodiag .textcolumn {
		--p: 30px; /* control the shape (can be percentage) */
		clip-path: polygon(0 var(--p),100% 0,100% 100%,0 100%);
	}
	.herocurve .textcolumn {
		clip-path: ellipse(85% 100% at 50% 100%);
	}
	.herostack {
		min-height: 200px !important;
		clip-path: ellipse(85% 100% at 50% 100%);
		padding-bottom: 16px !important;
	}
}
/***** End Hero *****/

/********* Logo Gallery *********/
.logo-gallery.wp-block-gallery {
	/*justify-content: space-between;*/
}
.logo-gallery .wp-block-image {
	margin-top: auto !important;
}
.logo-gallery.wp-block-gallery.has-nested-images figure.wp-block-image {
	align-items: center;
	max-width: 164px;
}
.logo-gallery.wp-block-gallery.has-nested-images figure.wp-block-image img {
	max-height: 100px;
	/*margin-top: 1em;
	margin-bottom: 1em; */
}
/*
@media (min-width: 600px) and (max-width: 959px) {
	.logo-gallery.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image),
	.logo-gallery.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image) {
    margin-right: 4%;
    width: calc(25% - 5.4%);
	}
	.logo-gallery.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image):nth-of-type(4n),
.logo-gallery.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image):nth-of-type(4n) {
		margin-right: 0;
	}
}
*/
.logo-grid figure.wp-block-image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 2;
}
.logo-grid figure.wp-block-image img {
	max-height: 100%;
	width: auto;
}

/******* End Logo Gallery *******/