.codeSnippet {
  font-size: 10pt;
}

.codeBlockContainer {
  margin-bottom: var(--ifm-leading);
  border-radius: var(--ifm-global-radius);
  box-shadow: var(--ifm-global-shadow-lw);
}

.codeBlockContent {
  position: relative;
  /*rtl:ignore*/
  direction: ltr;
}

.codeBlockTitle {
  border-bottom: 1px solid var(--ifm-color-emphasis-300);
  font-size: var(--ifm-code-font-size);
  font-weight: 500;
  padding: 0.75rem var(--ifm-pre-padding);
}

.codeBlock {
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.copyButton {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--ifm-global-radius);
  color: var(--ifm-color-white);
  opacity: 0;
  user-select: none;
  padding: 0.4rem 0.5rem;
  position: absolute;
  right: calc(var(--ifm-pre-padding) / 2);
  top: calc(var(--ifm-pre-padding) / 2);
  transition: opacity 200ms ease-in-out;
}

.furtherButton {
  position: absolute;
  right: calc(var(--ifm-pre-padding) / 2);
  bottom: calc(var(--ifm-pre-padding) / 2);
}

.codeBlockTitle:hover + .codeBlockContent .copyButton,
.codeBlockContent:hover > .copyButton,
.copyButton:focus {
  opacity: 1;
}

@media print {
  .codeBlockLines {
    white-space: pre-wrap;
  }
}
