:root {
	--brand_color: #009345;
	--brand_color_inverted: #FFFFFF;
	--background_color: #FFFFFF;
	--text_color: #3D3D3D;
	--link_color: #009345;
}

body {
	background-color: var(--background_color);
	color: var(--text_color);
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6, legend {
	font-family: Montserrat;
}

body, p, label, .paragraph {
	font-family: Open Sans;
	font-size: 18px;
}

a {
	color: var(--link_color);
}

a:hover {
	text-decoration: underline;
}

.brand {
	background-color: #009345;
	color: #FFFFFF;
	border-color: #009345;
}

.text-brand {
	color: #009345;
}

.text-action {
	color: #f32812;
}

.brand-inverted {
	background-color: #FFFFFF;
	color: #009345;
	border-color: #FFFFFF;
}

.action {
	background-color: #f32812;
	color: #ffffff;
	border-color: #f32812;
}

.action-inverted {
	background-color: #ffffff;
	color: #f32812;
	border-color: #ffffff;
}

/* SiteHeader */

.announcement_bar {
	background-color: #bbd513;
	color: #ffffff;
}

.announcement_bar a {
	color: #ffffff;
}

.siteHeader {
	background-color: transparent;
	color: #FFFFFF;
	border-bottom-style: solid;
	border-bottom-width: 0;
	border-bottom-color: #EEEEEE;
}

.siteHeader__container {
	max-width: 100%;
}

/* MainNavigation */

.mainNavigation, .mobileNav {
	background-color: #009345;
}

.mainNavigation__list {
	text-align: center !important;
}

.siteHeader__container--style4 {
	text-align: center;
}

.mainNavigation__list > li > a {
	font-size: 16px;
}

/*Mobile Nav*/
.mobileNav > li > a {
	color: #FFFFFF;
	background-color: #009345;
}

.mobileNav > li > a:hover {
	background-color: #006b1d;
}

.mobileNav > li > a:focus {
	background-color: #006b1d;
}

/* Custom Link Colors */
	.mainNavigation__list > li > a {
		color: #FFFFFF;
		background-color: #009345;
	}
	.mainNavigation__list > li > a:hover {
		color: #FFFFFF;
		background-color: #034A24;
	}

	.mobileNav > li > a {
		color: #FFFFFF;
		background-color: #009345;
	}

	.mobileNav > li > a:hover {
		color: #FFFFFF;
		background-color: #034A24;
	}

	.mobileNav > li > a:focus {
		color: #FFFFFF;
		background-color: #034A24;
	}

.mainNavigation__list > li > a {
	transition: all 0.2s ease-in-out;
}

/* Auxiliary Navigation (Use this for the account menu, sign up cta, cart, etc,) */

.auxiliaryMenu--block, .auxiliaryMenu__container {
	background-color: transparent;
		border-bottom: none;
	}

.auxiliaryMenu {
	max-width: 100%;
}

		.auxiliaryMenu > li > a {
				color: #;
			}

	.auxiliaryMenu > li > a:hover, .auxiliaryMenu > li > a:focus {
				color: #;
			}
	
.order__delivery_threshold_difference, .order__delivery_threshold_difference-met {
    background-color: #f8f8f8;
    color: #646464;
}

/* OrderStatus */
.orderStatusBar {
	background-color: #f8f8f8;
}

.orderStatus__container {
	color: #646464;
}

.orderStatus__container a {
	border-bottom-color: #ffffff;
	color: #646464;
}

.orderStatus__container a:hover {
	border-bottom-color: #646464;
}

.orderStatus__mobileToggle {
	color: #646464;
}

.orderStatus__mobileToggle a {
	border-bottom-color: #ffffff;
	color: #646464;
}

.orderStatus__mobileToggle a:hover {
	border-bottom-color: #646464;
}

/* Logo */

.logo {
	color: #FFFFFF;
	font-size: 16px;
	padding: 5px;
}

.logo__img {
	max-height: 109px;
}

@media (max-width: 414px) {.logo {padding: 5px;}.logo__img {max-height: 75px;}}

.siteFooter {
	background-color: #363c38;
	color: #ffffff;
}

.siteFooter .tw-prose {
	--tw-prose-headings: #ffffff;
	--tw-prose-body: #ffffff;
	--tw-prose-p: #ffffff;
	--tw-prose-a: #ffffff;
	--tw-prose-bullets: #ffffff;
}

.siteFooter h1, .siteFooter h2, .siteFooter h3, .siteFooter h4, .siteFooter h5, .siteFooter h6 {
	color: #ffffff;
}

.siteFooter a {
	--tw-prose-a: #ffffff;
	color: #ffffff;
}

.siteFooter a:hover, .siteFooter a:focus {
	color: #ebebeb;
}

.siteFooter img {
	margin-left: auto;
	margin-right: auto;
}

.backToTopLink__container {
	background-color: #4a504c;
}

.backToTopLink__container a {
	color: #ffffff;
}

/* Buttons */
.btn-brand, .btn-default, .btn-primary {
	background-color: #009345 !important;
	border-color: #007f31 !important;
	color: #FFFFFF !important;
}

.btn-brand-inverted {
	background-color: #FFFFFF;
	color: #009345;
	border: solid 1px #009345;
}

.btn-brand-inverted:hover {
	background-color: #009345;
	color: #FFFFFF;
	border: solid 1px #009345;
}



.btn-brand:hover, .btn-default:hover, .btn-primary:hover {
		background-color: #28bb6d !important;
	border-color: #28bb6d !important;
		color: #FFFFFF !important;
}

.btn-danger, .btn-action, .cta {
	background-color: #f32812 !important;
	border-color: #df1400 !important;
	color: #ffffff !important;
}
.btn-danger:hover, .btn-action:hover, .cta:hover {
		background-color: #ff503a !important;
	border-color: #ff503a !important;
	
	color: #ffffff !important;
}

.btn-action-inverted {
	background-color: #ffffff;
	color: #f32812;
	border: solid 1px #f32812;
}

.btn-action-inverted:hover {
	background-color: #f32812;
	color: #ffffff;
	border: solid 1px #f32812;
}

.bullet, .confirmation__step-number {
	background-color: #009345;
	color: #FFFFFF;
}

/* Store Menu */
.storeIndex__sideBarList--style2 {
	background-color: #f8f8f8 !important;
	border-color: #f8f8f8 !important;
	color: #777;
}

.storeSearch__input--style2 {
	border-color: #f8f8f8 !important;
}

.storeIndex__sideBarList--style2 > li > a {
	color: #777;
	border-color: #eeeeee !important;
}

.storeIndex__sideBarList--style2 > li > a:hover {
	color: #777;
	background-color: #eeeeee !important;
}

.storeSearch__button--style2 {
	color: #777;
}

.banner__protocols li:before {
    color: #009345
}

/*Custom Styles*/
/****Style the custom logo widget: ****/

.badges-flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap:1rem;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: auto;
    padding: 24px 16px;
    text-align: center;
}

