/* myMondo Logistics 3.7.0 — Rife Free-size checkout fields, aligned product
   attributes, fixed sticky/mobile navigation. This file is deliberately loaded
   last. No WooCommerce/SelectWoo/customs/payment functionality is replaced. */

/* 1. All product prices, including the unselected range, are black. */
body.mm-theme.single-product .woocommerce div.product .summary :is(p.price,span.price,.price,.woocommerce-variation-price),
body.mm-theme.single-product .woocommerce div.product .summary .price :is(bdi,.woocommerce-Price-amount),
body.mm-theme.single-product .woocommerce div.product .summary .woocommerce-variation-price :is(.amount,bdi),
body.mm-theme .woocommerce ul.products li.product :is(.price,.price bdi,.woocommerce-Price-amount) {
  color:#111!important;
}

/* 2. All Woo product variation rows are aligned with the SAME height/columns. */
body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations{
  width:100%!important;table-layout:fixed!important;border-spacing:0 9px!important;
}
body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations :is(tr,th,td){box-sizing:border-box!important;}
body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations th{
  width:46%!important;padding:8px 11px!important;vertical-align:middle!important;
  border-color:#d9e1e9!important;border-radius:7px 0 0 7px!important;
}
body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations td{
  width:54%!important;padding:8px 11px!important;vertical-align:middle!important;
  border-color:#d9e1e9!important;border-radius:0 7px 7px 0!important;
}
body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations .mmwl-variation-index{
  display:none!important;
}
body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations .mmwl-variation-label-top{
  display:flex!important;align-items:center!important;min-height:44px!important;gap:0!important;
}
body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations th label{
  margin:0!important;line-height:1.3!important;font-size:12px!important;letter-spacing:0!important;
  font-weight:750!important;color:#202020!important;text-transform:uppercase;
}
body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations :is(.mmwl-select-wrap,select:not(.mmwl-native-control)){
  width:100%!important;max-width:100%!important;min-width:0!important;
}
body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations :is(button.mmwl-variation-trigger,select:not(.mmwl-native-control)){
  height:44px!important;min-height:44px!important;max-height:44px!important;
  border:1px solid #aab6c2!important;border-radius:5px!important;
  background-color:#fff!important;box-shadow:none!important;
  padding:8px 12px!important;color:#202020!important;
  font-size:13px!important;font-weight:600!important;
}
body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations :is(button.mmwl-variation-trigger,select:not(.mmwl-native-control)):focus-visible{
  border-color:#2274b5!important;box-shadow:0 0 0 2px rgba(34,116,181,.14)!important;
}
body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations .mmwl-variation-popup{
  border:1px solid #c3ccd8!important;border-radius:7px!important;
}
@media(max-width:760px){
  body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations tr th,
  body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations tr td{
    width:100%!important;padding:9px 11px!important;
  }
  body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations tr th{
    border-radius:7px 7px 0 0!important;
  }
  body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations tr td{
    border-radius:0 0 7px 7px!important;
  }
  body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations .mmwl-variation-label-top{
    min-height:20px!important;
  }
}

/* 3. Checkout uses the original Rife Free's compact spacing and dark, fine
   borders. WooCommerce form-row wrappers still control responsiveness. */
