.code-block {
  position: relative;
}

.copy-icon {
  position: absolute;
  top: 0.6em;
  right: 0.6em;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 10;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  width: 18px;
}

.copy-icon:hover {
  opacity: 1;
}

.copy-icon svg {
  display: block;
}
