$upvote-color = green
$downvote-color = red

.dczcomments__item .is-editing
  [name="dczcomments__dummy-box"]
    display: none
  > .typo
    display: none

.dczcomments__box .textbox
  min-height: rem(180px)
  resize: vertical

.textbox[name="dczcomments__dummy-box"]
  min-height: rem(60px)
  resize: none
  font-size: rem($font-size-title)
  color: $comment-placeholder-color
  padding: rem(10px)

.dczcomments__item,
.dczcomments__reply
  border-top: 1px solid $table-border-color

  >.media
    padding: rem(20px 0)

  &:first-child
    border-top: 0

.dczcomments__reply
  >.media
    // FIXME doesn't work on IE 11
    display: flex

  &:last-child
    >.media
      padding-bottom: 0

.dczcomments__item > .media
  display: flex
  >.media__body
    max-width: calc(100% - 6.5em)
    +mobile()
      max-width: 100%

.dczcomments__supplementary
  float: left
  margin-bottom: rem(5px)

  .history
    float: right
    margin-left: rem(5px)

.dczcomments__operations
  font-size: rem($font-size)
  float: right
  vertical-align: top
  color: $comment-op-color

  a, a:visited
    color: $comment-op-link-color
    margin-left: rem(3px)
  a:hover
    color: $primary-color
    text-decoration: none

.view--solution .dczcomments__replies
  margin-left: rem(50px)

.dczcomments__item
  .vote-number
    width: rem(82px)
    text-align: center
    font-size: rem(25px)
    font-weight: 300
    margin-bottom: rem(10px)

  .vote-op
    position: relative
    border: 1px solid transparent
    border-radius: rem(14px)
    transition: border-color .2s linear, opacity .2s linear
    opacity: 0.5

    &>button
      width: rem(40px)
      float: left
      position: relative

  &:hover .vote-op
    opacity: 1
    border-color: $supplementary-border-color

  .vote-button
    appearance: none
    border: 0
    background: none
    width: 100%
    outline: 0
    font-size: rem($font-size-icon)
    line-height: rem(26px)
    color: #AAA
    transition: color .2s linear, background-color .2s linear, box-shadow .2s linear

    &.upvote
      border-radius: rem(13px 0 0 13px)
      padding-left: rem(7px)

      &:hover
        background: $upvote-color
        color: #FFF
        box-shadow: 0 2px 10px rgba($upvote-color, 0.4)

      &.active
        color: $upvote-color


    &.downvote
      border-radius: rem(0 13px 13px 0)
      padding-right: rem(7px)

      &:hover
        background: $downvote-color
        color: #FFF
        box-shadow: 0 2px 10px rgba($downvote-color, 0.4)

      &.active
        color: $downvote-color

    &.active
      background: transparent !important
      box-shadow: none !important
      cursor: default

.dczcomments__replies .collapsible-content__inner
  max-height: rem(200px)

+mobile()
  .dczcomments__item
    .media__left
      display: none
