/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

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

.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;
}

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

.codeBlockLines {
  font: inherit;
  float: left;
  min-width: 100%;
  padding: var(--ifm-pre-padding);
  display: flex;
  flex-direction: column;
}

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

.codeBlockLine {
  display: table-row;
}

.codeBlockLineNumber {
  width: 2.5em;
  display: table-cell;
  text-align: right;
  padding-right: 1em;
  user-select: none;
  opacity: 0.5;
}

.codeBlockLineContent {
  display: table-cell;
  position: relative;
}

.flowErrors {
  word-break: break-word;
  white-space: normal;
  margin: 0;
  border-radius: 0;
  padding: 0.5rem 1rem;
  background-color: #d5382f;
  color: white;
}

.flowErrorUnderlineContainer {
  position: absolute;
  bottom: 0;
  height: 0;
  line-height: 0;
}

.flowErrorUnderlineLeftPadding {
  display: inline-block;
}

.flowErrorUnderline {
  display: inline-block;
  border-bottom: 2px dotted #d5382f;
  line-height: 2px;
  user-select: none;
  cursor: help;
}
