/*
Theme Name:   Agriculture Farming Child
Theme URI:    https://middleworldfarms.org
Description:  Middle World Farms child theme for Agriculture Farming. All site-specific customisations live here — completely independent of Divi.
Author:       Middle World Farms
Author URI:   https://middleworldfarms.org
Template:     organic-farm
Version:      1.1.8
Text Domain:  mwf-child
*/

/* Child theme styles loaded after the parent. Add site-specific overrides below. */

/* ── Hide the Agriculture Farming / Organic Farm theme's native header & footer
     Our mwf-header-footer plugin provides both instead.                       */
#header,
#colophon,
.site-footer,
#preloader,
.custom-logo-link,       /* organic-farm native logo — we render our own */
.menu_header,            /* organic-farm native nav */
.gb_nav_menu {           /* organic-farm native nav variant */
  display: none !important;
}

/* ── Remove body padding/margin the theme adds to accommodate its own header  */
body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ── On the hero/home page, cancel the plugin's body padding so the hero
      sits flush behind the transparent fixed header.
      (body.mwf-custom-header is set by the plugin on every page — we need
      equal or higher specificity to override it for this page only.)         */
body.mwf-custom-header.home,
body.mwf-custom-header.front-page {
  padding-top: 0 !important;
}
body.admin-bar.mwf-custom-header.home,
body.admin-bar.mwf-custom-header.front-page {
  padding-top: 32px !important; /* admin bar only */
}

/* ── Hero section ─────────────────────────────────────────────────────────── */
.mwf-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 260px !important; /* flex centers within space below the tall non-sticky header */
  box-sizing: border-box;
}

.admin-bar .mwf-hero {
  padding-top: 292px !important; /* + 32px WP admin bar */
}

.mwf-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.mwf-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.mwf-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.mwf-hero__cta {
  display: inline-block;
  background: #213b2e;
  color: #fff !important;
  padding: 16px 34px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 999px;
  text-transform: uppercase;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  transition: all .25s ease;
}

.mwf-hero__cta:hover {
  background: #2c523f;
  transform: translateY(-3px);
}
   the transparent header. WordPress adds .home (blog front) and .front-page
   (static front page) to the body element.                                    */
body.home.mwf-custom-header,
body.front-page.mwf-custom-header {
  padding-top: 0 !important;
}
/* Keep admin bar offset correct on the front page */
.admin-bar body.home.mwf-custom-header,
body.admin-bar.home.mwf-custom-header,
.admin-bar body.front-page.mwf-custom-header,
body.admin-bar.front-page.mwf-custom-header {
  padding-top: 32px !important;
}

/* Clean page wrapper — no top offset so hero fills viewport */
#mwf-page-content { margin: 0; padding: 0; }

/* ── Header cart button — right-edge breathing room ────────────────────── */
.mwf-cart-btn {
  margin-right: 10px;
  width: 52px;
  height: 52px;
  /* Hidden — XT trigger takes over as the visible cart button */
  display: none !important;
}


/* ── Sticky header logo ────────────────────────────────────────────────── */
#mwf-header.is-scrolled .mwf-header__logo-img {
  height: 70px !important;
  max-width: 180px !important;
  margin-left: 5px;
}
/* Expand sticky header to just contain the 70px logo */
#mwf-header.is-scrolled {
  height: 80px !important;
}
/* Non-hero pages: match body padding-top to sticky header height */
body.mwf-custom-header:not(.home):not(.front-page):not(.mwf-has-hero) {
  padding-top: 80px !important;
}
body.admin-bar.mwf-custom-header:not(.home):not(.front-page):not(.mwf-has-hero) {
  padding-top: 112px !important;
}
/* Video hero section — must be flush at all screen sizes (wp:html renders no wrapper) */
#mwf-page-content > .mwf-hero {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}
/* ── Sidebar widgets ─────────────────────────────────────────────────────── */

.mwf-sidebar-box {
  background: #f8f6f0;
  border-left: 3px solid #4a7c2f;
  border-radius: 6px;
  padding: 16px 14px;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.mwf-sidebar-box h5 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2d5016;
}

/* Delivery Info */
.mwf-delivery-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mwf-delivery-info ul li {
  padding: 3px 0;
  font-size: 0.85rem;
  color: #333;
}

