/* v1.6.9: no extra 18px blank stripe between footer and fixed order bar.
   Content still reserves the exact heights of the order button and mobile dock. */
/* Isolated to native Single Product on phones. Hidden until scrolled; stays above mobile bottom navigation. */
.idn-sp-mobile-order{display:none!important}
@media(max-width:767px){
 body.single-product .idn-sp-mobile-order:not([hidden]){
   display:block!important;position:fixed!important;left:0;right:0;
   bottom:calc(var(--idn-bottom-h,66px) + env(safe-area-inset-bottom,0px));
   z-index:9998;width:100%;max-width:100%;margin:0;padding:0;
   border:0;box-sizing:border-box;background:var(--idn-sp-mobile-order-bg,var(--idn-sp-buy-bg,#303f78));
 }
 body.single-product:not(.idn-has-bottom-nav) .idn-sp-mobile-order:not([hidden]){
   bottom:env(safe-area-inset-bottom,0px);
 }
 body.single-product .idn-sp-mobile-order-button{
   display:flex!important;align-items:center;justify-content:center;width:100%;
   min-height:var(--idn-sp-mobile-order-h,48px);margin:0!important;
   padding:8px max(12px,env(safe-area-inset-right,0px)) 8px max(12px,env(safe-area-inset-left,0px))!important;
   border:0!important;border-radius:var(--idn-sp-mobile-order-radius,0px)!important;
   background:var(--idn-sp-mobile-order-bg,var(--idn-sp-buy-bg,#303f78))!important;
   color:var(--idn-sp-mobile-order-fg,#fff)!important;
   font-family:inherit;font-size:var(--idn-sp-mobile-order-font,15px);font-weight:700;line-height:1.25;
   cursor:pointer;text-align:center;overflow-wrap:anywhere;box-shadow:var(--idn-sp-mobile-order-shadow,0 -2px 8px rgba(15,28,55,.12));
   touch-action:manipulation;box-sizing:border-box;
 }
 body.single-product .idn-sp-mobile-order-button:focus-visible{outline:2px solid #ff0c12;outline-offset:-3px}
 body.single-product .idn-sp-mobile-order-button:active{filter:brightness(.93)}
 body.single-product.idn-has-bottom-nav.idn-sp-mobile-order-enabled{
   padding-bottom:calc(var(--idn-bottom-h,66px) + var(--idn-sp-mobile-order-h,48px) + env(safe-area-inset-bottom,0px))!important;
 }
 body.single-product:not(.idn-has-bottom-nav).idn-sp-mobile-order-enabled{
   padding-bottom:calc(var(--idn-sp-mobile-order-h,48px) + env(safe-area-inset-bottom,0px))!important;
 }
 body.idn-locked .idn-sp-mobile-order,
 body.idn-bottom-cat-open .idn-sp-mobile-order,
 body.idn-sp-keyboard-open .idn-sp-mobile-order{display:none!important}
}
@media(min-width:768px){.idn-sp-mobile-order{display:none!important}}

/* v1.7.9: live total displayed next to the sticky order label, without
   changing the original dock height, colors or checkout action. */
@media(max-width:767px){
 body.single-product .idn-sp-mobile-order-button{gap:8px;flex-wrap:wrap;}
 body.single-product .idn-sp-mobile-order-button .idn-sp-order-label{min-width:0;}
 body.single-product .idn-sp-mobile-order-button .idn-sp-order-total{
   display:inline-flex;align-items:center;justify-content:center;
   font-size:clamp(12px,3.6vw,16px);font-weight:800;line-height:1.15;
   white-space:nowrap;max-width:100%;
 }
 body.single-product .idn-sp-mobile-order-button .idn-sp-order-total[hidden]{display:none!important;}
 body.single-product .idn-sp-mobile-order-button .idn-sp-order-total .woocommerce-Price-amount,
 body.single-product .idn-sp-mobile-order-button .idn-sp-order-total .woocommerce-Price-currencySymbol{color:inherit!important;}
}
