/* v1.6.9 — precise body padding for the fixed checkout CTA (no 22/30/32px footer stripe).
   Default flush mode ends flush with the mobile dock; WooCommerce action is unchanged. */
/* Indego v1.3.3 — mobile checkout action. Real WooCommerce submit stays in the form. */
.idn-mobile-co-fixed{display:none!important}
@media (max-width:767px){
  body.idn-mobile-co-ready .idn-mobile-co-fixed:not([hidden]){
    display:block!important;position:fixed!important;left:0;right:0;
    bottom:calc(var(--idn-bottom-h,66px) + var(--idn-bottom-raise,21px) + var(--idn-mco-gap,7px) + env(safe-area-inset-bottom,0px));
    z-index:9998;width:100%;max-width:100vw;box-sizing:border-box;
    padding:var(--idn-mco-y,7px) max(var(--idn-mco-x,12px),env(safe-area-inset-right,0px))
            var(--idn-mco-y,7px) max(var(--idn-mco-x,12px),env(safe-area-inset-left,0px));
    background:var(--idn-mco-bar-bg,#fff);border:1px solid rgba(21,39,76,.10);
    border-radius:11px;box-shadow:var(--idn-mco-shadow,0 -3px 18px rgba(12,25,51,.13));
  }
  body.idn-mobile-co-ready:not(.idn-has-bottom-nav) .idn-mobile-co-fixed:not([hidden]){
    bottom:calc(var(--idn-mco-gap,7px) + env(safe-area-inset-bottom,0px));
  }
  body.idn-mobile-co-ready .idn-mobile-co-submit{
    display:flex!important;align-items:center;justify-content:center;width:100%;
    min-width:0;min-height:var(--idn-mco-h,48px);max-height:none;
    box-sizing:border-box;border:0;border-radius:var(--idn-mco-radius,9px);
    background:var(--idn-mco-bg,#eb4163)!important;color:var(--idn-mco-fg,#fff)!important;
    padding:9px 12px;font-family:inherit;font-size:15px;font-weight:750;line-height:1.25;
    white-space:normal;overflow-wrap:anywhere;text-align:center;cursor:pointer;
    -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  }
  body.idn-mobile-co-ready .idn-mobile-co-submit:active{filter:brightness(.93)}
  body.idn-mobile-co-ready .idn-mobile-co-submit:focus-visible{outline:3px solid #293e88;outline-offset:2px}
  body.idn-mobile-co-ready .idn-mobile-co-submit:disabled{opacity:.64;cursor:progress}
  body.idn-has-bottom-nav.idn-mobile-co-ready{
    padding-bottom:calc(var(--idn-bottom-h,66px) + var(--idn-bottom-raise,21px) + var(--idn-mco-gap,7px) + var(--idn-mco-h,48px) + var(--idn-mco-y,7px) + var(--idn-mco-y,7px) + 2px + env(safe-area-inset-bottom,0px))!important;
  }
  body.idn-mobile-co-ready:not(.idn-has-bottom-nav){
    padding-bottom:calc(var(--idn-mco-h,48px) + var(--idn-mco-y,7px) + var(--idn-mco-y,7px) + var(--idn-mco-gap,7px) + env(safe-area-inset-bottom,0px))!important;
  }
  body.idn-mobile-co-keyboard .idn-mobile-co-fixed{display:none!important}
}
@media(min-width:768px){.idn-mobile-co-fixed{display:none!important}}


/* v1.3.3: Edge-to-edge fixed order CTA sits flush against the mobile menu.
   Its original WooCommerce button, validation and cart logic are unaffected. */
@media(max-width:767px){
  body.idn-mobile-co-ready .idn-mobile-co-fixed.idn-mobile-co-flush:not([hidden]){
    bottom:calc(var(--idn-bottom-h,66px) + env(safe-area-inset-bottom,0px))!important;
    left:0!important;right:0!important;width:100%!important;max-width:100%!important;
    padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
    background:var(--idn-mco-bg,#eb4163)!important;box-shadow:none!important;
  }
  body.idn-mobile-co-ready:not(.idn-has-bottom-nav) .idn-mobile-co-fixed.idn-mobile-co-flush:not([hidden]){
    bottom:env(safe-area-inset-bottom,0px)!important;
  }
  body.idn-mobile-co-ready .idn-mobile-co-fixed.idn-mobile-co-flush .idn-mobile-co-submit{
    margin:0!important;min-height:var(--idn-mco-h,48px);border-radius:0!important;
    box-shadow:none!important;padding:8px max(12px,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px))!important;
  }
  body.idn-co-flush-enabled.idn-has-bottom-nav.idn-mobile-co-ready{
    padding-bottom:calc(var(--idn-bottom-h,66px) + var(--idn-mco-h,48px) + env(safe-area-inset-bottom,0px))!important;
  }
  body.idn-co-flush-enabled.idn-mobile-co-ready:not(.idn-has-bottom-nav){
    padding-bottom:calc(var(--idn-mco-h,48px) + env(safe-area-inset-bottom,0px))!important;
  }
}
