/* Local landing overlay. Mobile sticky CTA is always visible on first paint and stays fixed while scrolling. Desktop sticky bar is unchanged. */

@media screen and (min-width:768px){
  #sticky-order-btn,
  .sticky-order-btn{
    display:none!important;
    pointer-events:none!important;
    opacity:0!important;
    transform:translateY(100%)!important;
  }
}

@media screen and (max-width:767px){
  /* The in-flow first CTA sits at ~1113px, below the 390x844 fold. Hide it so the always-on sticky bar is the single first-screen yellow button. */
  #show-fixed-cta{
    display:none!important;
  }
  .sticky-order-btn{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:1000;
    background:#fff;
    padding:12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow:0 -4px 20px #00000026;
    border-top:1px solid #e0e0e0;
    display:block;
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }
  .sticky-order-btn.visible{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }
  .wb-sticky-cta__btn,
  .sticky-order-btn .order-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    margin:0 auto;
    padding:12px 16px;
    font-size:16px;
    font-weight:700;
    line-height:1.2;
    text-align:center;
    text-decoration:none;
    color:#111;
    background:#ffdc32;
    border:0;
    border-radius:6px;
    box-sizing:border-box;
  }
  .sticky-order-btn .stock-levels-text,
  .sticky-order-btn .low-stock-text{
    font-size:12px;
    line-height:1.2;
    color:#333;
  }
  body:has(#sticky-order-btn){
    padding-bottom:calc(118px + env(safe-area-inset-bottom, 0px));
  }
}
