.g-md-viewer-code-block {
  position: relative;
}
.g-md-viewer-code-block pre code.wrap {
  white-space: pre-wrap;
}
.g-md-viewer-code-block .yfm-code-floating,
.g-md-viewer-code-block .yfm-clipboard-button, .g-md-viewer-code-block.yfm-clipboard .yfm-code-floating,
.g-md-viewer-code-block.yfm-clipboard .yfm-clipboard-button, .g-md-viewer-code-block.yfm-code-floating-container .yfm-code-floating,
.g-md-viewer-code-block.yfm-code-floating-container .yfm-clipboard-button {
  display: none;
}
.g-md-viewer-code-block .g-md-viewer-code-block-floating-container {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.g-md-viewer-code-block .g-md-viewer-code-block-floating-container,
.g-md-viewer-code-block .g-md-viewer-code-block-floating-container > [data-floating-ui-portal] {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--g-spacing-1);
}
.g-md-viewer-code-block:hover .g-md-viewer-code-block-floating-container, .g-md-viewer-code-block:has(.g-md-viewer-code-button:focus) .g-md-viewer-code-block-floating-container {
  opacity: 1;
}