/**
 * (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
 */

.editor {
  display: grid;
  grid-template-areas: "header header"
                       "editor preview";
  grid-template-columns: 50% 50%;
  grid-gap: 12px;
}

.editor_header {
  grid-area: header;

  display: flex;
  align-content: center;
  justify-content: space-between;
  align-items: baseline;
}
.cta_wrapper {
  display: flex;
}
.cta_wrapper > * + * {
  margin-left: 8px;
}

.editor_input {
  grid-area: editor;
  background: #3A3B3C;
}
.editor_preview {
  grid-area: preview;
}

.preview_fail_note {
  border: 1px solid #f6f6f6;
  width: 50%;
  color: var(--ifm-color-primary-dark);
}

.live_editor {
  font-family: "Roboto Mono", Menlo, monospace;
  font-size: 14px;
  min-height: 400px;
  background-color: #3A3B3C;
  caret-color: white;
}

.live_error {
  font-family: monospace;
  font-size: 1em;
  padding: 10px;
  color: red;
  background: none;
  white-space: break-spaces;
}

.live_preview {
  border: 1px solid white;
  padding: 10px;
}

.unknown_component {
  border: 2px solid #ff7e7e;
  border-radius: var(--ifm-global-radius);
  background-color: #ffe9e9;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.unknown_component_children {
  border: solid 2px var(--collapse-button-bg-color-dark);
  border-radius: var(--ifm-global-radius);
  padding: 4px 8px;
  position: relative;
}

.unknown_component_children:before {
  position: absolute;
  top: -1px;
  right: 0;
  padding: 0 4px;
  display: block;
  content: "children";
  background: var(--collapse-button-bg-color-dark);
  color: var(--ifm-color-primary-contrast-background);
  border-bottom-left-radius: var(--ifm-global-radius);
}
