nv-buttongroup {
  display: flex;
}
nv-buttongroup[emphasis=high] {
  gap: 1px;
}
nv-buttongroup[emphasis=low] .group-item, nv-buttongroup[emphasis=low] .group-item:hover {
  border: 1px solid var(--components-button-low-text);
}
nv-buttongroup[emphasis=lower] .group-item, nv-buttongroup[emphasis=lower] .group-item:hover {
  border: 1px solid var(--components-button-lower-text);
}
nv-buttongroup:not([orientation=vertical]) .group-item:not(.last):not(.first) {
  border-radius: 0;
}
nv-buttongroup:not([orientation=vertical]) .group-item.first:not(.last) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
nv-buttongroup:not([orientation=vertical]) .group-item.last:not(.first) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
nv-buttongroup:not([orientation=vertical])[emphasis=medium] .group-item:not(.last) {
  border-right: none;
}
nv-buttongroup:not([orientation=vertical])[emphasis=low] .group-item:not(.last) {
  border-right: none;
}
nv-buttongroup:not([orientation=vertical])[emphasis=low] .group-item:not(.first) {
  border-left: none;
}
nv-buttongroup:not([orientation=vertical])[emphasis=lower] .group-item:not(.last) {
  border-right: none;
}
nv-buttongroup:not([orientation=vertical])[emphasis=lower] .group-item:not(.first) {
  border-left: none;
}
nv-buttongroup[orientation=vertical] {
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
}
nv-buttongroup[orientation=vertical] .group-item {
  width: unset;
  display: flex;
}
nv-buttongroup[orientation=vertical] .group-item:not(.last):not(.first) {
  border-radius: 0;
}
nv-buttongroup[orientation=vertical] .group-item.first:not(.last) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
nv-buttongroup[orientation=vertical] .group-item.last:not(.first) {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
nv-buttongroup[orientation=vertical][emphasis=medium] .group-item:not(.last) {
  border-bottom: none;
}
nv-buttongroup[orientation=vertical][emphasis=low] .group-item:not(.last) {
  border-bottom: none;
}
nv-buttongroup[orientation=vertical][emphasis=low] .group-item:not(.first) {
  border-top: none;
}
nv-buttongroup[orientation=vertical][emphasis=lower] .group-item:not(.last) {
  border-bottom: none;
}
nv-buttongroup[orientation=vertical][emphasis=lower] .group-item:not(.first) {
  border-top: none;
}