/* PaySlashes V13 - mobile carousel + visual refinement + compact footer.
   Last stylesheet deliberately overrides V9-V12 and historical runtime mobile rules.
   Does not change product/data/cart endpoints. */
@media(max-width:767.98px){
  :root {--ps13-ink:#11283b;--ps13-muted:#4c6174;--ps13-green:#007d54;--ps13-green-dark:#00643f;--ps13-line:#dce6ed;--ps13-surface:#fff;}
  html body.mobile-ux-shell{background:#f8fafc!important;color:var(--ps13-ink)!important;padding-bottom:0!important;}
  html body.mobile-ux-shell .ps-app-shell{background:#f8fafc!important;padding-bottom:calc(94px + env(safe-area-inset-bottom))!important;min-height:100svh!important;}
  html body.mobile-ux-shell main#content{flex:0 0 auto!important;padding-bottom:0!important;margin-bottom:0!important;background:#f8fafc!important;}
  html body.page-home .ps-exact-mobile-home{background:#f8fafc!important;}
  html body.page-home .ps-exact-mobile-home .ps-exact-wrap{background:#f8fafc!important;}
  html body.page-home .ps-exact-mobile-home .ps-exact-section{margin-bottom:18px!important;}
  html body.page-home .ps-exact-mobile-home .ps-exact-heading{margin-bottom:11px!important;gap:8px!important;}
  html body.page-home .ps-exact-mobile-home .ps-exact-heading h2{font-weight:900!important;color:var(--ps13-ink)!important;letter-spacing:-.03em!important;font-size:clamp(16px,4.25vw,20px)!important;line-height:1.24!important;min-width:0!important;}
  html body.page-home .ps-exact-mobile-home .ps-exact-heading h2 svg{color:var(--ps13-green)!important;}
  html body.page-home .ps-exact-mobile-home .ps-exact-heading>a{font-weight:800!important;color:#00693e!important;white-space:nowrap!important;font-size:12px!important;}
  html body.page-home .ps-exact-mobile-home .ps-exact-actions>a,
  html body.page-home .ps-exact-mobile-home .ps-exact-categories>a{
    background:#fff!important;border:1px solid var(--ps13-line)!important;box-shadow:0 5px 15px rgba(17,40,59,.055)!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-exact-actions strong,
  html body.page-home .ps-exact-mobile-home .ps-exact-categories strong{color:var(--ps13-ink)!important;font-weight:800!important;}
  html body.page-home .ps-exact-mobile-home .ps-exact-actions small{color:var(--ps13-muted)!important;}

  /* Home catalogue rails: these now carry data-product-slider in the template.
     The original product-slider.js supplies touch/keyboard navigation,
     autoplay (unless reduced motion), arrows and progress. */
  html body.page-home.mobile-ux-shell .ps-exact-mobile-home .ps-product-slider-shell{
    display:block!important;position:relative!important;min-width:0!important;width:100%!important;max-width:100%!important;
    overflow:visible!important;margin:0!important;padding:0!important;height:auto!important;min-height:0!important;
  }
  html body.page-home.mobile-ux-shell .ps-exact-mobile-home .ps-exact-products[data-product-slider]{
    display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:stretch!important;
    grid-template-columns:none!important;grid-auto-flow:unset!important;
    gap:12px!important;width:100%!important;max-width:100%!important;
    overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-inline:contain!important;
    scroll-snap-type:x mandatory!important;scroll-padding-inline:2px!important;
    -webkit-overflow-scrolling:touch!important;touch-action:pan-x pan-y!important;
    padding:3px 2px 13px!important;box-sizing:border-box!important;scrollbar-width:none!important;
  }
  html body.page-home.mobile-ux-shell .ps-exact-mobile-home .ps-exact-products[data-product-slider]::-webkit-scrollbar{display:none!important;}
  html body.page-home.mobile-ux-shell .ps-exact-mobile-home .ps-exact-products[data-product-slider] > .ps-exact-product{
    display:flex!important;flex:0 0 clamp(208px,57vw,246px)!important;
    width:clamp(208px,57vw,246px)!important;min-width:clamp(208px,57vw,246px)!important;max-width:clamp(208px,57vw,246px)!important;
    box-sizing:border-box!important;height:auto!important;min-height:0!important;max-height:none!important;
    scroll-snap-align:start!important;scroll-snap-stop:normal!important;margin:0!important;
    padding:12px!important;background:#fff!important;border:1px solid var(--ps13-line)!important;border-radius:17px!important;
    box-shadow:0 8px 22px rgba(17,40,59,.095)!important;overflow:hidden!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-exact-products[data-product-slider] .ps-exact-product__image{
    flex:0 0 auto!important;width:100%!important;height:160px!important;min-height:160px!important;
    max-height:160px!important;background:#f3f7f8!important;border-radius:12px!important;
    border:1px solid #e8eef1!important;overflow:hidden!important;margin:0 0 10px!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-exact-products[data-product-slider] .ps-exact-product__image img{
    width:100%!important;height:100%!important;object-fit:contain!important;padding:5px!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-exact-products[data-product-slider] h3{
    color:var(--ps13-ink)!important;font-weight:850!important;font-size:14px!important;line-height:1.32!important;
    min-height:38px!important;height:auto!important;margin:0 0 5px!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-exact-products[data-product-slider] h3 a{color:var(--ps13-ink)!important;}
  html body.page-home .ps-exact-mobile-home .ps-exact-products[data-product-slider] p{
    color:var(--ps13-muted)!important;font-size:12px!important;line-height:1.4!important;min-height:33px!important;margin:0 0 8px!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-exact-products[data-product-slider] .ps-exact-product__price{
    color:#006c47!important;font-size:17px!important;line-height:1.35!important;font-weight:900!important;margin:0 0 7px!important;
    overflow-wrap:anywhere!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-exact-products[data-product-slider] .ps-exact-product__price del{
    color:#738091!important;font-size:12px!important;font-weight:500!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-exact-products[data-product-slider] .ps-exact-product__actions{
    margin-top:auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding-top:8px!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-exact-products[data-product-slider] .ps-exact-product__actions a,
  html body.page-home .ps-exact-mobile-home .ps-exact-products[data-product-slider] .ps-exact-product__actions span{
    min-width:0!important;min-height:40px!important;border-radius:10px!important;font-size:12px!important;
    font-weight:800!important;line-height:1.18!important;overflow-wrap:anywhere!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-exact-products[data-product-slider] .ps-exact-product__view{
    color:#075d42!important;border:1px solid #b8d8cb!important;background:#fff!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-exact-products[data-product-slider] .ps-exact-product__cart,
  html body.page-home .ps-exact-mobile-home .ps-exact-products[data-product-slider] .ps-exact-product__buy{
    color:#fff!important;background:#007b52!important;border:1px solid #007b52!important;
    box-shadow:none!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-exact-products[data-product-slider] .is-disabled{
    color:#526174!important;background:#eef2f5!important;border-color:#d8e1e7!important;opacity:1!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-product-slider-controls{
    display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:9px!important;
    margin:0 0 8px!important;min-height:36px!important;padding:0 2px!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-product-slider-controls[hidden]{display:none!important;}
  html body.page-home .ps-exact-mobile-home .ps-product-slider-btn{
    display:grid!important;place-items:center!important;color:var(--ps13-ink)!important;background:#fff!important;
    border:1px solid #d4e2e8!important;width:34px!important;height:34px!important;border-radius:11px!important;
    font-size:23px!important;line-height:1!important;box-shadow:0 3px 8px rgba(17,40,59,.05)!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-product-slider-progress{width:55px!important;background:#dce9e3!important;}
  html body.page-home .ps-exact-mobile-home .ps-product-slider-progress>span{background:#008451!important;}

  /* Stronger but restrained visual hierarchy throughout the mobile surfaces. */
  html body.mobile-ux-shell .psm-mobile-shell{background:#fff!important;border-bottom:1px solid #e4ecf1!important;}
  html body.mobile-ux-shell .psm-mobile-shell .psm-search{border:1px solid #d7e2e9!important;box-shadow:0 3px 12px rgba(17,40,59,.045)!important;}
  html body.mobile-ux-shell .psm-mobile-shell .psm-search input{color:#172c41!important;}
  html body.page-home .ps-exact-mobile-home .ps-exact-trust,
  html body.page-home .ps-exact-mobile-home .ps-exact-help,
  html body.page-home .ps-exact-mobile-home .ps-exact-newsletter{
    border:1px solid var(--ps13-line)!important;background:#fff!important;
    color:var(--ps13-ink)!important;box-shadow:0 5px 17px rgba(17,40,59,.05)!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-exact-trust strong,
  html body.page-home .ps-exact-mobile-home .ps-exact-help h2,
  html body.page-home .ps-exact-mobile-home .ps-exact-newsletter h2{color:var(--ps13-ink)!important;}
  html body.page-home .ps-exact-mobile-home .ps-exact-trust small,
  html body.page-home .ps-exact-mobile-home .ps-exact-help p,
  html body.page-home .ps-exact-mobile-home .ps-exact-newsletter p{color:var(--ps13-muted)!important;}
  html body.page-home .ps-exact-mobile-home .ps-exact-newsletter input{color:var(--ps13-ink)!important;background:#fff!important;border:1px solid #cddce6!important;}
  html body.page-home .ps-exact-mobile-home .ps-exact-newsletter button{background:#007b52!important;color:#fff!important;}

  /* Footer: remove accumulated padding from older mobile navigation fixes.
     Keep its real links for non-mobile and make the phone brand bar deliberately compact. */
  html body.mobile-ux-shell footer.premium-site-footer{
    display:block!important;position:relative!important;min-height:0!important;height:auto!important;
    margin:8px 0 0!important;padding:0!important;border-top:0!important;
    background:#112d30!important;color:#fff!important;box-shadow:none!important;
  }
  html body.mobile-ux-shell footer.premium-site-footer .premium-footer-main{
    display:block!important;height:auto!important;min-height:0!important;padding:13px 16px!important;
    margin:0!important;background:transparent!important;
  }
  html body.mobile-ux-shell footer.premium-site-footer .premium-footer-shell{
    display:block!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;
    background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  }
  html body.mobile-ux-shell footer.premium-site-footer .premium-footer-shell .row{margin:0!important;display:block!important;min-height:0!important;}
  html body.mobile-ux-shell footer.premium-site-footer .premium-footer-shell .row > div{margin:0!important;min-height:0!important;}
  html body.mobile-ux-shell footer.premium-site-footer .premium-footer-brand{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    min-height:0!important;margin:0!important;padding:0!important;gap:8px!important;
  }
  html body.mobile-ux-shell footer.premium-site-footer .premium-footer-logo-badge{
    display:inline-flex!important;align-items:center!important;background:rgba(255,255,255,.08)!important;
    border:1px solid rgba(255,255,255,.16)!important;border-radius:14px!important;
    padding:7px 11px!important;min-height:0!important;color:#fff!important;
  }
  html body.mobile-ux-shell footer.premium-site-footer .ps-brand-copy strong{color:#fff!important;font-size:16px!important;}
  html body.mobile-ux-shell footer.premium-site-footer .ps-brand-copy small{color:#c5e6d8!important;}
  html body.mobile-ux-shell footer.premium-site-footer .premium-footer-bottom{display:none!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;}
  html body.mobile-ux-shell footer.premium-site-footer .ps13-footer-links{display:flex!important;align-items:center;gap:12px!important;}
  html body.mobile-ux-shell footer.premium-site-footer .ps13-footer-links a{
    color:#e5f9f1!important;font-size:11px!important;font-weight:800!important;text-decoration:none!important;
    white-space:nowrap!important;
  }
  html body.mobile-ux-shell footer.premium-site-footer .ps13-footer-links a:focus-visible{outline:2px solid white!important;outline-offset:3px!important;}
}
@media(max-width:374.98px){
  html body.page-home.mobile-ux-shell .ps-exact-mobile-home .ps-exact-products[data-product-slider] > .ps-exact-product{
    flex-basis:min(79vw,244px)!important;width:min(79vw,244px)!important;min-width:min(79vw,244px)!important;max-width:min(79vw,244px)!important;
  }
  html body.page-home .ps-exact-mobile-home .ps-exact-products[data-product-slider] .ps-exact-product__image{
    height:160px!important;min-height:160px!important;max-height:160px!important;
  }
  html body.mobile-ux-shell footer.premium-site-footer .ps13-footer-links{gap:8px!important;}
  html body.mobile-ux-shell footer.premium-site-footer .ps13-footer-links a{font-size:10px!important;}
}
@media(min-width:768px){.ps13-footer-links{display:none!important;}}
@media(prefers-reduced-motion:reduce){
  html body.page-home .ps-exact-mobile-home .ps-exact-products[data-product-slider]{scroll-behavior:auto!important;}
}