.img-wrapper {
    width: 107px;
    height: 107px;
}

/* Tablet break point */
@media screen and (min-width: 475px) {
   .img-wrapper {
    width: 140px;
    height: 140px;
   } 
   
   .badges-flex-container {
     padding: 45px 16px;
   }
}

/* Desktop Breakpoint */
@media screen and (min-width: 920px) {
    .img-wrapper {
    width: 150px;
    height: 150px;
    }
}

.img-wrapper img {
    height: 100%;
    width: auto;
    aspect-ratio: 1/1;
}

/**** End logo widget styles ****/ 

/*** Patch: fix changes to the product images 
for continued support of square photos ***/

/*Select the <div> wrapping the <img> and set
it's height to match it's width aspect-ratio:
HW- 10/03/2023 */

/* Product collection page */
div.tw-aspect-h-3.tw-aspect-w-4.tw-w-full.tw-group {
    --tw-aspect-h: 1;
    --tw-aspect-w: 1;
}

/* Product listing page */
div.tw-aspect-h-2.tw-aspect-w-3.tw-w-full {
    --tw-aspect-h: 1;
    --tw-aspect-w: 1;
}

/* ============================================================
   GRAZECART PRODUCT PAGE — CLEAN CONSOLIDATED PATCH (FINAL)
   ============================================================ */

/* -------- Main row: compact, predictable gaps (override lg:tw-gap-*) -------- */
.productPage__productDetailsRow {
  align-items: start !important;
  column-gap: 16px !important;
  row-gap: 8px !important;
  overflow: visible !important; /* avoid clipping in odd themes */
}

/* --------------------------- Left (photo) column --------------------------- */
.productPage__photo {
  max-width: 640px;
  width: 100%;
  justify-self: start;
  box-sizing: border-box;
  margin-bottom: 0 !important;   /* row-gap controls spacing */
  position: relative !important;
  z-index: 0 !important;
}

