@import "../settings/variables";

.l-tool-header {
  align-items: center;
  display: flex;
  min-height: 32px;

  &__icon {
    color: $core-orange-50;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 16px;

    span {
      color: $core-orange-50;
    }
  }

  &__icon,
  a {
    + .l-tool-header__title {
      margin-left: spacing(lg);
    }
  }

  &__title {
    color: $core-gray-15;
    flex: 0 0 auto;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.15px;
    line-height: 32px;
    margin-right: spacing(xl);
  }

  &__tabs {
    align-self: flex-end;
    flex: 1 1 auto;
    min-width: 100px;
    overflow: hidden;
  }

  &__actions {
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: spacing(lg);
  }
}

.tool-header-badge {
  &__label {
    border-radius: 200px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 16px;
    margin-bottom: spacing(sm);
    max-width: 80px;
    overflow: hidden;
    padding: 0px 6px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;

    &--trial {
      background-color: $badge-color-trial;
      border: solid 1px $badge-color-trial;
      color: $badge-text-color;
    }
  }
}
