.section-comments {
  position: relative;

  margin: 50px 0;
}

.section-comments__loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;

  background-color: rgba(255,255,255,.8);
}

.section-comments__loader:before {
  position: absolute;
  top: calc(50% - 15px);
  left: calc(50% - 15px);

  width: 30px;
  height: 30px;
  border-top: 2px solid #000;

  border-radius: 100%;

  content: '';
}

.section-comments__title {
  margin-bottom: 25px;

  font-weight: 700;
  font-size: 26px;
  line-height: 26px;
  letter-spacing: 0.01em;
  color: #353535;
}

.button-empty {
  padding: 0;
  margin: 0;
  border: 0;

  background-color: transparent;
  outline: none;
}

.section-comments__auth {
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: 0.01em;
  color: #7A7A7A;
}

/* ========================================== Comments-sorted */
.comments-sorted {
  padding: 0 20px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(183, 183, 183, .4);
}

.comments-sorted__list {

}

.comments-sorted__list-item {
  padding-bottom: 8px;
  border-bottom: 4px solid transparent;

  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0.01em;
  color: #353535;

  cursor: pointer;

  transition: .2s ease-in-out;
}

.comments-sorted__list-item:not(:last-child) {
  margin-right: 70px;
}

.comments-sorted__list-item--active {
  font-weight: 600;

  border-bottom-color: #0057FF;
}

/* ========================================== Comments list */
.comments {
  max-width: 740px;
}

.comments__toggle {
  position: relative;

  padding-left: 32px;

  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.01em;
  color: #7A7A7A;
}

.comments__toggle:before {
  position: absolute;
  top: calc(50% - .5px);
  left: 0;

  width: 24px;
  height: 1px;

  background-color: #7A7A7A;

  content: '';
}

/* ========================================== Comment form */
.comment-form {
  max-width: 740px;
  padding-top: 16px;
}

.comment-form__textarea {
  display: block;
  width: 100%;
  padding: 13px 11px;
  border: 1px solid #B7B7B7;
  min-height: 88px;
  border-radius: 2px;
  outline: none;

  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.01em;
}

.comment-form--focused .comment-form__textarea {

}

.comment-form__buttons {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
}

@media (max-width: 568px) {
  .comment-form__buttons {
    flex-direction: column;
  }
}

.comment-form--focused .comment-form__buttons {

}

@media (min-width: 569px) {
  .comment-form__buttons-slot {
    margin-right: 30px;
  }
}

@media (max-width: 568px) {
  .comment-form__buttons-slot {
    margin-top: 10px;

    order: 1;
  }
}

.comment-form__button {
  width: 230px;
  padding: 15px;

  font-weight: 500;
  text-align: center;
  color: #fff;
  border-radius: 4px;

  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;

  background-color: #0057FF;
}

.comment-form__button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.comment-form__button-cancel {
  font-weight: 500;
  font-size: 12px;
  line-height: 12px;
  text-align: center;
  letter-spacing: 0.155em;
  text-transform: uppercase;
  color: #0057FF;
}

/* ========================================== Comment */
.comment {
  margin-top: 30px;
}

.comment__title {
  margin-bottom: 15px;

  font-weight: bold;
  font-size: 22px;
  line-height: 22px;
  letter-spacing: 0.01em;
  color: #353535;

  display: block;
  text-decoration: none;
  transition: all .2s
}

.comment__title:hover {
  color: #0057FF;
}

.comment__inner {
  display: flex;
  flex-flow: row wrap;
}

.comment > .comments {
  margin-top: 16px;
  margin-left: 48px;
}

.comment__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 16px;

  background: #7A7A7A center / cover no-repeat;

  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.01em;
  color: #fff;
}

.comment__content {
  flex: 1;
}

.comment__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.comment__header-left {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
}

@media (max-width: 568px) {
  .comment__header-left {
    flex-direction: column;
  }
}

.comment__user {
  margin-right: 8px;
}

.comment__user-name {
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.01em;
  color: #353535;
}

@media (max-width: 568px) {
  .comment__user-name {
    font-size: 12px;
    line-height: 20px;
  }
}

.comment__user-name__company {
  color: #7A7A7A;
}

.comment__user-datetime {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.01em;
  color: #7A7A7A;
}

.comment__user-answer {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;

  margin-left: 8px;

  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.01em;
  color: #0057FF;
}

@media (max-width: 568px) {
  .comment__user-answer {
    margin-left: 0;
    margin-top: 10px;

    font-size: 12px;
    line-height: 20px;
  }
}

.comment__user-answer__ico {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.comment__changed {
  margin-left: 6px;
  width: 24px;
  height: 24px;
}

@media (max-width: 568px) {
  .comment__changed {
    margin-left: 0;
    width: 18px;
    height: 18px;
  }
}

.comment__body {
  margin: 16px 0;
}

.comment__text {
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.01em;
  color: #353535;
}

@media (max-width: 568px) {
  .comment__user-answer {
    font-size: 12px;
    line-height: 20px;
  }
}

.comment__footer {
  margin-top: 16px;
}

.comment__footer-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment__footer-link {
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.01em;
  color: #0057FF;
}

.comment__footer-link + .comment__footer-link {
  margin-left: 10px;
}

.comment__footer-link--danger {
  color: #EE4411;
}

/* ========================================== Comment like */
.comment-like {
  display: inline-flex;
  flex-flow: row nowrap;
  align-items: center;
}

.comment-like:disabled {
  cursor: not-allowed;
}

.comment-like--active .comment-like__ico path {
  fill: #EE4411;
  stroke: #EE4411;
}

.comment-like__value {
  line-height: 100%;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: #353535;
}

@media (max-width: 568px) {
  .comment-like__value {
    font-size: 12px;
  }
}

.comment-like__ico {
  margin-right: 10px;
  width: 24px;
  height: 24px;

  fill: none;
}

@media (max-width: 568px) {
  .comment-like__ico {
    width: 18px;
    height: 18px;
  }
}

.comment-like__ico path {
  stroke: #353535;
}
