/* A compact cart stays on the physical right in both language directions. */
@media(max-width:640px){
  html{scroll-padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
  .mobile-cart{
    position:fixed;
    left:auto;
    right:max(18px,env(safe-area-inset-right,0px));
    bottom:calc(16px + env(safe-area-inset-bottom,0px));
    width:60px;
    height:60px;
    padding:0;
    border-radius:16px;
    display:grid;
    place-items:center;
    justify-content:center;
    background:var(--red);
    box-shadow:0 6px 22px #6d101638;
    isolation:isolate;
  }
  .mobile-cart:hover,.mobile-cart:active{background:var(--red-dark)}
  .mobile-cart>span{display:grid;place-items:center;width:100%;height:100%;gap:0}
  .mobile-cart>span>span,.mobile-cart>strong{display:none}
  .mobile-cart svg{width:27px;height:27px}
  .mobile-cart b{
    position:absolute;
    top:-6px;
    right:-6px;
    display:grid;
    place-items:center;
    min-width:25px;
    height:25px;
    padding:2px 6px;
    border:2px solid var(--cream);
    border-radius:9px;
    background:var(--yellow);
    color:var(--ink);
    font-size:11px;
    font-weight:800;
    line-height:1;
    font-variant-numeric:tabular-nums;
  }
  body.dialog-open .mobile-cart{visibility:hidden;pointer-events:none}
}
