.product-comments {
  .comment-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 10px 10px 50px 10px;

    .comment-row {
      display: flex;
      flex-direction: column;
      gap: 25px;
      .replies {
        display: flex;
        flex-direction: column;
        gap: 25px;
        align-items: end;
        .comment {
          .comment-remove-button,
          .comment-reply-button {
            right: auto;
            left: -30px;
          }
          &.selected-comment {
            transform: translate(-5px, -5px);
            box-shadow: 5px 5px 5px rgba(250, 250, 250, 0.5);
          }
          &:after {
            transform: rotateY(180deg);
            left: auto;
            right: -6px;
            bottom: -5px;
          }
        }
      }
      .comment {
        display: flex;
        flex-direction: column;
        padding: 10px;
        border-radius: 10px;
        background: #fff;
        color: #000;
        width: fit-content;
        max-width: calc(50% - 20px);
        position: relative;
        transition: 0.3s ease;
        .comment-remove-button,
        .comment-reply-button {
          width: 20px;
          height: 20px;
          position: absolute;
          right: -30px;
        }
        .comment-remove-button {
          top: 0;
        }
        .comment-reply-button {
          bottom: 0;
        }
        @media (max-width: 767px) {
          max-width: calc(100% - 40px);
        }
        &:hover {
          cursor: pointer;
        }
        &.selected-comment {
          transform: translate(5px, -5px);
          box-shadow: -5px 5px 5px rgba(250, 250, 250, 0.5);
        }
        strong {
          font-size: 14px;
          font-weight: 400;
        }
        &:after {
          content: "";
          position: absolute;
          width: 15px;
          height: 15px;
          background-image: url("/wp-content/themes/Simplelayer-Theme/assets/media/icons/message.svg");
          background-position: center;
          background-repeat: no-repeat;
          background-size: contain;
          left: -6px;
          bottom: -5px;
        }
        .date {
          position: absolute;
          font-size: 12px;
          bottom: -20px;
          color: rgba(250, 250, 250, 0.7);
        }
      }
      &.start {
        .comment {
          &:after {
            transform: rotateY(0deg);
            right: auto;
            left: -6px;
          }
        }
      }
    }
    &:has(.selected-comment) {
      .comment-row {
        .comment {
          &:not(.selected-comment) {
            opacity: 0.5;
          }
        }
      }
    }
  }
}

.add-new-comment {
  display: flex;
  flex-direction: column;
  gap: calc(10px);
  align-items: center;

  padding-top: 30px;
  border-top: 1px solid rgba(250, 250, 250, 0.2);
  .actions {
    display: flex;
    flex-direction: column;
  }
  p {
    margin-top: 0;
    text-align: center;
  }
  textarea {
    max-width: 800px;
  }
  .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}
