.comment-tabmenu {
  display: flex;
  flex-flow: row wrap;
  position: relative;
  border-bottom: 2px solid #ddd;
  font-weight: bold;
  .tabitem {
    position: relative;
    bottom: -2px;
    font-size: .94em;
  }
  .tabitem > a {
    display: inline-block;
    padding: .5em 1.1em;
    border-bottom: 2px solid #ddd;
    transition: all .4s;
  }
  .tabitem:not(.active):hover > a {
    border-bottom: 2px solid #bbb;
  }
  .active > a { color: $link; }
  .count {
    margin-left: .4em;
    padding: 0 .28em;
    background-color: #ddd;
    color: #666;
    border-radius: 2px;
    font-size: .94em;
    line-height: 1;
  }
  .tabitem > a[href^='#comment-list']::before { content: "\f075"; padding-right: .2em; font-family: FontAwesome; }
  .tabitem > a[href^='#ping-list']::before { content: "\f064"; padding-right: .2em; font-family: FontAwesome; }

  @media screen and (max-width: 374px) {
    .tabitem {
      font-size: .88em;
    }
    .tabitem > a {
      padding-right: .6em;
      padding-left: .6em;
    }
  }
}

#comment-list {

  .comment {
    position: relative;
  }

  .comment-body {
    padding: 1.6em 0;
    border-top: 1px solid #f0f0f0;
    line-height: 1.6;
  }
  & > li:first-child .comment-body { border-top-style: none; }
  & > .comment-body:last-child  { border-bottom: 1px solid #f7f7f7; }

  .comment-meta {
    margin-bottom: 1.6em;
    color: #888;
    font-size: .96em;
    a { color: #888; box-shadow: none; }
    a:hover { color: $text; }
  }
  .comment-author .avatar {
    width: 42px; height: auto;
    float: left;
    border-radius: 50%;
    margin-right: 1em;
  }
  .comment-author .fn {
    color: $text;
    font-weight: bold;
    font-style: normal;
    a { color: $link; box-shadow: 0 1px 0 0 currentColor; }
    a:hover { color: $text; box-shadow: 0 1px 0 0 #000; }
  }
  .bypostauthor > article .fn {
    &::after {
      content: "\f007";
      margin: 0 .2em;
      color: #66673b;
      font-family: "fontAwesome";
      text-transform: uppercase;
    }
  }
  .says {
    position: absolute;
    width: 1px; height: 1px;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
  }
  .edit-link::before {
    content: " / ";
    padding: 0 .4em;
    color: #aaa;
  }

  .comment-content {
    margin-left: 1em;
    padding-left: 1.2em;
    border-left: 1px solid #f0f0f0;
  }

  .children {
    margin-top: -10px;
  }

  .children > li {
    padding-left: 1.6em;
  }

  .reply a {
    color: #999;
    font-size: em(14px);
    box-shadow: none;
    &:hover { color: #000; }
  }
}

#ping-list {
  padding: 20px 0;
  .comment-body {
    padding: 10px 0;
  }
  .edit-link::before {
    content: " / ";
    padding: 0 .4em;
  }
  .edit-link a {
    color: #888;
    box-shadow: none;
  }
}

// Reply style
#respond {
  padding: 1.6em 0;

  .comment-form {
    padding: 10px 20px;
    background: $bg-color;
  }

  p {
    margin-bottom: .4em;
  }

  .form-submit {
    margin-top: .6em;
  }

  .logged-in-as {
    color: #666;
    font-size: .95em;
    a:hover { color: $link }
  }

  .comment-notes {
    color: #666;
    font-size: .95em;
  }

  #reply-title {
    margin-bottom: .4em;
    font-weight: 300;
    font-size: 1.3em;
    small { font-weight: 400; font-size: .8em }
  }

  label {
    display: block;
    font-weight: bold;
  }

  textarea {
    width: 100%;
    height: 140px;
    resize: vertical;
  }
  input[type=text], input[type=email], input[type=url] {
    display: block;
    width: 60%;
    padding: 6px 8px;
  }
  input[type=submit] {
    padding: 8px;
  }


  @media screen and (max-width: $bpmax-mobile) {
    input[type=text] {
      max-width: none;
      width: 80%;
    }

  }

}

