
.commutative {
  margin: 1.2rem 0;
  display: flex;
  justify-content: center;
}

.commutative .cg-svg {
  display: block;
  max-width: 100%;
  height: auto;
  color: inherit;
  overflow: visible;
}

.commutative .cg-node {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 64px;
  box-sizing: border-box;
  padding: 8px;
  text-align: center;
  line-height: 1.3;
  font-size: 18px;
  background: transparent;
  color: inherit;
}

.commutative .cg-node-point {
  color: inherit;
  vector-effect: non-scaling-stroke;
}

.commutative .cg-edge-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  box-sizing: border-box;
  padding: 0 8px;
  text-align: center;
  line-height: 1.2;
  font-size: 16px;
  background: transparent;
  color: inherit;
}

.commutative .cg-edge-label.is-over {
  background: transparent;
}

.commutative .cg-edge-path--dashed {
  stroke-dasharray: 10 8;
}

.commutative .cg-edge-path--dotted {
  stroke-dasharray: 2 7;
}

.commutative .cg-edge-path--squiggly {
  stroke-dasharray: 14 9;
}

.commutative .cg-label-text {
  font-family: "Times New Roman", serif;
}

.commutative--error {
  display: block;
  margin: 1.2rem 0;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px dashed rgba(220, 38, 38, 0.5);
  background: rgba(220, 38, 38, 0.05);
  color: rgb(120, 25, 25);
  font: 500 13px/1.4 "Cascadia Code", "Fira Code", monospace;
}

.commutative--error pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