body.mm-theme.woocommerce-checkout,
body.mm-theme.woocommerce-checkout .woocommerce form.checkout{
  --mm-field-h:36px;
  --mm-field-radius:3px;
  --mm-field-edge:#aab0b7;
  --mm-field-ink:#202020;
}
body.mm-theme.woocommerce-checkout .woocommerce form.checkout :is(
  input[type="text"],input[type="email"],input[type="tel"],input[type="number"],
  input[type="password"],input[type="search"],input[type="date"],select
):not([type="hidden"]),
body.mm-theme .woocommerce-checkout .woocommerce form.checkout :is(
  input[type="text"],input[type="email"],input[type="tel"],input[type="number"],
  input[type="password"],input[type="search"],input[type="date"],select
):not([type="hidden"]){
  height:36px!important;min-height:36px!important;
  padding:6px 9px!important;border:1px solid #aab0b7!important;
  border-radius:3px!important;box-shadow:none!important;
  background-color:#fff;color:#202020;font-size:13px;line-height:1.35;
  max-width:100%;box-sizing:border-box;
}
body.mm-theme.woocommerce-checkout .woocommerce form.checkout textarea,
body.mm-theme .woocommerce-checkout .woocommerce form.checkout textarea{
  height:auto!important;min-height:68px!important;padding:8px 9px!important;
  border:1px solid #aab0b7!important;border-radius:3px!important;
  box-shadow:none!important;font-size:13px;resize:vertical;
}
body.mm-theme.woocommerce-checkout .woocommerce form.checkout .form-row,
body.mm-theme .woocommerce-checkout .woocommerce form.checkout .form-row{
  margin-bottom:8px!important;padding-top:0;padding-bottom:0;min-width:0;
}
body.mm-theme.woocommerce-checkout .woocommerce form.checkout .form-row :is(label,.woocommerce-input-wrapper),
body.mm-theme .woocommerce-checkout .woocommerce form.checkout .form-row :is(label,.woocommerce-input-wrapper){
  max-width:100%;box-sizing:border-box;
}
body.mm-theme.woocommerce-checkout .woocommerce form.checkout .form-row > label,
body.mm-theme .woocommerce-checkout .woocommerce form.checkout .form-row > label{
  display:block;margin:0 0 4px!important;font-size:12px!important;
  font-weight:700!important;line-height:1.35;color:#202020;
}
body.mm-theme.woocommerce-checkout .woocommerce form.checkout :is(.woocommerce-billing-fields,.woocommerce-shipping-fields,.woocommerce-additional-fields),
body.mm-theme.woocommerce-checkout .woocommerce form.checkout #customer_details{
  min-width:0;box-sizing:border-box;
}
body.mm-theme.woocommerce-checkout .woocommerce form.checkout :is(.col-1,.col-2),
body.mm-theme.woocommerce-checkout .woocommerce form.checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper){
  min-width:0;box-sizing:border-box;
}
body.mm-theme.woocommerce-checkout .woocommerce form.checkout #customer_details :is(h2,h3),
body.mm-theme.woocommerce-checkout .woocommerce form.checkout :is(.woocommerce-billing-fields,.woocommerce-shipping-fields) > h3{
  margin-bottom:13px;line-height:1.35;
}
/* SelectWoo creates an additional visible control for country/state:
   match it to 36px; leave the original select and JS unchanged. */
body.mm-theme.woocommerce-checkout .woocommerce form.checkout .select2-container,
body.mm-theme .woocommerce-checkout .woocommerce form.checkout .select2-container{
  max-width:100%!important;min-width:0;
}
body.mm-theme.woocommerce-checkout .woocommerce form.checkout .select2-container .select2-selection--single,
body.mm-theme .woocommerce-checkout .woocommerce form.checkout .select2-container .select2-selection--single{
  height:36px!important;min-height:36px!important;max-height:36px!important;
  padding:0!important;background:#fff!important;
  border:1px solid #aab0b7!important;border-radius:3px!important;
  box-shadow:none!important;display:flex;align-items:center;
}
body.mm-theme.woocommerce-checkout .woocommerce form.checkout .select2-container .select2-selection__rendered{
  padding:0 9px!important;margin:0!important;font-size:13px!important;
  line-height:34px!important;color:#202020!important;
}
body.mm-theme.woocommerce-checkout .woocommerce form.checkout .select2-container .select2-selection__arrow{
  height:34px!important;top:0!important;transform:none!important;
}
body.mm-theme.woocommerce-checkout .woocommerce form.checkout .select2-container--focus .select2-selection--single{
  border-color:#2274b5!important;box-shadow:0 0 0 2px rgba(34,116,181,.12)!important;
}
/* Hide the extra visible scrollbar in SelectWoo's country result popup,
   but KEEP its wheel/touch/keyboard scrolling for long country lists. */
