.fs-block-code {
  font-family: var(--wp--preset--font-family--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: var(--wp--preset--font-size--sm);
  tab-size: 4;
  color: var(--wp--preset--color--foreground);
  background: var(--wp--preset--color--muted);
  border-radius: var(--wp--preset--border-radius--base);
  margin: 0;
  padding: 1.25em 1.5em;
  line-height: 1.7;
  overflow-x: auto;
}

.fs-block-code code, .fs-block-code textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  white-space: pre;
  resize: none;
  background: none;
  border: 0;
  outline: 0;
  padding: 0;
  display: block;
}

.fs-block-code .hl-keyword {
  color: var(--wp--preset--color--secondary);
}

.fs-block-code :is(.hl-property, .hl-variable) {
  color: var(--wp--preset--color--primary);
}

.fs-block-code :is(.hl-type, .hl-generic) {
  color: var(--wp--preset--color--error);
}

.fs-block-code :is(.hl-value, .hl-literal, .hl-number) {
  color: var(--wp--preset--color--success);
}

.fs-block-code .hl-comment {
  color: color-mix(in srgb, currentColor 60%, transparent);
}

.fs-block-code .hl-attribute {
  font-style: italic;
}

.fs-block-code :is(.hl-addition, .hl-deletion) {
  min-width: 100%;
  display: inline-block;
}

.fs-block-code .hl-addition {
  background-color: color-mix(in srgb, var(--wp--preset--color--success) 15%, transparent);
}

.fs-block-code .hl-deletion {
  background-color: color-mix(in srgb, var(--wp--preset--color--error) 12%, transparent);
}
