.comment-container {
  width: auto;
  margin: 2rem 0rem;
  background-color: #fafafa;
  border-radius: 0.5rem;
  padding: 1rem;
}

.post-comment__header {
  padding: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  border-bottom: 1px solid #ccc;
}

.post-comment__body {
  margin: 1rem 0;
  border: 0;
  padding: 0;
}

.post-comment__list,
.reply-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-comment__item + .post-comment__item {
  margin-top: 1rem;
}

.comment-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.comment-card--reply {
  margin-top: 0.75rem;
}

.comment-card__avatar-link {
  display: inline-flex;
  flex: 0 0 auto;
  text-decoration: none;
}

.comment-card__avatar {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: #e5e7eb;
}

.comment-card--reply .comment-card__avatar {
  width: 24px;
  height: 24px;
}

.comment-card__main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.comment-card__bubble {
  display: inline-block;
  max-width: min(100%, 720px);
  padding: 0.625rem 0.875rem;
  background: #f0f2f5;
  border-radius: 18px;
  line-height: 1.55;
  word-break: break-word;
}

.comment-card__author-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.125rem;
}

.comment-card__author {
  color: #1c1e21;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.comment-card__author:hover {
  text-decoration: underline;
}

.comment-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 600;
}

.comment-card__badge--author {
  background: #e8f0fe;
  color: #1967d2;
}

.comment-card__content {
  font-size: 0.95rem;
  color: #1c1e21;
}

.comment-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.375rem;
  margin-left: 0.75rem;
  font-size: 0.8125rem;
  color: #65676b;
}

.comment-card__time {
  color: inherit;
}

.comment-card__action {
  padding: 0;
  border: 0;
  background: transparent;
  color: #65676b;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.comment-card__action:hover {
  text-decoration: underline;
  color: #1c1e21;
}

.comment-card__action {
  padding: 0;
  border: 0;
  background: transparent;
  color: #65676b;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.comment-card__action:hover {
  text-decoration: underline;
  color: #1c1e21;
}

.comment-card__action--active {
  color: #ff6900;
}

.comment-card__action--active:hover {
  color: #e85c00;
}

.reply-list {
  margin-top: 0.5rem;
}

.reply-list__item + .reply-list__item {
  margin-top: 0.75rem;
}

.comment-card__reply-editor {
  margin-top: 0.5rem;
}

.reply-editor {
  display: flex;
  gap: 0.5rem;
}

.reply-editor__avatar img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.reply-editor__form {
  flex: 1;
  min-width: 0;
}

.reply-editor__input-wrap {
  border: 1px solid #d8dde6;
  border-radius: 12px;
  background: #fff;
  padding: 0.5rem;
}

.reply-editor__textarea {
  width: 100%;
  border: 0;
  outline: none;
  margin:0;
  padding: 0;
  resize: vertical;
  min-height: 60px;
  font-size: 0.875rem;
  line-height: 1.55;
}

.reply-editor__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
}

.reply-editor__visibility {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.reply-editor__actions {
  display: flex;
  gap: 0.5rem;
}

.reply-editor__submit {
  background: #ff6900;
  border: 0;
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.reply-editor__cancel {
  background: transparent;
  border: 0;
  color: #555;
}

.post-comment__footer {
  padding-top: 1rem;
  border-top: 1px solid #d8dde6;
}

.comment-editor {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.comment-editor__avatar-link {
  display: inline-flex;
  flex: 0 0 auto;
}

.comment-editor__avatar {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: #e5e7eb;
}

.comment-editor__form {
  flex: 1 1 auto;
  min-width: 0;
}

.comment-editor__label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.comment-editor__input-wrap {
  border: 1px solid #d8dde6;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  padding: 0.625rem;
}

.comment-editor__textarea {
  width: 100%;
  min-height: 96px;
  display: block;
  padding: 0;
  border: 0;
  outline: none;
  resize: vertical;
  background: transparent;
  color: #1c1e21;
  font: inherit;
  line-height: 1.6;
}

.comment-editor__textarea::placeholder {
  color: #9aa0a6;
}

.comment-editor__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.comment-editor__hint {
  font-size: 0.8125rem;
  color: #65676b;
}

.comment-editor__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-editor__button {
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.comment-editor__button--secondary {
  border-color: #d8dde6;
  background: #fff;
  color: #1c1e21;
}

.comment-editor__button--secondary:hover {
  background: #f8fafc;
}

.comment-editor__button--primary {
  background: #ff6900;
  color: #fff;
}

.comment-editor__button--primary:hover {
  background: #e85c00;
}

.comment-editor__button:disabled,
.post-comment__more-button:disabled,
.comment-card__action:disabled,
.comment-card__toggle-replies:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.comment-editor__guest-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.comment-editor__input {
  flex: 1 1 200px;
  min-width: 0;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.post-comment__body .btn-more {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background-color: #eee;
  padding: 0.5rem 2rem;
  border: 0;
  width: 65%;
  cursor: pointer;
}

.post-comment__body .btn-more:hover {
  background-color: #ddd;
}
