.mt-05 {
  margin-top: 0.5rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-1-5 {
  margin-top: 1.5rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.mb-1-5 {
  margin-bottom: 1.5rem;
}

.my-05 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.code-block {
  position: relative;
}

.copy-code-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.35rem 0.55rem;
  border: 1px solid #3a3b3c;
  border-radius: 4px;
  background-color: rgba(25, 26, 27, 0.9);
  color: #bfbfba;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.copy-code-button:hover {
  border-color: #3994bc;
  background-color: #242526;
  color: #ffffff;
}

.copy-code-button:focus {
  outline: 3px solid #3994bc;
  outline-offset: 2px;
}

.copy-code-button.is-copied {
  border-color: #3994bc;
  background-color: #3994bc;
  color: #191a1b;
}

.copy-code-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-code-buffer {
  position: fixed;
  top: -9999px;
  left: -9999px;
}

@media (max-width: 520px) {
  .copy-code-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .copy-code-button {
    width: 34px;
    justify-content: center;
    padding: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .copy-code-button {
    transition: none;
  }
}