.comment-pages {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  margin: 10px auto 10px;
  border-bottom: 2px solid #ddd;
  color: $link;
  font-weight: bold;

  span, a {
    display: inline-block;
    position: relative;
    bottom: -2px;
    padding: 6px 10px;
    border-bottom: 2px solid #ddd;
    transition: border .4s
  }

  span {
    border-bottom-color: $link;
    color: #000;
  }

  * {
    display: block;
    transition: border .4s;
  }
  & > a:hover { border-bottom: 2px solid $link; }
}

.comment-body {

  a { color: $link; box-shadow: 0 1px 0 0 currentColor }
  a:hover { color: $hover; box-shadow: 0 2px 0 0 #000 }
  dt { font-weight: bold }
  dd { margin-bottom: 1em }
  hr { margin: 1em 0; }
  iframe { margin-bottom: 1em }
  p { margin-bottom: 1em }
  p > iframe { margin-bottom: 0 }

  h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
  }
  h1 {
    margin: 1.8em 0 1em;
  }
  h2 {
    margin: 1.6em 0 1em;
  }
  h3 {
    margin: 1.5em 0 1em;
  }
  h4 {
    margin: 1.4em 0 .9em;
  }
  h5 {
    margin: 1.3em 0 .8em;
  }
  h6 {
    margin: 1.2em 0 .8em;
  }

  ul {
    list-style: square;
    position: relative;
    margin-bottom: 1em;
    padding-left: 30px;
  }
  ol {
    list-style: decimal;
    position: relative;
    margin-bottom: 1em;
    padding-left: 30px;
  }

  blockquote {
    position: relative;
    margin-bottom: 1em;
    padding: 10px 10px 10px 48px;
    border-radius: 1px;
    color: #666;
    font-style: italic;
    @include box-shadow($y: 1px, $blur: 3px, $color: rgba(0, 0, 0, .1));
    &::before {
      content: "\f10d";
      display: block;
      position: absolute;
      top: 10px; left: 12px;
      color: #aaa;
      font-family: FontAwesome;
      font-weight: 300;
      font-size: 1.6em;
      line-height: 1;
      font-style: normal;
    }
  }

  pre {
    position: relative;
    margin: 1em 0;
    padding: 1em 1.2em;
    background: $accent;
    color: #E5E5EB;
    white-space: pre;
    overflow-x: auto;
    overflow-y: hidden;
    font-size: .96em;
    line-height: 1.4;
    font-family: 'Source Code Pro', Monaco, Consolas, monospace;
    @include box-shadow($y: 1px, $blur: 3px, $color: rgba(0, 0, 0, .1));
  }
  pre > code {
    display: block;
    padding: 0;
    background: transparent;
    color: inherit;
    white-space: inherit;
  }
  code {
    background-color: #f0f0f0;
    padding: 0 3px;
    border-radius: 1px;
    font-size: .9em;
    font-family: 'Source Code Pro', Monaco, Consolas, monospace;
  }
  kbd {
    background-color: #f0f0f0;
    padding: 0 3px;
    border: 1px solid $accent;
    border-radius: 1px;
    font-size: .9em;
    font-family: 'Source Code Pro', Monaco, Consolas, monospace;
  }

  table {
    width: 100%;
    margin-bottom: 1em;
    font-size: .95em;
    text-align: center;
    overflow-x: auto;
    @include box-shadow($y: 1px, $blur: 1px, $color: rgba(0, 0, 0, .08));
    td, th {
      border-bottom: 1px solid #ddd;
    }
    th {
      padding: 7px 10px;
      border-top: 1px solid #ddd;
      background: $bg-color;
      font-weight: bold;
    }
    td {
      padding: 6px;
      vertical-align: middle;
    }
  }

  address {
    margin-bottom: 1em;
    font-style: italic;
  }


}
