@import 'nib'

.new-description
  position: relative
  margin: 0 0 20px 0


  &.is-open
    .helper
      display: inline-block

    textarea
      min-height: 100px
      color: #4d4d4d
      cursor: auto
      overflow: hidden
      word-wrap: break-word

  .too-long
    margin-top: 8px

  textarea
    background-color: #fff
    border: 0
    box-shadow: 0 1px 2px rgba(0, 0, 0, .23)
    height: 36px
    margin: 4px 4px 6px 0
    padding: 9px 11px
    width: 100%

    &:hover,
    &:is-open
      background-color: #fff
      box-shadow: 0 1px 3px rgba(0, 0, 0, .33)
      border: 0
      cursor: pointer

    &:is-open
      cursor: auto

.description-item
  background-color: #fff
  border: 0
  box-shadow: 0 1px 2px rgba(0, 0, 0, .23)
  color: #8c8c8c
  height: 36px
  margin: 4px 4px 6px 0
  width: 92%

  &:hover
    background: darken(white, 12%)

  &.add-description
    display: flex
    margin: 5px

    a
      display: block
      margin: auto