/* Subscription Push */
.mwf-sub-push p {
  font-size: 0.83rem;
  color: #444;
  margin-bottom: 10px;
}
.mwf-sub-push .wp-block-button__link {
  background: #4a7c2f !important;
  color: #fff !important;
  font-size: 0.82rem !important;
  padding: 8px 14px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  display: inline-block;
}
.mwf-sub-push .wp-block-button__link:hover {
  background: #2d5016 !important;
}

/* Quick Picks — tighten up the WC add_to_cart shortcode output */
.mwf-quick-picks .button,
.mwf-quick-picks .add_to_cart_button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 0.82rem !important;
  padding: 7px 10px !important;
  margin-bottom: 6px !important;
  background: #fff !important;
  color: #2d5016 !important;
  border: 1px solid #4a7c2f !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  justify-content: space-between;
  transition: background 0.2s, color 0.2s;
}
.mwf-quick-picks .button:hover,
.mwf-quick-picks .add_to_cart_button:hover {
  background: #4a7c2f !important;
  color: #fff !important;
}

/* Mission / Impact box */
.mwf-mission-box ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.mwf-mission-box ul li {
  padding: 3px 0;
  font-size: 0.85rem;
  color: #333;
}
.mwf-mission-box .wp-block-separator {
  margin: 10px 0;
  border-color: #ccc;
}
.mwf-mission-box p {
  font-style: italic;
  color: #555;
  line-height: 1.5;
}