body.mm-theme.woocommerce-checkout .select2-container--open .select2-results__options,
body.mm-theme.woocommerce-checkout .select2-container--open .select2-results > ul,
body.mm-theme.woocommerce-checkout ~ .select2-container--open .select2-results__options,
body.mm-theme.woocommerce-checkout .select2-container--open .select2-results__options{
  scrollbar-width:none!important;-ms-overflow-style:none!important;
  overscroll-behavior:contain;
}
body.mm-theme.woocommerce-checkout .select2-container--open .select2-results__options::-webkit-scrollbar{
  display:none!important;width:0!important;height:0!important;
}
body.mm-theme.woocommerce-checkout .select2-container--open .select2-dropdown{
  border:1px solid #b7bec8;border-radius:3px;box-shadow:0 7px 18px rgba(0,0,0,.09);
}
/* Make description grid equally small: no oversized 49px customs inputs. */
body.mm-theme.woocommerce-checkout .woocommerce form.checkout .mmwl-customs-goods-row input:not([type="hidden"]):not([type="button"]):not([type="submit"]),
body.mm-theme.woocommerce-checkout .woocommerce form.checkout tr.estimated-value-row input[name="estimated_value"]{
  height:36px!important;min-height:36px!important;max-height:36px!important;
  border:1px solid #aab0b7!important;border-radius:3px!important;
}
/* Preserve the payment gateway's externally hosted input frames. */
body.mm-theme.woocommerce-checkout .woocommerce #payment .payment_box :is(input[type="text"],input[type="number"],input[type="tel"],input[type="password"]):not([type="hidden"]):not(.wc-stripe-elements-field):not(.StripeElement){
  min-height:36px!important;border:1px solid #aab0b7!important;
  border-radius:3px!important;box-shadow:none!important;
}

/* 4. Terms checkbox is flush left and matches other checkboxes. */
body.mm-theme.woocommerce-checkout .woocommerce #payment .woocommerce-terms-and-conditions-wrapper,
body.mm-theme.woocommerce-checkout .woocommerce #payment .woocommerce-terms-and-conditions-wrapper .form-row{
  padding-left:0!important;margin-left:0!important;text-indent:0!important;
}
body.mm-theme.woocommerce-checkout .woocommerce #payment .woocommerce-terms-and-conditions-wrapper :is(label.woocommerce-form__label-for-checkbox,.woocommerce-form__label-for-checkbox),
body.mm-theme.woocommerce-checkout .woocommerce #payment .form-row.terms label{
  display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;
  gap:8px!important;float:none!important;width:100%!important;
  padding:0!important;margin:0!important;text-align:left!important;
  font-size:12px!important;line-height:1.5!important;
}
body.mm-theme.woocommerce-checkout .woocommerce #payment .woocommerce-terms-and-conditions-wrapper :is(input#terms,input[name="terms"],input[type="checkbox"]),
body.mm-theme.woocommerce-checkout .woocommerce #payment .form-row.terms .input-checkbox{
  appearance:auto!important;-webkit-appearance:checkbox!important;
  display:inline-block!important;position:static!important;float:none!important;
  margin:2px 0 0 0!important;padding:0!important;transform:none!important;
  min-width:14px!important;max-width:14px!important;width:14px!important;
  min-height:14px!important;max-height:14px!important;height:14px!important;
  flex:0 0 14px!important;vertical-align:top!important;
}
body.mm-theme.woocommerce-checkout .woocommerce #payment .woocommerce-terms-and-conditions-wrapper label span{
  flex:1 1 auto;min-width:0;
}

/* 5. Sticky hamburger dropdown stays exactly below its on-screen header
   instead of changing header position and jumping to the document top. */
