/* v3.2.0 – mobile/tablet fixes (loaded last) */

/* 1. Menu drawer + category sheet: the v2.9 dashboard-sheet backdrop rule (fixed, z-index 99998) was covering the panels,
      so every tap hit the backdrop and closed the panel. Scope it and lift the panels above their own backdrop. */
.mop-sheet>.mop-sheet-bg{position:absolute;inset:0;z-index:0;animation:none}
.mop-sheet .mop-sheet-box,.mop-sheet .mop-drawer-box{z-index:2}
body>.mop-sheet-bg{position:fixed;inset:0;z-index:99998}

/* 2. Special-offer card (v3.2.2) – the card's height now comes from a padding-top ratio box (16:9) that never depends on the image having loaded,
      on aspect-ratio support, or on Elementor wrappers. The card is its own stacking context (isolation) so its z-index layers can never
      paint over the subscribe / trust strip below. */
.mop-offer{aspect-ratio:auto!important;height:auto!important;min-height:0;display:block;position:relative;isolation:isolate;z-index:0}
.mop-offer::before{display:none!important;content:none!important}
.mop-offer .im{position:relative!important;inset:auto!important;display:block;width:100%;height:0!important;padding-top:56.25%!important;line-height:0;overflow:hidden;z-index:1}
.mop-offer .im img{position:absolute!important;inset:0;display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;aspect-ratio:auto}
.mop-offer .side{z-index:2}
/* offers PAGE = grid, cards side by side and going downward (never a slider) */
.mop-offers{display:grid!important;grid-template-columns:repeat(var(--oc,2),minmax(0,1fr))!important;gap:18px;overflow:visible!important;align-items:start}
.mop-offers .mop-offer{flex:none!important;width:auto;max-width:none}
@media (max-width:600px){.mop-offers{grid-template-columns:repeat(var(--om,2),minmax(0,1fr))!important;gap:14px}}
/* HOME offers = manual slider */
.mop-slider.is-offers{margin-bottom:6px;position:relative;z-index:0;height:auto!important}
.mop-slider.is-offers .mop-sl-track{align-items:flex-start;height:auto!important;min-height:calc(var(--offer-h,0px) + 18px)}
.mop-slider.is-offers .mop-sl-item{height:auto;flex-shrink:0}
/* Elementor wrappers around the home sections must never clip or shrink the content inside */
.e-con.mop-hm-sec,.e-con.mop-hm-sec>.e-con-inner{height:auto!important;min-height:0!important;overflow:visible!important}
.mop-hm-sec .elementor-widget-shortcode,.mop-hm-sec .elementor-widget-shortcode>.elementor-widget-container,.mop-hm-sec .elementor-shortcode{flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
/* the strip that follows always starts below the section above it */
.mop-trust{clear:both;position:relative;z-index:1}
.mop-home{display:flow-root}

/* 3. Subscribe box in footer strip on phones: input must always be visible */
@media (max-width:767px){
  .mop-trust .tr-sub .mop-subform,.mop-subform{flex-direction:column!important;flex-wrap:nowrap!important;border-radius:22px;padding:8px;gap:8px}
  .mop-subform input[type=email]{display:block!important;width:100%!important;flex:none!important;min-width:0;background:#f1f8f4!important;border:1px solid #d6e8dd!important;border-radius:99px!important;padding:14px 18px!important;text-align:left!important;color:#0d2a1f!important;font-size:15px}
  .mop-subform input[type=email]::placeholder{color:#6d8579;opacity:1}
  .mop-trust .tr-sub .mop-subform .mop-btn,.mop-subform .mop-btn{width:100%!important;flex:none!important;justify-content:center;padding:14px 18px}
}

/* 4. Account / profile pages – one fixed sidebar, menu items one per line, content never clipped */
body.woocommerce-account.logged-in .woocommerce{display:grid!important;grid-template-columns:300px minmax(0,1fr)!important;gap:22px;align-items:start}
body.woocommerce-account.logged-in .woocommerce>*{min-width:0}
body.woocommerce-account .woocommerce-MyAccount-navigation.mop-acnav{width:auto;min-width:0;position:sticky;top:104px}
body.woocommerce-account .mop-acnav ul{display:block!important;overflow:visible!important;margin:0;padding:0}
body.woocommerce-account .mop-acnav li{display:block!important;flex:none!important;margin:2px 0!important;width:100%}
body.woocommerce-account .mop-acnav li a{display:flex!important;width:100%;white-space:normal!important;background:transparent;padding:12px 14px}
body.woocommerce-account .mop-acnav li.is-active a{background:linear-gradient(100deg,#1fa463,#0e6b43)}
body.woocommerce-account .mop-acdd{display:block}
body.woocommerce-account .mop-acdd[hidden]{display:none}
body.woocommerce-account .woocommerce-MyAccount-content,body.woocommerce-account .mop-dash{min-width:0;max-width:100%}
body.woocommerce-account .mop-dash-stats{margin:16px 0 0!important;z-index:3;grid-template-columns:repeat(4,minmax(0,1fr))}
body.woocommerce-account .mop-dash-hero{z-index:1}
body.woocommerce-account .mop-dash-quick{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}
body.woocommerce-account .mop-dash-quick a,body.woocommerce-account .mop-dash-orders .row{min-width:0}
body.woocommerce-account{overflow-x:hidden}
@media (max-width:900px){
  body.woocommerce-account.logged-in .woocommerce{grid-template-columns:minmax(0,1fr)!important}
  body.woocommerce-account .woocommerce-MyAccount-navigation.mop-acnav{position:static}
}
@media (max-width:767px){
  body.woocommerce-account .mop-dash-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin-inline:0!important}
  body.woocommerce-account .mop-dash-quick{grid-template-columns:1fr 1fr}
  body.woocommerce-account .mop-dash-hero{padding:22px 18px}
  body.woocommerce-account .mop-dash-hero h2{font-size:24px}
}