/* Gallery flows top → bottom; never clip thumbs */
.productPage__photo .product-gallery {
  display: flex;
  flex-direction: column;
  overflow: visible !important;
}

/* Kill Tailwind aspect-ratio shim on hero wrapper + use real spacing */
.product-gallery__main {
  position: relative !important;
  height: auto !important;
  aspect-ratio: auto !important;     /* ignore tw-aspect-h/w */
  margin-bottom: 8px !important;     /* small, consistent space before thumbs */
  z-index: 0 !important;
}
.product-gallery__main::before {
  content: none !important;          /* remove phantom padding block */
  padding-top: 0 !important;
}

/* Hero image: show entire photo; keep stacking sane; cap height */
#main-product-image {
  display: block;
  width: 100%;
  height: auto !important;           /* beats .tw-h-full */
  object-fit: contain !important;    /* beats .tw-object-cover */
  object-position: center;
  border-radius: 8px;
  position: relative !important;
  z-index: 0 !important;
}
#main-product-image.tw-object-cover { object-fit: contain !important; }
.productPage__photo .product-gallery .tw-h-full { height: auto !important; }

/* Thumbnails: always below hero and above it in z-order */
.productPage__photo .product-gallery__thumbnails,
.productPage__photo .product-thumbnails,
.productPage__photo .thumbnails,
.productPage__photo .product-gallery__thumbs,
.productPage__photo .product__thumbnails {
  position: relative !important;     /* establish stacking context */
  z-index: 3 !important;             /* higher than hero wrapper + img */
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 8px !important;
  clear: both;
}

/* -------------------------- Right (details) column ------------------------- */
.productPage__details {
  min-width: 320px;
  position: relative !important;
  z-index: 2 !important;             /* sits above photo if edges meet */
  margin-top: 0 !important;
}

/* Nuke hidden vertical spacing utilities from Tailwind in details column */
.productPage__details[class*="tw-space-y-"] > * + *,
.productPage__details [class*="tw-space-y-"] > * + * { margin-top: 0 !important; }
.productPage__details[class*="tw-mt-"],
.productPage__details [class*="tw-mt-"],
.productPage__details > *:first-child { margin-top: 0 !important; }

/* Pages without trust badges: ensure next section doesn’t tuck under */
.productPage__productDetailsRow + * {
  clear: both;
  margin-top: 12px;
}

/* Trust badges (when present): clean full-width row start */
.badges-flex-container {
  grid-column: 1 / -1;
  margin-top: 12px;
  clear: both;
}

/* ------------------------------ Responsive ------------------------------- */

/* Tablet: allow wider photo; keep hero controlled */
@media (min-width: 641px) and (max-width: 1024px) {
  .productPage__photo { max-width: 100% !important; }
  #main-product-image { max-height: 60vh; }
}

/* Phone (≤640px): stack reliably; tight but safe spacing; no overlaps */
@media (max-width: 640px) {
  .productPage__productDetailsRow {
    display: block !important;
    column-gap: 0 !important;
    row-gap: 8px !important;
  }

  .product-gallery__main { margin-bottom: 8px !important; }

  #main-product-image {
    max-height: 60vh;               /* prevent “tower” images */
    border-radius: 12px;
  }

  .productPage__details {
    clear: both !important;
    margin-top: 8px !important;
    z-index: 2 !important;
  }

  .productPage__photo .product-gallery__thumbnails,
  .productPage__photo .product-thumbnails,
  .productPage__photo .thumbnails,
  .productPage__photo .product-gallery__thumbs,
  .productPage__photo .product__thumbnails {
    margin-top: 8px !important;
    z-index: 3 !important;
  }
}

/* ---------------- Listing/Collection (leave detail page unaffected) ------- */
div.tw-aspect-h-3.tw-aspect-w-4.tw-w-full.tw-group { --tw-aspect-h: 1; --tw-aspect-w: 1; }
div.tw-aspect-h-2.tw-aspect-w-3.tw-w-full         { --tw-aspect-h: 1; --tw-aspect-w: 1; }

/* --- Kill the remaining Tailwind aspect shim that creates the huge gap --- */
.product-gallery__main {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  /* also neutralize the custom-prop based ratio just in case */
  --tw-aspect-h: initial !important;
  --tw-aspect-w: initial !important;
}

/* Tailwind's aspect plugin uses BOTH ::before and ::after — remove both */
.product-gallery__main::before,
.product-gallery__main::after {
  content: none !important;
  display: none !important;
  padding-top: 0 !important;
  clear: none !important;
  float: none !important;
}