@media(max-width:980px){
  body.mm-theme .mm-header.mm-header-sticky,
  body.mm-theme.mm-nav-expanded .mm-header.mm-header-sticky{
    position:sticky!important;top:0!important;
  }
  body.admin-bar.mm-theme .mm-header.mm-header-sticky,
  body.admin-bar.mm-theme.mm-nav-expanded .mm-header.mm-header-sticky{
    top:32px!important;
  }
  body.mm-theme .mm-header .mm-header-inner{
    position:relative!important;
    width:calc(100% - 36px);max-width:100%;
  }
  body.mm-theme .mm-header .mm-header-inner>.mm-nav,
  body.mm-theme .mm-header.mm-logo-mobile-large .mm-header-inner>.mm-nav{
    grid-column:1 / -1!important;grid-row:2!important;
    position:absolute!important;top:100%!important;
    left:-18px!important;right:-18px!important;
    width:calc(100% + 36px)!important;max-width:none!important;
    z-index:20!important;background:#fff!important;
    border-top:1px solid #e1e6ee!important;
    box-shadow:0 14px 28px rgba(8,31,66,.14)!important;
    padding:8px 18px 16px!important;margin:0!important;
    max-height:calc(100dvh - 70px)!important;
    overflow-x:hidden!important;overflow-y:auto!important;
    overscroll-behavior:contain;
  }
  body.mm-theme .mm-header .mm-nav-links>li>a,
  body.mm-theme .mm-header .mm-nav-links .sub-menu>li>a{
    display:flex!important;align-items:center!important;min-height:43px;
    padding:10px 7px!important;gap:8px;
  }
  /* Parent link is now the submenu toggle; no separate '⌄' icon. */
  body.mm-theme .mm-header .mm-submenu-toggle{display:none!important;}
  body.mm-theme .mm-header .mm-nav-links li.menu-item-has-children > a::after{
    content:'→';display:grid;place-items:center;
    width:27px;height:27px;flex:0 0 27px;
    border:1px solid rgba(255,97,35,.28);
    background:#fff3eb;color:var(--mm-orange,#ff6123);
    border-radius:50%;font:700 18px/1 sans-serif;
    margin-left:auto;transition:transform .18s ease,background .18s ease;
  }
  body.mm-theme .mm-header .mm-nav-links li.mm-submenu-open > a::after{
    transform:rotate(90deg);background:#ffe8da;
  }
  body.mm-theme .mm-header .mm-nav-links li.menu-item-has-children > a :is(.mm-menu-main,.mm-menu-label){
    min-width:0;
  }
  body.mm-theme .mm-header .mm-nav-links li.menu-item-has-children > .sub-menu,
  body.mm-theme .mm-header .mm-nav-links li.menu-item-has-children > .sub-menu .sub-menu{
    max-width:100%!important;width:100%!important;margin:0 0 8px 0!important;
    border-left:2px solid #ff6123!important;padding:0 0 0 11px!important;
    background:#fffaf7!important;
  }
  body.mm-theme .mm-header .mm-nav-links li.mm-submenu-open>.sub-menu{display:block!important;}
  body.mm-theme .mm-header .mm-nav-links li:not(.mm-submenu-open)>.sub-menu{display:none!important;}
}
@media(max-width:782px){
  body.admin-bar.mm-theme .mm-header.mm-header-sticky,
  body.admin-bar.mm-theme.mm-nav-expanded .mm-header.mm-header-sticky{
    top:46px!important;
  }
}
@media(max-width:600px){
  body.admin-bar.mm-theme .mm-header.mm-header-sticky,
  body.admin-bar.mm-theme.mm-nav-expanded .mm-header.mm-header-sticky{
    top:0!important; /* WP admin bar scrolls away at narrow sizes */
  }
}
@media(max-width:680px){
  /* Avoid mobile browser zoom while keeping the fields Rife-compact. */
  body.mm-theme.woocommerce-checkout .woocommerce form.checkout :is(input[type="text"],input[type="tel"],input[type="email"],input[type="number"],input[type="date"],select,textarea){font-size:16px!important;}
  body.mm-theme.single-product .woocommerce div.product form.variations_form table.variations th label{white-space:normal!important;}
}
@media(prefers-reduced-motion:reduce){
  body.mm-theme .mm-header .mm-nav-links li.menu-item-has-children>a::after{transition:none!important;}
}
