.comment-form {
  margin: 0 20px 20px 20px;
  width: 500px;
  display: flex;
  flex-direction: column;
}

.comment-form .comment-form__item {
  display: flex;
  margin-bottom: 10px;
}

.comment-form .comment-form__item--textarea .textarea-wrapper {
  flex: 1;
  position: relative;
}

.comment-form .comment-form__item--textarea .word-count {
  position: absolute;
  right: 10px;
  bottom: 5px;
  font-size: 12px;
  color: #999;
}

.comment-form .comment-form__item input,
.comment-form .comment-form__item textarea {
  flex: 1;
  padding: 0 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.comment-form .comment-form__item input:focus,
.comment-form .comment-form__item textarea:focus {
  outline: none;
}

.comment-form .comment-form__item input::placeholder,
.comment-form .comment-form__item textarea::placeholder {
  font-size: 13px;
  color: #999;
}

.comment-form .comment-form__item textarea {
  width: 100%;
  padding-bottom: 25px;
}

.comment-form .comment-form__item .comment-form__label {
  text-align: left;
  width: 100px;
  min-width: 100px;
  margin-right: 30px;
}

.comment-form .comment-form__item .star-rating {
  display: flex;
  align-items: center;
}

.comment-form .comment-form__item .star-rating .star {
  font-size: 24px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
}

.comment-form .comment-form__item .star-rating .star:hover {
  color: #006f3c;
}

.comment-form .comment-form__item .star-rating .star.star--active {
  color: #006f3c;
}

.comment-form .comment-form__item .upload-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-form .comment-form__item .upload-container .image-item {
  position: relative;
  width: 100px;
  height: 100px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  overflow: hidden;
}

.comment-form .comment-form__item .upload-container .image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-form .comment-form__item .upload-container .image-item .delete-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.comment-form .comment-form__item .upload-container .upload-trigger {
  position: relative;
  width: 100px;
  height: 100px;
  border: 1px dashed #d9d9d9;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-form .comment-form__item .upload-container .upload-trigger:hover {
  border-color: #006f3c;
}

.comment-form .comment-form__item .upload-container .upload-trigger .file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.comment-form .comment-form__item .upload-container .upload-trigger .plus-icon {
  font-size: 28px;
  color: #8c939d;
}

.comment-form .comment-form__item .comment-form__submit {
  width: 200px;
  height: 50px;
  border-radius: 5px;
  margin: 10px 0;
  background-color: #006f3c;
  color: white;
  border: none;
  cursor: pointer;
}
