.memory-comments {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.memory-comments--card-foot {
  margin-top: 0.5rem;
}

.memory-notes-toggle {
  margin-top: 0.15rem;
}

.memory-comments-panel {
  width: 100%;
  margin-top: 0.55rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(62, 48, 32, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}

.memory-comments-list {
  margin: 0.5rem 0 0.75rem;
}

.memory-comments-loading,
.memory-comments-empty {
  font-size: 0.92rem;
  color: var(--sepia-soft, #6b5c4a);
  margin: 0.35rem 0;
}

.memory-comments-item {
  margin-bottom: 0.65rem;
}

.memory-comments-meta {
  font-size: 0.78rem;
  color: var(--sepia-soft, #6b5c4a);
  margin-bottom: 0.2rem;
}

.memory-comments-text {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.memory-comments-actions {
  display: flex;
  gap: 0.35rem;
}

.memory-comments-reply {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
}

.memory-comments-delete {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  color: #7a2828;
  border-color: rgba(122, 40, 40, 0.35);
}

.memory-comments-delete:hover {
  color: #fff;
  background: #7a2828;
  border-color: #7a2828;
}

.memory-comments-reply-box {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: flex-end;
}

.memory-comments-reply-box.hidden {
  display: none;
}

.memory-comments-composer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.memory-comments-input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(62, 48, 32, 0.2);
  border-radius: 4px;
  background: rgba(255, 252, 245, 0.9);
  resize: vertical;
  min-height: 2.5rem;
}

.memory-comments-submit {
  align-self: flex-start;
}

.memory-comments-error {
  font-size: 0.88rem;
  color: #8b2e2e;
  margin: 0.25rem 0 0;
}

.memory-comments-error.hidden {
  display: none;
}
