
.trix-dialog--language {
  background-color: var( --color-bg--surface-solid);
  font-size: var(--font-size-xx-small);
  height: 3rem;
  min-width: 100px;
  padding: 0.5em;
  position: fixed;
  text-align: end;
  z-index: 1000;
}

.language-picker__select {
  -moz-appearance: none;
  -webkit-appearance: none;
  border-radius: 0.6rem;
  box-sizing: border-box;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
  max-width: 100%;
  resize: none;
  background: transparent url("/assets/icons/special-case-colors/select-arrows-gray-c5129f84.svg") right 0.8em center / 0.55em no-repeat;
  border: 0;
  padding: 0.2em 2em 0.2em 0.2em;
  text-align: end;

  &:focus,
  &:focus-within {
    box-shadow: 0 0 0 2px var(--color-focus-ring);
    outline: none;
  }

  /* Don't show outlines for mouse interactions */
  &:focus:not(:focus-visible) {
    outline: none;
  }

  &:disabled { opacity: 0.5; pointer-events: none; }
  &:required { box-shadow: none; }
  &::-ms-clear { display: none; }

  option {
    color: var(--color-txt);
    background: var(--color-bg--main);
  }
}

trix-editor pre {
  position: relative;
}

trix-editor pre[language]:not(:focus-within)::before {
  background: var(--color-bg--flash-notice);
  border-radius: 0.3em;
  color: var(--color-txt--reversed);
  content: attr(language);
  font-size: var(--font-size-xx-small);
  padding: 0.2em 0.8em;
  position: absolute;
  top: 0.5em;
  right: 0.5em;
}
