pre.shiki {
  position: relative;
  line-height: 1.25 !important;
}

pre.shiki code * {
  font-size: 0.82rem;
  hyphens: none;
  white-space: pre;
  font-style: normal !important;
  font-family: var(--font-geist-mono);
}

pre.shiki code *::selection {
  background: rgb(255 255 255 / 0.2);
}

code .diff {
  transition: background-color 0.5s;
  margin: 0 -12px;
  padding: 0 24px;
  width: calc(100% + 24px);
  display: inline-block;

  &:before {
    position: absolute;
    left: 10px;
  }
}

code .diff.remove {
  background-color: rgba(244, 63, 94, 0.16) !important;
  opacity: 0.7;
  & span {
    background-color: transparent !important;
  }
}

code .diff.remove:before {
  content: "-";
  color: #f14158;
}

code .diff.add {
  background-color: rgba(16, 185, 129, 0.16) !important;
  & span {
    background-color: transparent !important;
  }
}

code .diff.add:before {
  content: "+";
  color: #3dd68c;
}

code .highlighted {
  background-color: rgb(255 255 255 / 0.1) !important;
  transition: background-color 0.5s;
  margin: 0 -12px;
  padding: 0 12px;
  box-shadow: 2px 0 0px 0px rgb(162, 162, 162) inset;
  width: calc(100% + 24px);
  display: inline-block;

  & span {
    background-color: transparent !important;
  }
}

code .highlighted-word {
  background: rgba(255, 255, 255, 0.1) !important;
  border-width: 1px;
  border-color: #4c4c4c;
  padding: 1px 2px;
  margin: -1px -3px;
  border-radius: 4px;

  + span {
    background: transparent !important;
  }
}
