@import 'modules/app/viewports';

.pfeed {
  @include viewport-mobile {
    max-width: 100vw;
    padding: 0;
  }

  @include viewport-laptop {
    max-width: 100vw;
    padding: 0;
  }

  position: relative;
  max-width: 100%;
  min-height: calc(100vh - 60px);
  padding: 20px;
}

.list-settings {
  cursor: pointer;

  position: absolute;
  right: 20px;

  display: flex;
  align-items: center;

  .subject-for-list {
    margin-right: 5px;
  }
}

.do__count {
  @include viewport-mobile {
    position: relative;
    right: 0;
  }

  @include viewport-laptop {
    position: relative;
    right: 0;
  }

  position: absolute;
  right: 39px;
}

.pfeed__input {
  @include viewport-mobile {
    max-width: 100%;
    margin: 0;
  }

  @include viewport-laptop {
    max-width: 100%;
    margin: 0;
  }

  width: 100%;
  max-width: 680px;
  margin: 10px;

  &.list {
    border: 1px solid lightgray;
  }
}

.pfeed__item {
  @include viewport-mobile {
    margin-bottom: 0;
    padding: 12px 0;
  }

  @include viewport-laptop {
    margin-bottom: 0;
    padding: 12px 0;
  }

  margin-bottom: 10px;
  padding: 5px 10px;
}

.app-comment-form-field {
  display: flex;
  align-items: center;
  padding-top: 10px;
}

.text-input-wrapper {
  padding: 12px;
  background: rgb(240 242 245);
  border: 50px;
}

::ng-deep .pfeed__input .app-comment-form-field {
  .simplebar-track.simplebar-vertical {
    display: none;
  }

  .simplebar-content {
    overflow: hidden;
  }
}

.file-upload {
  display: none;
}

.app-comment-text-input {
  cursor: text;
  width: 100%;
}

.add-file-icon {
  cursor: pointer;
  position: relative;
  top: 2px;
}

.comments-add-smiles-icon {
  cursor: pointer;
  position: relative;
  top: 2px;
}

.icon-comment-save {
  cursor: pointer;

  position: relative;
  top: 2px;
  left: 7px;

  margin-left: 5px;
}

.text-input-wrapper {
  display: flex;
  align-items: flex-end;

  width: calc(100% - 30px);
  min-height: 30px;
  margin-bottom: 10px;
  margin-left: 10px;
  padding-right: 15px;
  padding-left: 15px;

  border-radius: 15px;
}

.comment-gravatar {
  position: relative;
  bottom: 8px;
}

.input-comments-buttons-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  width: 15%;
  margin-bottom: 3px;
}

.input-comments-text-wrapper {
  display: flex;
  align-items: center;
  width: 85%;
  margin: auto 0;
}

::ng-deep .pfeed__input .cmf-comment-dialog {
  .app-comment-form {
    .mce-content-body:not([dir='rtl'])[data-mce-placeholder]:not(.mce-visualblocks)::before {
      left: 10px;
    }
  }
}

::ng-deep .cdk-overlay-pane {
  @include viewport-mobile {
    width: 100% !important;
    max-width: 100% !important;
  }

  @include viewport-laptop {
    width: 100% !important;
    max-width: 100% !important;
  }
}