/* ── Category image carousel ─────────────────────────────────────────────── */
.mwf-cat-carousel-wrap {
  padding: 12px 10px !important;
}
.mwf-cat-carousel-wrap h5 {
  margin-bottom: 10px;
}
.mwf-cat-carousel {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  /* hide scrollbar but keep scrolling */
  scrollbar-width: thin;
  scrollbar-color: #4a7c2f #e8f0e0;
}
.mwf-cat-carousel::-webkit-scrollbar { height: 4px; }
.mwf-cat-carousel::-webkit-scrollbar-track { background: #e8f0e0; border-radius: 2px; }
.mwf-cat-carousel::-webkit-scrollbar-thumb { background: #4a7c2f; border-radius: 2px; }

.mwf-cat-tile {
  flex: 0 0 72px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 4px;
}
.mwf-cat-tile img,
.mwf-cat-tile__placeholder {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}
.mwf-cat-tile__placeholder {
  background: #dde8d0;
}
.mwf-cat-tile:hover img {
  border-color: #4a7c2f;
  transform: scale(1.06);
}
.mwf-cat-tile__name {
  font-size: 0.68rem;
  font-weight: 600;
  color: #2d5016;
  text-align: center;
  line-height: 1.2;
  max-width: 70px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mwf-cat-tile__count {
  font-size: 0.62rem;
  color: #888;
  background: #e8f0e0;
  border-radius: 10px;
  padding: 1px 5px;
  line-height: 1.4;
}

/* ── Shop loop — dual buttons (View + Add to cart) ───────────────────────── */
.mwf-loop-buttons {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.mwf-loop-buttons a {
  flex: 1;
  text-align: center;
  padding: 8px 6px !important;
  font-size: 0.8rem !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
  white-space: nowrap;
}
/* View button — outlined green */
.mwf-loop-buttons .mwf-view-btn {
  background: #fff !important;
  color: #4a7c2f !important;
  border: 1px solid #4a7c2f !important;
}
.mwf-loop-buttons .mwf-view-btn:hover {
  background: #f0f7eb !important;
}
/* Add to cart / Select options — solid green */
.mwf-loop-buttons .add_to_cart_button,
.mwf-loop-buttons .product_type_variable,
.mwf-loop-buttons .button {
  background: #4a7c2f !important;
  color: #fff !important;
  border: 1px solid #4a7c2f !important;
}
.mwf-loop-buttons .add_to_cart_button:hover,
.mwf-loop-buttons .product_type_variable:hover,
.mwf-loop-buttons .button:hover {
  background: #2d5016 !important;
  border-color: #2d5016 !important;
}

/* ── Uniform product cards ───────────────────────────────────────────────── */

/* Square image — fixed height, cover-crop so all fill the same box */
ul.products .product a img,
ul.products li.product .woocommerce-LoopProduct-link img,
ul.products li.product img.attachment-woocommerce_thumbnail {
  display: block;
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 4px;
}

/* Make each card a flex column so footer (price + button) always sits at bottom */
ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 2px 12px rgba(74, 124, 47, 0.25) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  transition: box-shadow 0.2s ease !important;
}
ul.products li.product:hover {
  box-shadow: 0 4px 20px rgba(74, 124, 47, 0.45) !important;
}
ul.products li.product .woocommerce-LoopProduct-link,
ul.products li.product > a:first-child {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Title: fixed height = 2 lines + small descender buffer */
ul.products li.product .woocommerce-loop-product__title {
  overflow: hidden !important;
  height: 3.6em !important;
  line-height: 1.6 !important;
  margin-bottom: 6px !important;
  display: block !important;
  padding-bottom: 0 !important;
}

/* Pin price to consistent height */
ul.products li.product .price {
  min-height: 1.6em;
  display: block;
}

/* ── Content pages (converted from Divi) ────────────────────────────────── */

/* Max-width readable content column */
.single, .page:not(.woocommerce) .entry-content,
.page:not(.woocommerce) .wp-block-post-content {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 24px 60px;
}

/* Full-width cover block fix for custom page.php template.
   The organic-farm blocks.css sets `width: auto` on .alignfull.wp-block-cover.
   Our child page.php outputs content directly inside #mwf-page-content with no
   .entry-content wrapper, so we target that container directly.
   Using 100% (not 100vw) avoids scrollbar overflow on the right. */
#mwf-page-content .wp-block-cover.alignfull,
#mwf-page-content > .alignfull {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* Prevent horizontal scroll from any block attempting to use 100vw */
html,
body {
  overflow-x: hidden;
}

/* Price comparison cards — green shadow */
.wp-block-column > .wp-block-group[style*="caeaaf"] {
  border-radius: 8px !important;
  box-shadow: 0 6px 24px rgba(33, 59, 46, 0.22);
  transition: box-shadow 0.2s ease;
}
.wp-block-column > .wp-block-group[style*="caeaaf"]:hover {
  box-shadow: 0 10px 32px rgba(33, 59, 46, 0.35);
}

/* ─── Content page 80% desktop layout ─────────────────────────────────────────
   Full-width cover blocks (hero / CTA banners) stay edge-to-edge.
   Everything else — columns, headings, paragraphs — is capped at 90%, centred.
   Exception: wp:html blocks that contain the video hero (.mwf-hero) must be
   full-bleed — they are not .alignfull so would otherwise be boxed in.       */
@media (min-width: 1024px) {
  #mwf-page-content > *:not(.alignfull) {
    max-width: 90%;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }
  /* Homepage video hero — direct child, no wrapper, must be full-bleed */
  #mwf-page-content > .mwf-hero {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Headings on content pages */
.page .entry-content h1,
.page .entry-content h2,
.page .entry-content h3 {
  color: #2d5016;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}
.page .entry-content h1 { font-size: 2rem; }
.page .entry-content h2 { font-size: 1.5rem; }
.page .entry-content h3 { font-size: 1.2rem; }

/* Paragraph spacing */
.page .entry-content p { line-height: 1.75; margin-bottom: 1em; }

/* Cover block hero on content pages */
.page .wp-block-cover {
  min-height: 280px;
  margin-bottom: 40px;
}
.page .wp-block-cover h1 {
  color: #fff !important;
  font-size: 2.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Buttons */
.page .wp-block-button__link {
  background: #4a7c2f;
  color: #fff;
  border-radius: 4px;
  padding: 12px 24px;
  text-decoration: none;
}
.page .wp-block-button__link:hover { background: #2d5016; }

/* Lists */
.page .entry-content ul,
.page .entry-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.page .entry-content li { margin-bottom: 0.4em; line-height: 1.7; }

/* WPForms inside content pages */
.page .entry-content .wpforms-container { margin-top: 24px; }

/* Google Maps / iframe embeds */
.page .entry-content iframe {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}


/* My Account nav greeting */
.mwf-nav-greeting > a {
    font-weight: 600 !important;
    color: #2d6a4f !important;
    pointer-events: none;
    cursor: default;
    font-size: 0.9em;
    opacity: 0.9;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 6px !important;
    margin-bottom: 4px;
    display: block;
}

/* =======================================================================
   WooCommerce Checkout Styling (ported from previous checkout look)
   ======================================================================= */

/* Checkout notice prompts for login/coupon */
.woocommerce-checkout .woocommerce-info {
  background: #213b2e !important;
  color: #ffffff !important;
  border: 2px solid #4caf50 !important;
  border-left: 6px solid #4caf50 !important;
  padding: 20px 20px 20px 60px !important;
  margin-bottom: 20px !important;
  font-size: 16px !important;
  position: relative !important;
}

.woocommerce-checkout .woocommerce-info:before {
  content: "i" !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  position: absolute !important;
  left: 22px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.woocommerce-checkout .woocommerce-info .showcoupon,
.woocommerce-checkout .woocommerce-info .showlogin {
  display: inline-block !important;
  background: #4caf50 !important;
  color: #ffffff !important;
  padding: 12px 30px !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  margin-left: 10px !important;
  transition: all 0.3s ease !important;
  border: none !important;
  cursor: pointer !important;
}

.woocommerce-checkout .woocommerce-info .showcoupon:hover,
.woocommerce-checkout .woocommerce-info .showlogin:hover {
  background: #45a049 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

@media (max-width: 768px) {
  .woocommerce-checkout .woocommerce-info {
    padding: 15px 15px 15px 50px !important;
    font-size: 14px !important;
  }

  .woocommerce-checkout .woocommerce-info .showcoupon,
  .woocommerce-checkout .woocommerce-info .showlogin {
    display: block !important;
    margin: 15px 0 0 0 !important;
    text-align: center !important;
  }

  .woocommerce-checkout .woocommerce-info:before {
    font-size: 22px !important;
    left: 15px !important;
  }
}

/* Main checkout page appearance */
body.woocommerce-checkout {
  background: #213b2e !important;
  color: #ffffff !important;
}

body.woocommerce-checkout .woocommerce {
  max-width: 1280px;
  width: 96%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Desktop: single column layout for better mobile experience */
@media (min-width: 769px) {
  body.woocommerce-checkout .woocommerce form.checkout {
    display: flex !important; /* Use flexbox for ordering */
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 0 !important;
    align-items: normal !important;
  }

  /* Allow customer_details to maintain two-column layout */
  body.woocommerce-checkout #customer_details {
    display: block !important; /* Override flexbox for this section */
    order: 1 !important;
  }

  body.woocommerce-checkout #customer_details .col2-set {
    display: flex !important;
    gap: 20px !important;
  }

  body.woocommerce-checkout #customer_details .col-1 {
    flex: 7 !important; /* 7/12 width */
  }

  body.woocommerce-checkout #customer_details .col-2 {
    flex: 5 !important; /* 5/12 width */
  }

  /* Clear any grid positioning for other elements */
  body.woocommerce-checkout .woocommerce form.checkout > *:not(#customer_details) {
    grid-column: unset !important;
    grid-row: unset !important;
    grid-column-start: unset !important;
    grid-column-end: unset !important;
    grid-row-start: unset !important;
    grid-row-end: unset !important;
    align-self: unset !important;
    justify-self: unset !important;
  }

  /* Set flex order for elements outside customer_details */
  body.woocommerce-checkout form.woocommerce-checkout > #mwf-additional-right {
    order: 2 !important;
  }

  body.woocommerce-checkout #mwf-shipping-selector {
    order: 3 !important;
  }

  body.woocommerce-checkout #order_review {
    order: 4 !important;
  }

  body.woocommerce-checkout form.woocommerce-checkout > #mwf-additional-right > h3.mwf-additional-heading {
    margin-top: 0 !important;
  }

  body.woocommerce-checkout #mwf-shipping-selector .maps-woocommerce-delivery-notice,
  body.woocommerce-checkout #mwf-shipping-selector .maps-woocommerce-map-wrapper {
    margin-top: 20px !important;
    width: 100% !important;
  }

  body.woocommerce-checkout #mwf-shipping-selector .maps-woocommerce-map-wrapper {
    height: 300px !important;
    border: 1px solid #eee !important;
    border-radius: 5px !important;
  }

  body.woocommerce-checkout #order_review_heading {
    display: none !important;
  }

  body.woocommerce-checkout #order_review {
    /* Natural flow */
  }
}



