.highlight-wrapper {
  display: block;
  max-width: calc(100vw - 2 * var(--blog-padding-sides));
}

.highlight-wrapper code {
  color: unset;
  font-size: unset;
}

@media only screen and (max-width: 600px) {
  .highlight-wrapper {
    overflow-x: scroll;
  }
  .highlight > .chroma {
    padding: 10px !important;
  }
  .copy-code-button {
    top: 2.5px !important;
    right: 2.5px !important;
  }
}

.highlight {
  position: relative;
  z-index: 0;
  padding: 0;
  margin: 0;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: 600;
  min-width: fit-content;
}

.highlight > .chroma {
  color: #d0d0d0;
  background-color: var(--card-background);
  position: static;
  z-index: 1;
  border-radius: 4px;
  padding: 25px;
}

.chroma .lntd:first-child {
  padding: 7px 7px 7px 10px;
  margin: 0;
}

.chroma .lntd:last-child {
  padding: 7px 10px 7px 7px;
  margin: 0;
}

.copy-code-button {
  font-family: 'Roboto Mono';
  text-transform: uppercase;
  position: absolute;
  z-index: 2;
  right: 15px;
  top: 15px;
  font-size: 13px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 1px;
  width: 37px;
  height: 37px;
  color: var(--text);
  background-color: var(--background);
  border: 2px solid var(--primary);
  border-radius: 5px;
  white-space: nowrap;
  padding: 4px 4px 5px 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: width 0.3s ease-in-out;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.copy-code-button > img {
  height: 24px;
}

.copy-code-button > p {
  margin-left: 10px;
}

.copy-code-button:hover,
.copy-code-button:focus,
.copy-code-button:active,
.copy-code-button:active:hover {
  opacity: 1;
}

.copyable-text-area {
  position: absolute;
  height: 0;
  z-index: -1;
  opacity: 0.01;
}
