@media(max-width:600px){
  #chips{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    overflow:visible;
    padding-bottom:0;
  }

  #chips>button:nth-child(n){
    grid-column:auto;
    width:100%;
    min-width:0;
    min-height:44px;
    height:auto;
    padding:6px 4px;
    white-space:normal;
    text-align:center;
    line-height:1.25;
    font-size:13px;
  }
}

@media(max-width:360px){
  #chips>button:nth-child(n){
    font-size:12px;
    padding-left:3px;
    padding-right:3px;
  }
}