/* Shipping selector panel inserted by checkout JS */
body.woocommerce-checkout #mwf-shipping-selector {
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 5px;
  padding: 20px 24px;
  color: #ffffff;
  width: 100% !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout #mwf-shipping-selector h4 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 14px 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #e8c547 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

body.woocommerce-checkout #mwf-shipping-selector ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout #mwf-shipping-selector ul li {
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

body.woocommerce-checkout #mwf-shipping-selector ul li:last-child {
  border-bottom: none !important;
}

body.woocommerce-checkout #mwf-shipping-selector .mwf-shipping-selector-empty {
  margin: 0 !important;
  font-size: 13px !important;
  color: rgba(255,255,255,0.82) !important;
}

body.woocommerce-checkout #mwf-shipping-selector label {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
}

/* Section headings and field cards */
body.woocommerce-checkout h3#order_review_heading,
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 16px 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 3px solid #e8c547 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields {
  background: rgba(255,255,255,0.07) !important;
  border-radius: 10px;
  padding: 24px 20px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.15);
}

body.woocommerce-checkout .woocommerce-billing-fields label,
body.woocommerce-checkout .woocommerce-shipping-fields label,
body.woocommerce-checkout .woocommerce-additional-fields label,
body.woocommerce-checkout .woocommerce-checkout label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.85) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  margin-bottom: 5px !important;
  display: block !important;
}

