/*
  Trigger on visible adds extra unnecessary height to a Stack with gap
  `--stack-gap` is calculated by the parent Stack
*/
.mantine-Stack-root > .remove-stack-height {
  &:first-child {
    margin-bottom: calc(-1 * var(--stack-gap, 0));
  }
  &:last-child {
    margin-top: calc(-1 * var(--stack-gap, 0));
  }
  &:only-child {
    margin-top: 0;
    margin-bottom: 0;
  }
}
