@import "styles/_variables";
@import "styles/mixins";

.header {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  padding: 0 60px;

  a {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    background-color: var(--color-primary-7);
    border-radius: 8px;
  }

  @include sm-down {
    padding: 0 20px;
  }
}

.wrapper {
  max-width: 916px;
  padding-top: 80px;
  margin: 0 auto;

  @include sm-down {
    padding-top: 60px;
  }
}

.title {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-summary);
  letter-spacing: 0.01em;

  &-wrapper {
    margin-bottom: 34px;
  }
}

.label {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--color-heading);
}

.row {
  position: relative;

  & + .row {
    padding-top: 30px;
    margin-top: 30px;
  }
}

.snippet {
  position: relative;
  padding: 22px 69px 22px 25px;
  font-family: $font-family-code;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-content);
  white-space: pre-wrap;
  background: var(--background-card);
  border-radius: 8px;
  box-shadow: 0 0 1px var(--shadow-4), 0 0.5px 2px var(--shadow-5);

  code {
    display: block;
    overflow-y: auto;
    white-space: nowrap;
  }

  code div span {
    margin-right: 10px;
    user-select: none;
  }
}

.copy-btn {
  position: absolute;
  top: 22px;
  right: 25px;
  font-weight: 500;
  color: var(--color-placeholder);
  text-transform: uppercase;

  svg {
    width: 22px;
    height: 22px;
  }

  &:hover {
    svg {
      color: var(--color-content);
    }
  }
}