body.woocommerce-checkout .woocommerce-checkout input[type="text"],
body.woocommerce-checkout .woocommerce-checkout input[type="email"],
body.woocommerce-checkout .woocommerce-checkout input[type="tel"],
body.woocommerce-checkout .woocommerce-checkout input[type="number"],
body.woocommerce-checkout .woocommerce-checkout input[type="password"],
body.woocommerce-checkout .woocommerce-checkout textarea,
body.woocommerce-checkout .woocommerce-checkout select,
body.woocommerce-checkout .woocommerce-checkout .select2-selection {
  width: 100% !important;
  padding: 11px 14px !important;
  border: 1.5px solid #c8dbd0 !important;
  border-radius: 7px !important;
  font-size: 14px !important;
  color: #1a1a1a !important;
  background: #f9fbf9 !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  box-shadow: none !important;
  outline: none !important;
}

body.woocommerce-checkout .woocommerce-checkout input:focus,
body.woocommerce-checkout .woocommerce-checkout textarea:focus,
body.woocommerce-checkout .woocommerce-checkout select:focus {
  border-color: #213b2e !important;
  box-shadow: 0 0 0 3px rgba(33,59,46,0.12) !important;
  background: #ffffff !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single {
  height: 44px !important;
  border: 1.5px solid #c8dbd0 !important;
  border-radius: 7px !important;
  background: #f9fbf9 !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px !important;
  padding-left: 14px !important;
  color: #1a1a1a !important;
  font-size: 14px !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px !important;
}

@media (min-width: 769px) {
  body.woocommerce-checkout .woocommerce-checkout .form-row-first,
  body.woocommerce-checkout .woocommerce-checkout .form-row-last {
    width: 48% !important;
    float: left !important;
  }

  body.woocommerce-checkout .woocommerce-checkout .form-row-last {
    float: right !important;
  }

  body.woocommerce-checkout .woocommerce-checkout .form-row-wide {
    clear: both !important;
    width: 100% !important;
  }
}

/* Order review and payment */
body.woocommerce-checkout #order_review {
  background: #213b2e !important;
  border: 2px solid rgba(255,255,255,0.6) !important;
  border-radius: 5px !important;
  padding: 33px !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(33,59,46,0.25) !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-bottom: 16px !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
  color: #e8c547 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 0 0 10px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.15) !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody td {
  color: #ffffff !important;
  padding: 12px 0 !important;
  font-size: 14px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  vertical-align: top !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total {
  text-align: right !important;
  font-weight: 600 !important;
  color: #e8c547 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr td,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr th {
  color: #ffffff !important;
  padding: 8px 0 !important;
  font-size: 13px !important;
  border-top: none !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total td {
  color: #e8c547 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255,255,255,0.2) !important;
}

body.woocommerce-checkout #payment {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 16px !important;
}

body.woocommerce-checkout #payment ul.payment_methods {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 8px !important;
  padding: 4px !important;
  margin-bottom: 12px !important;
  list-style: none !important;
}

body.woocommerce-checkout #payment ul.payment_methods li {
  padding: 12px 14px !important;
  border-radius: 6px !important;
}

body.woocommerce-checkout #payment ul.payment_methods li label {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
}

body.woocommerce-checkout #payment .payment_box {
  background: rgba(0,0,0,0.2) !important;
  border-radius: 6px !important;
  padding: 14px !important;
  margin-top: 8px !important;
}

