@layer snippets{
  ui-quantity{
    display:flex;
    align-items:center;
    width:-moz-fit-content;
    width:fit-content;
    padding:var(--spacing-2);
    overflow:hidden;
    border:1px solid var(--color-surface-variant);
    border-radius:var(--radius-rounded);
  }
  ui-quantity .value{
    width:30px;
    text-align:center;
  }
  ui-quantity [ui-slot=button]{
    border-radius:var(--radius-rounded);
  }
}
@layer snippets{
  ui-quantity [ui-slot=button]{
    touch-action:manipulation;
  }
  ui-quantity[data-loading]{
    opacity:0.7;
  }
  @media (pointer: coarse){
    ui-quantity [ui-slot=button]{
      min-width:40px;
      min-height:40px;
    }
    ui-quantity .value{
      width:36px;
    }
  }
}
@layer snippets{
  /* Keyboard focus ring: the pill clipped it (overflow:hidden, with only 2px of padding), hiding
     about 70% of the ring. Released only inside the cart page and the cart drawer. The buttons
     already have their own rounded corners, so nothing else depends on the clipping. */
  ui-cart-items ui-quantity,
  ui-cart-drawer-items ui-quantity{
    overflow:visible;
  }
}