body.woocommerce-checkout #payment .wc-stripe-elements-field,
body.woocommerce-checkout #payment .StripeElement {
  background: #ffffff !important;
  border-radius: 7px !important;
  padding: 12px 14px !important;
  border: 1.5px solid rgba(255,255,255,0.3) !important;
}

body.woocommerce-checkout #place_order {
  width: 100% !important;
  padding: 16px 24px !important;
  background: #e8c547 !important;
  color: #213b2e !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s !important;
  box-shadow: 0 4px 15px rgba(232,197,71,0.35) !important;
  margin-top: 16px !important;
}

body.woocommerce-checkout #place_order:hover {
  background: #f0d058 !important;
  box-shadow: 0 6px 20px rgba(232,197,71,0.5) !important;
  transform: translateY(-1px) !important;
}

body.woocommerce-checkout #place_order:active {
  transform: translateY(0) !important;
}

body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin: 12px 0 !important;
}

body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label {
  color: rgba(255,255,255,0.8) !important;
  font-size: 12px !important;
  text-transform: none !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
  color: #e8c547 !important;
}

/* Checkout map + notice */
body.woocommerce-checkout .maps-woocommerce-label,
body.woocommerce-checkout .maps-woocommerce-label abbr,
body.woocommerce-checkout .maps-woocommerce-label .optional {
  color: rgba(255,255,255,0.85) !important;
}

body.woocommerce-checkout .maps-woocommerce-map-wrapper,
body.woocommerce-checkout .maps-woocommerce-delivery-notice {
  display: none;
}

body.woocommerce-checkout .maps-woocommerce-delivery-notice {
  background: #1a5c3a !important;
  border-left: 5px solid #e8c547 !important;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 16px;
  margin-top: 16px;
}

body.woocommerce-checkout .maps-woocommerce-delivery-notice p {
  color: #ffffff !important;
  font-size: 13px !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.5 !important;
}

body.woocommerce-checkout .maps-woocommerce-delivery-notice p:last-child {
  margin-bottom: 0 !important;
}

body.woocommerce-checkout .maps-woocommerce-description {
  color: rgba(255,255,255,0.75) !important;
  font-size: 12px !important;
  display: block !important;
  margin-top: 8px !important;
}

/* Google Maps Info Window styling */
.gm-style .gm-style-iw {
  color: #000000 !important;
  background: #ffffff !important;
}

.gm-style .gm-style-iw * {
  color: #000000 !important;
}

.gm-style .gm-style-iw .map-address {
  color: #000000 !important;
  font-weight: normal !important;
}

.gm-style .gm-style-iw strong {
  color: #000000 !important;
  font-weight: bold !important;
}

/* Mobile stack */
@media (max-width: 768px) {
  body.woocommerce-checkout .woocommerce {
    width: 100% !important;
    padding: 0 12px !important;
  }

  body.woocommerce-checkout .woocommerce form.checkout {
    display: block !important;
  }

  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_review {
    grid-column: unset !important;
    grid-row: unset !important;
    width: 100% !important;
    float: none !important;
  }

  body.woocommerce-checkout #order_review {
    position: static !important;
    margin-top: 24px !important;
  }

  body.woocommerce-checkout #mwf-shipping-selector {
    display: none !important;
  }

  body.woocommerce-checkout form.woocommerce-checkout > #mwf-additional-right {
    display: block !important;
    margin-top: 16px !important;
  }

  body.woocommerce-checkout .form-row-first,
  body.woocommerce-checkout .form-row-last,
  body.woocommerce-checkout .form-row-wide,
  body.woocommerce-checkout .woocommerce-checkout .form-row-first,
  body.woocommerce-checkout .woocommerce-checkout .form-row-last {
    width: 100% !important;
    float: none !important;
    clear: both !important;
  }

  body.woocommerce-checkout .woocommerce-billing-fields,
  body.woocommerce-checkout .woocommerce-shipping-fields,
  body.woocommerce-checkout .woocommerce-additional-fields {
    padding: 16px !important;
  }

  body.woocommerce-checkout .col2-set .col-1,
  body.woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
  }
}

/* ============================================================
   The mwf-header-footer plugin provides the full site header.
   Hide the organic-farm theme's native header elements entirely
   to prevent the duplicate nav causing the Safeguarding dropdown
   to open without hover.
   - #header      = top bar + menu bar (inside #page)
   - #gb_responsive = the off-canvas nav rendered separately,
                      outside #header but still a second full nav
   ============================================================ */
#header,
#gb_responsive {
    display: none !important;
}
